* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease-in-out;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #fff;
    overflow: hidden;
}

/* Vacation Mode Border */
body.vacation-mode {
    border: 6px solid rgba(48, 176, 199, 0.5);
    /* border-radius: 20px; */
    box-sizing: border-box;
}

/* Vacation Mode Label */
.vacation-mode-label {
    position: fixed;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(48, 176, 199, 0.6);
    font-size: 16px;
    font-weight: normal;
    z-index: 1000;
    display: none;
}

body.vacation-mode .vacation-mode-label {
    display: block;
}

/* Blurred Background Overlay */
.blurred {
    filter: blur(5px);
    pointer-events: none;
}

/* Skeleton Loader */
.skeleton-loader {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 20px;
    gap: 15px;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    position: absolute;;
}

.skeleton-loader.fade-out {
    opacity: 0;
}

.skeleton-loader .skeleton-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.skeleton-tile {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.dark-mode .skeleton-tile {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Calendar Skeleton Loader */
.calendar-skeleton {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 20px;
}

.calendar-skeleton-day {
    width: 150px;
    height: 115px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    /* margin: 0 auto; */
}

.dark-mode .calendar-skeleton-day {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

/* Tracker List Skeleton Loader */
.trackers-skeleton {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.trackers-skeleton-item {
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.dark-mode .trackers-skeleton-item {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

/* Calendar Day Skeleton */
.calendar-day.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-loading 1.5s infinite !important;
    pointer-events: none;
}

.dark-mode .calendar-day.skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%) !important;
    background-size: 200% 100% !important;
}

.calendar-day.skeleton p {
    opacity: 0;
}

.calendar-day.skeleton .tracker-dots {
    opacity: 0;
}

/* Tracker Tile Skeleton */
.tile.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-loading 1.5s infinite !important;
    pointer-events: none;
}

.dark-mode .tile.skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%) !important;
    background-size: 200% 100% !important;
}

.tile.skeleton .trackerName,
.tile.skeleton .trackerDaysCompleted,
.tile.skeleton .trackerPercentage,
.tile.skeleton .trackerStreakDetails,
.tile.skeleton .trackerToday {
    opacity: 0;
}

/* Popup Login Modal */

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    background: rgb(0, 0, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 1000;
    width: 100%;
    height: 100vh;
    display: none;
}

.login-modal-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 1000;
    width: 35%;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.login-modal-inner form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 70%;
}

.login-modal h2 {
    margin-bottom: 15px;
    text-align: center;
}

.login-modal input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-modal button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.login-modal button:hover {
    background-color: #0056b3;
}

.login-modal button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.login-error {
    background-color: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
    text-align: center;
}

.dark-mode .login-error {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
    color: #ff6b6b;
}

.btn-spinner {
    display: none;
}

.loading .btn-text {
    display: none;
}

.loading .btn-spinner {
    display: inline;
}

.login-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2em;
}

.auth-toggle {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.auth-toggle span {
    color: #007BFF;
    cursor: pointer;
    text-decoration: underline;
}

.auth-toggle span:hover {
    color: #0056b3;
}

/* Header */
header {
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-size: 1.5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* Main Content */
main {
    display: flex;
    flex: 1;
}

/* Left Sidebar */
.left-sidebar {
    width: auto;
    padding: 20px 10px;
    text-align: center;
    color: #000;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-size: 0.65em;
    cursor: pointer;
    position: relative;
}

.left-sidebar .row {
    display: flex;
    flex-direction: row;
    gap: 0px;
}

.lightImgHolder .row img, .darkImgHolder .row img {
    width: 17px;
}

.darkImgHolder {
    display: none;
}

.left-sidebar .imgHolder .row span {
    width: 18px;
    height: 18px;
    border: 4px solid #000;
    cursor: pointer;
}

.left-sidebar .imgHolder .row #topLeft {
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    border-top-left-radius: 7px;
}

.left-sidebar .imgHolder .row #topRight {
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    border-top-right-radius: 7px;

}

.left-sidebar .imgHolder .row #bottomLeft {
    border-right: 2px solid #000;
    border-top: 2px solid #000;
    border-bottom-left-radius: 7px;

}

.left-sidebar .imgHolder .row #bottomRight {
    border-left: 2px solid #000;
    border-top: 2px solid #000;
    border-bottom-right-radius: 7px;

}

/* Right Sidebar */
.right-sidebar {
    width: 20%;
    padding: 20px;
    text-align: center;
    color: #000; /* change on display mode change */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
    cursor: default;
}

#dayLbl {
    color: #000; /* change on display mode change */
    font-size: 0.75em;
}

#yearLbl {
    font-size: 0.9em;
    border-left: 4px solid rgba(0,0,0,0.6); /* change on display mode change */
    color: rgba(0,0,0,0.6); /* change on display mode change */
    padding-left: 15px;
}

/* Center Tiles */
.center-area, .tilesSection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 20px;
    gap: 15px;
}

.no-trackers-message {
    font-size: 1.2em;
    color: #666;
    margin-top: 50px;
}

.dark-mode .no-trackers-message {
    font-size: 1.2em;
    color: #ccc;
    margin-top: 50px;
}

#statusLbl {
    color: darkgray;
}

.tilesSection .row {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

/* IF USING GRID */
/* .tilesSection { */
    /* display: grid; */
    /* grid-template-columns: repeat(2, 1fr); Two columns */
    /* gap: 15px; Space between the tiles */
    /* justify-content: space-around; Similar to flexbox's space-around */
    /* align-content: center; Aligns the content vertically with space around */
    /* padding: 20px; */
/* } */


.tile {
    background-color: rgba(0,0,0,0.8);
    color: white;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.5em;
    font-weight: 600;
    flex-wrap: wrap;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease-in-out; /* Smooth fade-in */
    transition: background-color 0.3s ease;
    flex: 25%;
}

li.tile.history.add {
    background: #cacaca;
}

.tile.history {
    height: 100px;
    opacity: 1;
    font-size: 16px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-width: 250px;
    max-width: 250px;
}

.tile.history.selected {
    /* background-color: rgba(0, 0, 0, 0.1); */
    border: 4px solid #5BF07C;
}

.dark-mode .tile.history.selected {
    /* background-color: rgba(255, 255, 255, 0.1); */
    border: 4px solid #5BF07C;

}

.tile.history svg {
    width: 30px;
    height: 30px;
    margin-left: auto;
    background-color: initial;
}

/* dashboard history */
button.monthLeft, button.monthRight {
    background: none;
    border: none;
    cursor: pointer;
}

button.monthLeft svg, button.monthRight svg {
    width: 35px;
    height: 35px;
}

.dashboard-area{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    flex: 1;
    padding: 0 20px;
    gap: 40px;
    width: 100%;
    height: calc(100vh - 165px);
}

.tilesListSection {
    width: calc(100% + 20px);
    overflow-x: scroll;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
    height: 120px;
}

.calendarSection {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 20px;
    width: 100%;
    padding-right: 20px;
    margin-bottom: 15px;
}

.calendarHeading {
    display: flex;
    align-items: flex-start;
    width: 100%;
    justify-content: space-around;
    padding-right: 20px;
    flex-direction: column;
    gap: 15px;
}

.calendarHeading > div:first-child {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.month-info-section {
    width: 100%;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
}

.more-section {
    margin-right: 10px;
    color: #888;
}

.more-section button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    /* pointer-events: auto !important;
    user-select: none !important; */
    background: none;
    border: none;
    cursor: pointer;
}

.more-section button svg {
        width: 25px;
    height: 25px;

}

.more-section button svg g path {
    fill: #444;
}

.more-section button svg g path {
    fill: #ccc;
}

.dark-mode .more-section button {
    color: #ccc;
}

.monthCounter {
    margin-right: auto;
}

button.monthRight {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}

button.monthRight svg{
    width: 35px;
    height: 35px;
}

button.monthRight svg g path {
    fill: #444;
}

.dark-mode button.monthRight svg g path {
    fill: #ccc;
}

.yearTotalBar {
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: calc(100%);
    gap: 10px;
    padding-right: 20px;
}

.yearBar {
    height: 20px;
    width: 100%;
    background: #333;
    background: #ececec;
    border-radius: 15px;
}

.innerBar {
    /* background: red; */
    width: 65%;
    height: 100%;
    border-radius: 15px;
}

/* .dark-mode .yearBar {
    background-color: #333;
} */

.yearTotalText {
    font-weight: 600;
}

.innerCounterText {
    font-weight: 600;
}

.monthChanger {
    margin-left: auto;
}

.calendar {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative; 
}

.calendarHeading div {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 15px;
}

.calendarList {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columns for a week */
    grid-auto-rows: 1fr; /* Each row grows dynamically */
    gap: 15px; /* Adjust spacing as needed */
    width: 100%;
    height: 100%; /* Ensures it stretches inside calendar */
    position: relative;
}

.calendarList li {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 5px;
    min-height: 50px; /* Adjust minimum height */
}

li.calendar-day {
    padding: 8px;
    background: #ececec;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
}

li.calendar-day p {
    text-align: right;
    color: #888;
    width: 100%;
}

li.calendar-day:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* slight shadow */
}

/* Current date styling */
li.calendar-day.current-date p {
    color: #22c55e !important; /* Green color for current date */
    /* font-weight: bold; */
}

.tracker-dots {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: auto;
    gap: 6px;
}

.tracker-dots {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: auto;
    gap: 6px;
    padding: 0 10px;
}

span.tracker-dot {
    height: 9px;
    width: 9px;
    border-radius: 50%;
}

/* tile list at top */
ul#trackersAllList {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: flex-start;
    align-items: end;
    position: absolute;
    height: 100px;
}


.tile.loaded {
    opacity: 1; /* Fully visible */
}

.tile::selection {
  background: none;
}
.tile::-moz-selection {
  background: none;
}
.tile::-webkit-selection {
  background: none;
}
.tile:active {
    transform: scale(0.92);
    transform-origin: center;
}

.left-sidebar:active {
    transform: scale(0.92);
    transform-origin: center;
}

/* Footer */
footer {
    color: #888;
    text-align: center;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

footer p {
    margin: 0 auto;
}

footer svg {
    position: absolute;
    right: 20px;
    height: auto;
    cursor: pointer;
}

.modeSvg.light path {
    fill: rgba(0,0,0,0.8); /* change on display mode change */
}

.modeSvg.dark path {
    fill: #ccc; /* change on display mode change */
}

/* Dark Mode Styles */
.dark-mode {
    background: #000;
}

.dark-mode .right-sidebar,
.dark-mode #yearLbl,
.dark-mode .tile,
.dark-mode footer,
.dark-mode .left-sidebar h2,
.dark-mode .calendarHeading h2,
.dark-mode .innerCounterText,
.dark-mode .innerCounter,
.dark-mode .monthDisplay,
.dark-mode .yearTotalText {
    color: #f4f4f4;
}

.dark-mode button.monthLeft svg,
.dark-mode .monthRight svg {
    stroke: #f4f4f4;
}

.dark-mode .login-modal {
    background: rgb(51 51 51 / 80%);
}

.dark-mode .login-modal-inner {
    background: #555;
}

.dark-mode .login-modal-inner h2 {
    color: #ccc;
}
.dark-mode .auth-toggle {
    color: #ccc;
}
.dark-mode .auth-toggle span {
    color: #4d9fff;
}
.dark-mode .auth-toggle span:hover {
    color: #66b3ff;
}

.dark-mode .left-sidebar .imgHolder .row span {
    border-color: #f4f4f4 !important;
}

.dark-mode #dayLbl {
    color: #fff;
}

.dark-mode #yearLbl{
    border-left: 4px solid #f4f4f4;
}

.dark-mode .tile {
    background-color: #333;
}

.dark-mode footer {
    color: #bbb;
}

.dark-mode .lightImgHolder {
    display: none;
    transition: display 0.5s ease-in-out;
}

.dark-mode .darkImgHolder {
    display: block;
    transition: display 0.5s ease-in-out;
}

@media screen and (max-width: 1200px) {
    .login-modal-inner {
        width: 65%;
    }
       
}

/* Note icon styles */
.note-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    width: 45px;
    display: flex;
    height: 45px;
    justify-content: center;
}

.note-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.note-icon svg {
    color: #fff;
    fill: #ccc;
    width: 25px;
    stroke: #fff;
    justify-content: center;
    align-items: center;
}

.dark-mode .note-icon {
    /* background: rgba(51, 51, 51, 0.9); */
}

.dark-mode .note-icon:hover {
    /* background: rgba(51, 51, 51, 0.2); */
}

.dark-mode .note-icon svg {
    /* color: #f4f4f4; */
    /* stroke: #f4f4f4; */
}

.tile {
    position: relative;
}

/* Note popup modal styles */
.note-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.note-modal-inner {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.note-modal-inner h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #333;
}

.note-modal-inner textarea {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.note-modal-inner textarea:focus {
    outline: none;
    border-color: #007BFF;
}

.note-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.note-modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#saveNoteBtn {
    background: #007BFF;
    color: white;
}

#saveNoteBtn:hover {
    background: #0056b3;
}

#cancelNoteBtn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

#cancelNoteBtn:hover {
    background: #e9ecef;
}

/* Dark mode styles for note modal */
.dark-mode .note-modal-inner {
    background: #333;
}

.dark-mode .note-modal-inner h3 {
    color: #f4f4f4;
}

.dark-mode .note-modal-inner textarea {
    background: #444;
    color: #f4f4f4;
    border-color: #555;
}

.dark-mode .note-modal-inner textarea:focus {
    border-color: #007BFF;
}

.dark-mode #cancelNoteBtn {
    background: #555;
    color: #f4f4f4;
    border-color: #666;
}

.dark-mode #cancelNoteBtn:hover {
    background: #666;
}



/* Define color classes */
.tilesSection .tile.dark-purple, .tilesSection .dark-purple, div[data-color="Dark Purple"] .color-circle {
    background-color: #8A2D88;
}

.tilesSection .tile.orange, .tilesSection .orange, div[data-color="Orange"] .color-circle {
    background-color: #FFA043;
}

.tilesSection .tile.coral, .tilesSection .coral, div[data-color="Coral"] .color-circle {
    background-color: #F05B57;
}

.tilesSection .tile.blue, .tilesSection .blue, div[data-color="Blue"] .color-circle {
    background-color: #5B77F0;
}

.tilesSection .tile.light-blue, .tilesSection .light-blue, div[data-color="Light Blue"] .color-circle {
    background-color: #bae4e5;
}

.tilesSection .tile.yellow, .tilesSection .yellow, div[data-color="Yellow"] .color-circle {
    background-color: #F0D75B;
}

.tilesSection .tile.green, .tilesSection .green, div[data-color="Green"] .color-circle {
    background-color: #5BF07C;
}

.tilesSection .tile.purple, .tilesSection .purple, div[data-color="Purple"] .color-circle {
    background-color: #957BF0;
}

.tilesSection .tile.red, .tilesSection .red, div[data-color="Red"] .color-circle {
    background-color: #cf000f;
}

.tilesSection .tile.taupe-green, .tilesSection .taupe-green, div[data-color="Taupe Green"] .color-circle {
    background-color: #b7c1ac;
}

.tilesSection .tile.default-color, .tilesSection .default-color, div[data-color="Default Color"] .color-circle {
    background-color: #36cf9e;
}

/* inner bar start */
.innerBar.dark-purple, span.tracker-dot.dark-purple {
    background: #8A2D88;
}

.innerBar.orange, span.tracker-dot.orange {
    background: #FFA043;
}

.innerBar.coral, span.tracker-dot.coral {
    background: #F05B57;
}

.innerBar.blue, span.tracker-dot.blue {
    background: #5B77F0;
}

.innerBar.light-blue, span.tracker-dot.light-blue {
    background: #bae4e5;
}

.innerBar.yellow, span.tracker-dot.yellow {
    background: #F0D75B;
}

.innerBar.green, span.tracker-dot.green {
    background: #5BF07C;
}

.innerBar.purple, span.tracker-dot.purple {
    background: #957BF0;
}

.innerBar.red, span.tracker-dot.red {
    background: #cf000f;
}

.innerBar.taupe-green, span.tracker-dot.taupe-green {
    background: #b7c1ac;
}

.innerBar.default-color, span.tracker-dot.default-color {
    background: #36cf9e;
}
/* inner bar end */

/* history tile */

.tracker-tiles-section .tile svg.dark-purple g path,
.tile.history svg.dark-purple g path{
    fill: #8A2D88;
}

.tracker-tiles-section .tile svg.orange g path,
.tile.history svg.orange g path{
    fill: #FFA043;
}

.tracker-tiles-section .tile svg.coral g path,
.tile.history svg.coral g path{
    fill: #F05B57;
}

.tracker-tiles-section .tile svg.blue g path,
.tile.history svg.blue g path{
    fill: #5B77F0;
}

.tracker-tiles-section .tile svg.light-blue g path,
.tile.history svg.light-blue g path{
    fill: #bae4e5;
}

.tracker-tiles-section .tile svg.yellow g path,
.tile.history svg.yellow g path{
    fill: #F0D75B;
}

.tracker-tiles-section .tile svg.green g path,
.tile.history svg.green g path{
    fill: #5BF07C;
}

.tracker-tiles-section .tile svg.purple g path,
.tile.history svg.purple g path{
    fill: #957BF0;
}

.tracker-tiles-section .tile svg.red g path,
.tile.history svg.red g path{
    fill: #cf000f;
}

.tracker-tiles-section .tile svg.taupe-green g path,
.tile.history svg.taupe-green g path{
    fill: #b7c1ac;
}

.tracker-tiles-section .tile svg.default-color g path,
.tile.history svg.default-color g path{
    fill: #36cf9e;
}
/* end history tile */

/* Day Tracker Popup Modal */
.day-tracker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.day-tracker-modal-inner {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.dark-mode .day-tracker-modal-inner {
    background: #1a1a1a;
    color: white;
}

.day-tracker-modal-inner .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.day-tracker-modal-inner .close-btn:hover {
    color: #000;
}

.dark-mode .day-tracker-modal-inner .close-btn:hover {
    color: #fff;
}

.day-tracker-modal-inner h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    text-align: center;
}

.dark-mode .day-tracker-modal-inner h3 {
    color: white;
}

.tracker-selection-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 350px;
    overflow-y: auto;
    flex-wrap: wrap;
    justify-content: space-around;
}

.tracker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    /* border: 2px solid #e0e0e0; */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ddd9d9;
    width: calc(50% - 24px);
    height: 60px;
}

.dark-mode .tracker-item {
    background: #2a2a2a;
    border-color: #444;
}

.tracker-item:hover {
    border-color: #ccc;
    /* transform: translateY(-1px); */
}

.tracker-item.selected {
    border-color: currentColor;
    /* transform: scale(1.02); */
}

.tracker-item.selected.dark-purple {
    background: rgba(70, 39, 123, 0.9);
    border-color: #46277B;
}

.tracker-item.selected.orange {
    background: rgba(240, 117, 91, 0.9);
    border-color: #F0755B;
}

.tracker-item.selected.coral {
    background: rgba(240, 91, 87, 0.9);
    border-color: #F05B57;
}

.tracker-item.selected.blue {
    background: rgba(91, 119, 240, 0.9);
    border-color: #5B77F0;
}

.tracker-item.selected.light-blue {
    background: rgba(186, 228, 229, 0.9);
    border-color: #bae4e5;
}

.tracker-item.selected.yellow {
    background: rgba(240, 215, 91, 0.9);
    border-color: #F0D75B;
}

.tracker-item.selected.green {
    background: rgba(91, 240, 124, 0.9);
    border-color: #5BF07C;
}

.tracker-item.selected.purple {
    background: rgba(149, 123, 240, 0.9);
    border-color: #957BF0;
}

.tracker-item.selected.red {
    background: rgba(207, 0, 15, 0.9);
    border-color: #cf000f;
}

.tracker-item.selected.taupe-green {
    background: rgba(183, 193, 172, 0.9);
    border-color: #b7c1ac;
}

.tracker-item.selected.default-color {
    background: rgba(54, 207, 158, 0.9);
    border-color: #36cf9e;
}

.tracker-name {
    flex: 1;
    font-weight: 500;
    color: #fff;
}

.dark-mode .tracker-name {
    color: white;
}

.tracker-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tracker-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tracker-icon svg {
    width: 100%;
    height: 100%;
    fill: #666;
}

.dark-mode .tracker-icon svg {
    fill: #ccc;
}

.note-icon-small {
    width: 25px;
    /* height: 19px; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    background: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    width: 35px;
    display: flex;
    height: 35px;
    justify-content: center;
}

.note-icon-small:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.dark-mode .note-icon-small:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.note-icon-small svg {
    width: 100%;
    height: 100%;
    fill: #666;
}

.dark-mode .note-icon-small svg {
    fill: #ccc;
}

.note-icon-small.has-note svg {
    fill: #007AFF;
}

.note-icon-small.add-note {
    opacity: 1;
}

.note-icon-small.add-note:hover {
    opacity: 1;
}

.dark-mode .note-icon-small.has-note svg {
    fill: #4A90E2;
}

.vacation-mode-section {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    /* border-left: 4px solid rgba(48, 176, 199, 0.5); */
    display: flex;
    width: 100%;
}

.dark-mode .vacation-mode-section {
    background: #2a2a2a;
}

.vacation-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    justify-content: space-between;
    width: 100%;
}

.vacation-switch input[type="checkbox"] {
    position: relative;
    width: 50px;
    height: 25px;
    appearance: none;
    background: #ddd;
    border-radius: 25px;
    outline: none;
    transition: background 0.3s;
}

.vacation-switch input[type="checkbox"]:checked {
    background: rgba(48, 176, 199, 0.8);
}

.vacation-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.vacation-switch input[type="checkbox"]:checked::before {
    transform: translateX(25px);
}

.vacation-label {
    font-weight: 500;
    color: rgba(48, 176, 199, 0.8);
}

.dark-mode .vacation-label {
    color: rgba(48, 176, 199, 1);
}

.day-tracker-modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.day-tracker-modal-buttons button {
    padding: 0px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 50%;
    height: 40px;
}

#saveDayTrackers {
    background: #007AFF;
    color: white;
}

#saveDayTrackers:hover {
    background: #0056D6;
}

#cancelDayTrackers {
    background: #E5E5EA;
    color: #333;
}

#cancelDayTrackers:hover {
    background: #D1D1D6;
}

.dark-mode #cancelDayTrackers {
    background: #444;
    color: white;
}

.dark-mode #cancelDayTrackers:hover {
    background: #555;
}

/* Calendar day cursor pointer */
.calendar-day {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.calendar-day:hover {
    transform: scale(1.05);
}

/* Vacation mode calendar day styling */
.calendar-day.vacation-day {
    /* border: 2px solid rgba(48, 176, 199, 0.6); */
    border-radius: 8px;
    background: rgba(48, 176, 199, 0.5);
}

.calendar-day.vacation-day p {
    color: rgba(48, 176, 199, 0.8);
    font-weight: bold;
}

.dark-mode .calendar-day.vacation-day {
    /* border-color: rgba(48, 176, 199, 0.8); */
    background: rgba(48, 176, 199, 0.5);
}

.dark-mode .calendar-day.vacation-day p {
    color: rgba(48, 176, 199, 1);
}

/* Spinning animation for loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    /* Header adjustments */
    header {
        padding: 10px 15px;
        font-size: 1.2em;
    }
    
    .left-sidebar {
        padding: 15px 8px;
        gap: 8px;
        font-size: 0.6em;
    }
    
    .left-sidebar .imgHolder .row span {
        width: 16px;
        height: 16px;
    }
    
    .right-sidebar {
        padding: 15px;
        width: auto;
    }
    
    /* Main content adjustments */
    .center-area, .tilesSection {
        padding: 15px;
        gap: 12px;
        width: 100%;
    }
    
    /* Tile adjustments for mobile */
    .tile {
        width: 150px;
        height: 150px;
        font-size: 1.2em;
        padding: 15px;
    }
    
    .tilesSection .row {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    /* Make tiles stack in a single column on very small screens */
    .tilesSection {
        align-items: center;
    }
    
    .tilesSection .row {
        width: 100%;
        display: flex;
        justify-content: space-around;
        max-width: 320px;
    }
    
    /* Skeleton loader adjustments */
    .skeleton-tile {
        width: 150px;
        height: 150px;
    }
    
    .skeleton-loader .skeleton-row {
        gap: 12px;
        justify-content: center;
    }
    
    /* Footer adjustments */
    footer {
        padding: 15px 0;
        font-size: 14px;
    }
    
    footer svg {
        right: 15px;
        width: 20px;
        height: 20px;
    }
    
    /* Modal adjustments */
    .login-modal-inner {
        width: 85%;
    }
    
    .note-modal-inner {
        width: 95%;
        padding: 20px;
    }
    
    .day-tracker-modal-inner {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
        gap: 20px;
        min-height: 300px;
        overflow-y: visible;
        margin: 20px auto;
    }
    
    .day-tracker-modal {
        padding: 10px;
        align-items: center;
        overflow-y: auto;
    }
    
    .day-tracker-modal-inner h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .tracker-selection-list {
        max-height: 250px;
        gap: 8px;
    }
    
    .tracker-item {
        width: 100%;
        height: 50px;
        padding: 10px 12px;
    }
    
    .vacation-mode-section {
        margin: 15px 0;
        padding: 12px;
    }
    
    .day-tracker-modal-buttons {
        margin-top: 15px;
        gap: 10px;
    }
    
    .day-tracker-modal-buttons button {
        height: 45px;
        font-size: 16px;
    }
    
    /* Calendar adjustments for mobile */
    .calendarList {
        gap: 8px;
    }
    
    li.calendar-day {
        padding: 6px;
        min-height: 65px;
    }
    
    li.calendar-day p {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .tracker-dots {
        gap: 4px;
        padding: 0 6px;
    }
    
    span.tracker-dot {
        width: 7px;
        height: 7px;
    }
    
    /* Dashboard area adjustments */
    .dashboard-area {
        padding: 0 5px;
        gap: 25px;
        height: calc(100vh - 140px);
        width: calc(100% - 10px);
    }
    
    .calendarSection {
        padding-right: 8px;
        margin-bottom: 10px;
    }
    
    .calendarHeading {
        gap: 12px;
        padding: 0;
    }
    
    .tilesListSection {
        height: 110px;
        padding-left: 8px;
    }
    
    ul#trackersAllList {
        height: 90px;
    }
    
    /* Note icon adjustments */
    .note-icon {
        width: 35px;
        height: 35px;
        bottom: 8px;
        left: 8px;
        padding: 6px;
    }
    
    .note-icon svg {
        width: 20px;
    }
}

/* Even smaller screens (phones in portrait) */
@media screen and (max-width: 480px) {
    .tile {
        width: 130px;
        height: 130px;
        font-size: 1.1em;
    }
    
    .tilesSection .row {
        max-width: 335px;
        gap: 10px;
    }
    
    .skeleton-tile {
        width: 130px;
        height: 130px;
    }
    
    .skeleton-loader .skeleton-row {
        gap: 10px;
    }
    
    header {
        padding: 8px 12px;
        font-size: 1.1em;
    }
    
    .left-sidebar {
        font-size: 0.55em;
    }
    
    footer {
        font-size: 13px;
    }
    
    /* Calendar adjustments for small screens */
    li.calendar-day {
        min-height: 60px;
        padding: 5px;
    }
    
    li.calendar-day p {
        font-size: 13px;
    }
    
    .tracker-dots {
        gap: 3px;
        padding: 0 4px;
    }
    
    span.tracker-dot {
        width: 6px;
        height: 6px;
    }
    
    .calendarList {
        gap: 6px;
    }
}

/* Landscape phone adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .tile {
        width: 120px;
        height: 120px;
        font-size: 1em;
        padding: 10px;
    }
    
    header {
        padding: 8px 12px;
    }
    
    footer {
        padding: 10px 0;
    }
    
    .center-area, .tilesSection {
        padding: 10px;
        gap: 10px;
    }
}

/* History Page Header Modifications */
.history-close-btn {
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    color: #000;
    pointer-events: auto !important;
    user-select: none !important;
    z-index: 100 !important;
}

.history-close-btn svg {
    color: #000;
    width: 30px;
    height: 30px;
}

.history-user-btn {
    justify-content: center !important;
    align-items: flex-end !important;
    cursor: pointer !important;
    color: #000;
    pointer-events: auto !important;
    user-select: none !important;
    z-index: 100 !important;
}

.history-user-btn svg {
    /* color: #000; */
    height: 30px;
    width: 30px;
}

.history-user-btn svg g path {
    fill: #ccc;
}

.dark-mode .history-close-btn{
    color: #fff;
}

.dark-mode .history-close-btn,
.dark-mode .history-close-btn svg,
.dark-mode .history-user-btn,
.dark-mode .history-user-btn svg {
    color: #fff;
}

/* User Settings Modal */
.user-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.user-settings-modal-inner {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    height: 100vh;
    overflow-y: auto;
    position: relative;
}

.dark-mode .user-settings-modal-inner {
    background: #333;
    color: #fff;
}

.close-settings-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-settings-btn:hover {
    color: #000;
}

.dark-mode .close-settings-btn:hover {
    color: #fff;
}

.user-settings-modal h2 {
    margin-bottom: 25px;
    text-align: center;
    color: #000;
}

.dark-mode .user-settings-modal h2 {
    color: #fff;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.dark-mode .settings-item {
    border-bottom: 1px solid #555;
}

.settings-item.daily-reminders-item {
    border-bottom: none;
}

.settings-item label {
    font-weight: 500;
    color: #000;
}

.dark-mode .settings-item label {
    color: #fff;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #30b0c7;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.settings-item input[type="time"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #000;
}

.dark-mode .settings-item input[type="time"] {
    background: #444;
    border-color: #555;
    color: #fff;
}

/* Disabled time input styling */
.settings-item input[type="time"].disabled,
.settings-item input[type="time"]:disabled {
    opacity: 0.5;
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.dark-mode .settings-item input[type="time"].disabled,
.dark-mode .settings-item input[type="time"]:disabled {
    opacity: 0.5;
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Disabled label styling */
.settings-item label.disabled {
    opacity: 0.5;
    color: #999;
}

.dark-mode .settings-item label.disabled {
    opacity: 0.5;
    color: #666;
}

.settings-section {
    margin: 25px 0;
    padding-top: 20px;
    /* border-top: 1px solid #eee; */
}

.settings-section div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

.dark-mode .settings-section {
    border-top: 1px solid #555;
}

.settings-section h3 {
    margin-bottom: 15px;
    color: #000;
    font-size: 16px;
}

.dark-mode .settings-section h3 {
    color: #fff;
}

.user-email {
    color: #666;
    margin-bottom: 10px;
}

.dark-mode .user-email {
    color: #ccc;
}

.change-email-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    color: #000;
    font-size: 14px;
}

.dark-mode .change-email-btn {
    background: #444;
    border-color: #555;
    color: #fff;
}

.color-mode-buttons {
    display: flex;
    gap: 10px;
}

.mode-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f5f5f5;
    cursor: pointer;
    color: #000;
    font-size: 14px;
}

.mode-btn.active {
    background: #30b0c7;
    border-color: #30b0c7;
    color: #fff;
}

.dark-mode .mode-btn {
    background: #444;
    border-color: #555;
    color: #fff;
}

.dark-mode .mode-btn.active {
    background: #30b0c7;
    border-color: #30b0c7;
    color: #fff;
}

.settings-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feedback-btn {
    background: #ff8c42;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.dark-mode .logout-btn {
    background: #444;
    border-color: #555;
    color: #fff;
}

.delete-account-btn {
    background: transparent;
    color: #666;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.dark-mode .delete-account-btn {
    color: #ccc;
}

/* Info Button Styles */
.info-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    margin-left: 8px;
    color: #ccc;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

.info-btn:hover {
    color: #30b0c7;
    background: rgba(48, 176, 199, 0.1);
}

.dark-mode .info-btn {
    color: #ccc;
}

.dark-mode .info-btn:hover {
    color: #30b0c7;
    background: rgba(48, 176, 199, 0.1);
}

/* Info Modal Styles */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1001;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.info-modal-inner {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark-mode .info-modal-inner {
    background: #333;
    color: #fff;
}

.close-info-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.close-info-btn:hover {
    color: #000;
}

.dark-mode .close-info-btn:hover {
    color: #fff;
}

.info-icon {
    margin-bottom: 20px;
    color: #30b0c7;
}

.info-icon img {
    width: 115px;
}

.info-modal h3 {
    margin-bottom: 15px;
    color: #000;
    font-size: 20px;
    font-weight: 600;
}

.dark-mode .info-modal h3 {
    color: #fff;
}

.info-modal p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.5;
}

.dark-mode .info-modal p {
    color: #ccc;
}

.info-ok-btn {
    background: #30b0c7;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.info-ok-btn:hover {
    background: #2a9bb3;
}

/* Mobile responsiveness for user settings modal */
@media (max-width: 768px) {
    .user-settings-modal {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .user-settings-modal-inner {
        width: 95%;
        max-width: none;
        padding: 15px;
        margin: 0;
        height: calc(95%);
        overflow-y: auto;
        align-items: center;
        border-radius: 0;
        overflow-x: hidden;
    }
    
    .color-mode-buttons {
        flex-direction: column;
    }
    
    .mode-btn {
        flex: none;
    }
    
    .info-modal-inner {
        width: 95%;
        padding: 20px;
        margin: 20px;
    }
}

/* Email Change Modal Styles */
.email-change-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.email-change-modal-inner {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark-mode .email-change-modal-inner {
    background: #333;
    color: #fff;
}

.close-email-change-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close-email-change-btn:hover {
    color: #666;
}

.dark-mode .close-email-change-btn {
    color: #ccc;
}

.dark-mode .close-email-change-btn:hover {
    color: #fff;
}

.email-change-modal h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.dark-mode .email-change-modal h3 {
    color: #fff;
}

.email-change-error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    text-align: center;
}

.email-change-error:not(:empty) {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.dark-mode .form-group label {
    color: #fff;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #30b0c7;
    box-shadow: 0 0 0 3px rgba(48, 176, 199, 0.1);
}

.dark-mode .form-group input[type="email"],
.dark-mode .form-group input[type="password"] {
    background: #444;
    border-color: #555;
    color: #fff;
}

.dark-mode .form-group input[type="email"]:focus,
.dark-mode .form-group input[type="password"]:focus {
    border-color: #30b0c7;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.cancel-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.dark-mode .cancel-btn {
    background: #495057;
    color: #fff;
    border-color: #6c757d;
}

.dark-mode .cancel-btn:hover {
    background: #5a6268;
    border-color: #868e96;
}

.save-btn {
    background: #30b0c7;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    position: relative;
    min-width: 120px;
}

.save-btn:hover:not(:disabled) {
    background: #2a9bb3;
}

.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-spinner {
    margin-left: 8px;
}

/* Tracker History Metrics Modal */
.tracker-history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.tracker-history-modal.show {
    display: flex;
}

.tracker-history-modal-inner {
    background: #fff;
    border-radius: 12px;
    padding: 40px 25px;
    width: 90%;
    max-width: 500px;
    height: auto;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.dark-mode .tracker-history-modal-inner {
    background: #2a2a2a;
    color: #e0e0e0;
}

.tracker-history-modal h2 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
    text-align: center;
}

.dark-mode .tracker-history-modal h2 {
    color: #e0e0e0;
}

.close-tracker-history-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 35px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-tracker-history-btn:hover {
    background: #f0f0f0;
    border-radius: 50%;
}

.dark-mode .close-tracker-history-btn {
    color: #ccc;
}

.dark-mode .close-tracker-history-btn:hover {
    background: #444;
}

.tracker-tiles-section {
    /* margin-bottom: 20px; */
    width: calc(100% + 50px);
    padding-right: 20px;
}

.tracker-tiles-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin: 0px -25px;
    padding: 0px 0px 0 20px;
    overflow-x: auto;
}

.tracker-tiles-section .tile {
    border-radius: 8px;
    padding: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    height: 100px;
    flex-direction: column;
    min-width: 225px;
    justify-content: space-between;
    max-width: 225px;
}

.tracker-tiles-section .tile svg {
    margin-left: auto;
}

.tracker-tiles-section .tile.selected {
    color: white;
    border: 4px solid #22c55e;
}

.tracker-tiles-section .tile svg {
    width: 16px;
    height: 16px;
}

.tracker-tiles-section .no-trackers-message {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.dark-mode .tracker-tiles-section .no-trackers-message {
    color: #ccc;
}

.dark-mode .tracker-tiles-section .tile {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

.dark-mode .tracker-tiles-section .tile:hover {
    background: #4a4a4a;
}

.year-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    /* margin-bottom: 20px; */
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dark-mode .year-navigation {
    background: #3a3a3a;
}

.year-navigation div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.year-left, .year-right {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.year-left:hover, .year-right:hover {
    background: #e0e0e0;
}

.dark-mode .year-left:hover, .dark-mode .year-right:hover {
    background: #555;
}

.year-left svg, .year-right svg {
    width: 20px;
    height: 20px;
}

.dark-mode .year-left svg, .dark-mode .year-right svg {
    stroke: #e0e0e0;
}

.year-display {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.tracker-tiles-section .no-trackers-message {
    margin-top: 0;
}

.dark-mode .year-display {
    color: #e0e0e0;
}

.total-year-count {
    font-size: 14px;
    color: #666;
    padding: 6px 12px;
}

.dark-mode .total-year-count {
    background: #2a2a2a;
    color: #ccc;
    border-color: #555;
}

.monthly-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.month-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
}

.month-name {
    width: 80px;
    font-size: 14px;
    color: #333;
    flex-shrink: 0;
}

.dark-mode .month-name {
    color: #e0e0e0;
}

.month-progress {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.dark-mode .month-progress {
    background: #555;
}

.month-progress-bar {
    height: 100%;
    background: #007BFF;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.month-count {
    width: 40px;
    text-align: right;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}

.dark-mode .month-count {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .tracker-history-modal {
        padding: 5px;
        align-items: center;
        overflow-y: auto;
        height: 90vh;
    }
    
    .tracker-history-modal-inner {
        width: 95%;
        max-width: none;
        padding: 15px;
        margin: 0;
        height: calc(100% - 30px);
        overflow-y: auto;
        gap: 20px;
        border-radius: 0;
        overflow-x: hidden;
    }

    .year-navigation {
        flex-wrap: wrap;
        gap: 10px;
    }

    .month-name {
        width: 70px;
        font-size: 13px;
    }

    .month-count {
        width: 35px;
        font-size: 13px;
    }
    
    .email-change-modal-inner {
        width: 95%;
        padding: 20px;
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .cancel-btn,
    .save-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Add Tracker Modal Styles */
.add-tracker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.add-tracker-modal.show {
    opacity: 1;
    visibility: visible;
}

.add-tracker-modal-inner {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .add-tracker-modal-inner {
    background: #2a2a2a;
    color: white;
}

.close-add-tracker-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1001;
}

.close-add-tracker-btn:hover {
    color: #333;
}

.dark-mode .close-add-tracker-btn {
    color: #ccc;
}

.dark-mode .close-add-tracker-btn:hover {
    color: white;
}

.add-tracker-modal h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

.dark-mode .add-tracker-modal h2 {
    color: white;
}

.add-tracker-modal .form-group {
    margin-bottom: 20px;
}

.add-tracker-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.dark-mode .add-tracker-modal .form-group label {
    color: white;
}

.add-tracker-modal #trackerName {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.add-tracker-modal #trackerName:focus {
    outline: none;
    border-color: #007bff;
}

.dark-mode .add-tracker-modal #trackerName {
    background: #333;
    border-color: #555;
    color: white;
}

.dark-mode .add-tracker-modal #trackerName:focus {
    border-color: #007bff;
}

/* Color Options */
.color-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.color-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.color-option:hover {
    background: #e9ecef;
    border-color: #ddd;
}

.color-option.selected {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.dark-mode .color-option {
    background: #333;
}

.dark-mode .color-option:hover {
    background: #444;
    border-color: #555;
}

.dark-mode .color-option.selected {
    background: rgba(0, 123, 255, 0.2);
}

.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.color-option span {
    font-size: 14px;
    font-weight: 500;
}

/* Reminder Toggle */
.reminder-toggle {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 25px;
}

.dark-mode .reminder-toggle {
    border-color: #555;
}

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0 !important;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.dark-mode .form-actions {
    border-color: #555;
}

.cancel-btn, .add-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #5a6268;
}

.add-btn {
    background: #007bff;
    color: white;
}

.add-btn:hover:not(:disabled) {
    background: #0056b3;
}

.add-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-spinner {
    margin-left: 8px;
}

/* Add Tracker Tile Styles */
.add-tracker-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    opacity: 0;
}

.add-tracker-tile.loaded {
    opacity: 1;
    transform: translateY(0);
}

.add-tracker-tile:hover {
    /* color: #007bff; */
    /* background: linear-gradient(145deg, #f8f9ff,  */
}

.dark-mode .add-tracker-tile {
    background: linear-gradient(145deg, #333, #2a2a2a);
    border-color: #555;
    color: #fff;
}

.dark-mode .add-tracker-tile:hover {
}

.add-tracker-text {
    font-size: 16px;
    font-weight: 600;
}

.add-tracker-plus {
    font-size: 40px;
    font-weight: 300;
    opacity: 0.7;
    margin-left: auto;
    width: 100%;
    text-align: right;
    font-size: 25px;
}

.add-tracker-tile:hover .add-tracker-plus {
    opacity: 1;
    /* transform: scale(1.1); */
}

/* History page add tracker tile adjustments */
.add-tracker-tile.history {
    flex-direction: row;
}

.add-tracker-tile.history .add-tracker-text {
    margin-bottom: 0;
    margin-right: 10px;
    flex: 1;
    text-align: left;
}

.add-tracker-tile.history .add-tracker-plus {
    font-size: 33px;
    margin-left: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .add-tracker-modal-inner {
        width: 95%;
        padding: 20px;
        margin: 20px;
    }
    
    .color-options {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .cancel-btn, .add-btn {
        width: 100%;
    }
}
