

/* ================================
   MYGOALS — PREMIUM DASHBOARD
================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --purple: #7865e8;
    --purple-dark: #6552d5;
    --sidebar: #211b3b;
    --sidebar-light: #30284e;
    --background: #f6f7fb;
    --surface: #ffffff;
    --text: #25233a;
    --muted: #9291a5;
    --border: #eeedf4;
    --green: #35b98a;
    --orange: #f0a64b;
    --shadow: 0 8px 30px rgba(38, 31, 76, 0.055);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

/* ОСНОВНОЙ МАКЕТ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* БОКОВАЯ ПАНЕЛЬ */

.sidebar {
    width: 270px;
    min-height: 100vh;
    padding: 32px 22px 24px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: var(--sidebar);
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 58px;
    padding: 0 8px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #927fff, #6552d5);
    color: white;
    font-size: 25px;
    box-shadow: 0 6px 18px rgba(120, 101, 232, 0.3);
}

.brand strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: #a9a2c2;
    font-size: 9px;
    letter-spacing: 1.3px;
}

.menu-title {
    margin: 0 0 17px 10px;
    color: #8f87aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.sidebar-navigation {
    width: 100%;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.filters button {
    width: 100%;
    min-height: 47px;
    padding: 0 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #c4bfd5;
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.filters button:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
}

.filters button.active {
    background: linear-gradient(110deg, #7865e8, #6755d5);
    color: white;
    box-shadow: 0 5px 16px rgba(104, 84, 214, 0.25);
}

.filters button small {
    min-width: 24px;
    padding: 3px 7px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 11px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    margin-bottom: 24px;
    padding: 19px 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
}

.sidebar-footer-icon {
    margin-bottom: 12px;
    color: #a99aff;
    font-size: 22px;
}

.sidebar-footer strong {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
}

.sidebar-footer p {
    color: #aaa4be;
    font-size: 11px;
    line-height: 1.6;
}

.sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 5px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e5dfff;
    color: #6552d5;
    font-weight: 800;
}

.user-info strong {
    display: block;
    font-size: 12px;
}

.user-info small {
    display: block;
    margin-top: 4px;
    color: #a9a2c2;
    font-size: 10px;
}

/* ОСНОВНАЯ ОБЛАСТЬ */

.main-content {
    width: 100%;
    max-width: 1500px;
    min-width: 0;
    margin: 0 auto;
    padding: 45px 55px 60px;
}

/* ВЕРХНЯЯ ПАНЕЛЬ */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 48px;
    padding: 8px 0;
}

.eyebrow {
    margin-bottom: 9px;
    color: var(--purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.welcome-copy h1 {
    margin-bottom: 11px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    color: #24213a;
}

.welcome-copy > p:not(.eyebrow) {
    color: #89869c;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}

.current-date {
    margin-top: 9px;
    color: #aaa8b8 !important;
    font-size: 12px !important;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 19px;
    border: 1px solid #eeebf5;
    border-radius: 15px;
    background: #ffffff;
    color: #55536a;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(48, 36, 90, 0.045);
    transition: all 0.25s ease;
}

.topbar-profile:hover {
    border-color: #ded8fa;
    box-shadow: 0 8px 24px rgba(85, 67, 160, 0.09);
    transform: translateY(-2px);
}

.profile-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

/* СТАТИСТИКА */

.dashboard-overview {
    margin-bottom: 23px;
}

.dashboard-section-title {
    margin-bottom: 17px;
}

.dashboard-section-title h2,
.progress-heading h2,
.section-heading h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    position: relative;
    min-height: 165px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 32px rgba(38, 31, 76, 0.09);
}

.stat-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 11px;
    background: #f0edff;
    color: var(--purple);
    font-size: 18px;
}

.stat-card > span {
    display: block;
    color: #858398;
    font-size: 12px;
    font-weight: 600;
}

.stat-card > strong {
    display: block;
    margin-top: 5px;
    font-family: 'Manrope', sans-serif;
    font-size: 29px;
    font-weight: 800;
}

.stat-card > small {
    display: block;
    margin-top: 3px;
    color: #aaa8b8;
    font-size: 10px;
}

.stat-completed .stat-icon {
    background: #e7f8f1;
    color: var(--green);
}

.stat-remaining .stat-icon {
    background: #fff3e5;
    color: var(--orange);
}

/* ПРОГРЕСС */

.progress {
    margin-bottom: 35px;
    padding: 25px 27px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: white;
    box-shadow: var(--shadow);
}

.progress-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.progress-heading > span {
    color: var(--purple);
    font-size: 12px;
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 20px;
    background: #eeedf5;
}

.progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #8e7af5, #6552d5);
    transition: width 0.4s ease;
}

/* ЗАДАЧИ */

.tasks-section {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin-bottom: 6px;
}

.section-heading > p:last-child {
    color: var(--muted);
    font-size: 12px;
}

#clearCompleted {
    padding: 10px 14px;
    border: 1px solid #eeeaf7;
    border-radius: 9px;
    background: #faf9ff;
    color: #8375c8;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#clearCompleted:hover {
    border-color: #d9d1ff;
    background: #f0edff;
}

/* ПАНЕЛЬ ДОБАВЛЕНИЯ И ПОИСКА */

.task-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.task-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 125px 145px auto;
    gap: 10px;
}

.task-form input,
.task-form select,
#searchInput {
    width: 100%;
    min-width: 0;
    height: 45px;
    padding: 0 13px;
    outline: none;
    border: 1px solid #eae9f1;
    border-radius: 10px;
    background: #fbfbfd;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    transition: 0.2s ease;
}

.task-form input:focus,
.task-form select:focus,
#searchInput:focus {
    border-color: #a99af5;
    background: white;
    box-shadow: 0 0 0 3px rgba(120, 101, 232, 0.09);
}

.task-form input::placeholder,
#searchInput::placeholder {
    color: #aaa8b8;
}

.task-form button {
    min-height: 45px;
    padding: 0 17px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(110deg, #806deb, #6754d7);
    color: white;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 5px 13px rgba(104, 84, 214, 0.2);
    transition: 0.2s ease;
}

.task-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 17px rgba(104, 84, 214, 0.28);
}

#searchInput {
    max-width: 100%;
}

/* СПИСОК ЗАДАЧ */

#taskList {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

#taskList li {
    padding: 17px 18px;
    border: 1px solid #eeedf4;
    border-radius: 12px;
    background: #fff;
    transition: 0.2s ease;
}

#taskList li:hover {
    border-color: #dcd6fa;
    background: #fdfcff;
}

/* АДАПТИВНОСТЬ */

@media (max-width: 1100px) {
    .main-content {
        padding: 35px 30px 45px;
    }

    .sidebar {
        width: 235px;
    }

    .task-form {
        grid-template-columns: 1fr 1fr;
    }

    .task-form button {
        width: 100%;
    }
}

@media (max-width: 750px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        padding: 20px;
    }

    .brand {
        margin-bottom: 25px;
    }

    .menu-title {
        margin-bottom: 10px;
    }

    .filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-footer,
    .sidebar-bottom {
        display: none;
    }

    .main-content {
        padding: 28px 18px 40px;
    }

    .topbar {
        margin-bottom: 30px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        min-height: 135px;
    }

    .tasks-section {
        padding: 20px 15px;
    }

    .tasks-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-form {
        grid-template-columns: 1fr;
    }

    .progress {
        padding: 20px 17px;
    }
}

@media (max-width: 420px) {
    .topbar {
        flex-direction: column;
    }

    .welcome-copy h1 {
        font-size: 25px;
    }

    .progress-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    #clearCompleted {
        width: 100%;
    }
}

/* НОВАЯ СТРУКТУРА КАРТОЧЕК ЗАДАЧ */

#taskList li.task-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "main meta actions";
    align-items: center;
    gap: 18px;
    padding: 19px 21px;
    min-height: 85px;
}

.task-main {
    grid-area: main;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.task-main input[type="checkbox"] {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    accent-color: var(--purple);
    cursor: pointer;
}

.task-main span {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.task-meta {
    grid-area: meta;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.task-meta small {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.task-meta .task-date {
    color: #858198;
    background: #f5f4f9;
}

.task-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-actions button {
    padding: 9px 12px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
}

.task-actions .edit {
    color: #7566d8;
    background: #f0edff;
    border: 1px solid transparent;
    outline: none;
    box-shadow: none;
}

.task-actions .edit:hover {
    background: #e5e0ff;
}

.task-actions .delete {
    color: #dc5264;
    background: #fff1f2;
    border: 1px solid #ffe0e4;
}

.task-actions .delete:hover {
    color: white;
    background: #dc5264;
}

#taskList li.task-item.done .task-main span {
    color: #aaa9b8;
    text-decoration: line-through;
}

@media (max-width: 850px) {
    #taskList li.task-item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "main main"
            "meta actions";
        gap: 13px;
    }

    .task-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    #taskList li.task-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "meta"
            "actions";
        gap: 12px;
    }

    .task-actions {
        width: 100%;
    }

    .task-actions button {
        flex: 1;
    }
}
/* ДОПОЛНИТЕЛЬНОЕ ОФОРМЛЕНИЕ SIDEBAR */

.brand-copy {
    min-width: 0;
}

.brand-copy strong span {
    color: #a99aff;
}

.filters button > span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filters button > span > span {
    font-size: 13px;
    font-weight: 600;
}

.profile-menu-icon {
    margin-left: auto;
    color: #a9a2c2;
    font-size: 22px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.profile-menu-icon:hover {
    color: white;
}

.sidebar-bottom {
    transition: background 0.2s ease;
}

.sidebar-bottom:hover .user-avatar {
    transform: scale(1.05);
}

.user-avatar {
    transition: transform 0.2s ease;
}
/* PREMIUM DASHBOARD DESIGN */

.main-content {
    flex: 1;
    max-width: 1600px;
    padding: 48px 58px 65px;
    background: #f7f7fc;
}

.topbar {
    margin-bottom: 43px;
    padding: 0;
}

.eyebrow {
    color: #7968df;
    font-size: 10px;
    letter-spacing: 1.8px;
}

.welcome-copy h1 {
    color: #211e38;
    font-size: clamp(30px, 3vw, 40px);
    letter-spacing: -1.7px;
}

.welcome-copy > p:not(.eyebrow) {
    color: #858398;
    font-size: 14px;
}

.current-date {
    color: #aaa7bb !important;
}

.topbar-profile {
    padding: 13px 17px;
    border-color: #eae8f3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(37, 29, 75, 0.035);
}

.dashboard-overview {
    margin-bottom: 30px;
}

.dashboard-section-title {
    margin-bottom: 20px;
}

.dashboard-section-title h2 {
    color: #25213d;
    font-size: 20px;
    letter-spacing: -0.7px;
}

.stats {
    gap: 20px;
}

.stat-card {
    min-height: 175px;
    padding: 25px;
    border: 1px solid #eeedf5;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(39, 31, 78, 0.035);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(39, 31, 78, 0.075);
}

.stat-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 19px;
    border-radius: 13px;
    font-size: 19px;
}

.stat-card > span {
    color: #858398;
    font-size: 12px;
}

.stat-card > strong {
    margin-top: 7px;
    color: #25213d;
    font-size: 32px;
    letter-spacing: -1px;
}

.stat-card > small {
    margin-top: 5px;
    color: #aaa8b8;
    font-size: 11px;
}

/* АДАПТАЦИЯ */

@media (max-width: 900px) {
    .main-content {
        padding: 35px 28px 45px;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 28px 18px 40px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 32px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 145px;
    }
}
/* PREMIUM TASK WORKSPACE */

.tasks-section {
    padding: 32px;
    border: 1px solid #eeedf5;
    border-radius: 21px;
    background: #ffffff;
    box-shadow: 0 7px 28px rgba(39, 31, 78, 0.04);
}

.tasks-header {
    margin-bottom: 27px;
}

.section-heading h2 {
    color: #25213d;
    font-size: 21px;
    letter-spacing: -0.7px;
}

.section-heading > p:last-child {
    color: #9290a3;
    font-size: 12px;
}

#clearCompleted {
    padding: 10px 15px;
    border: 1px solid #eeeaf7;
    border-radius: 10px;
    background: #faf9ff;
    color: #7968d8;
    font-size: 11px;
    font-weight: 700;
}

#clearCompleted:hover {
    border-color: #d9d1ff;
    background: #f1eeff;
}

.task-toolbar {
    gap: 13px;
    margin-bottom: 25px;
}

.task-form {
    padding: 15px;
    border: 1px solid #eeedf6;
    border-radius: 15px;
    background: #fafaff;
    gap: 10px;
}

.task-form input,
.task-form select,
#searchInput {
    height: 46px;
    border-color: #e9e8f1;
    border-radius: 10px;
    background: #ffffff;
    font-size: 12px;
}

.task-form input:focus,
.task-form select:focus,
#searchInput:focus {
    border-color: #9584ed;
    box-shadow: 0 0 0 3px rgba(120, 101, 232, 0.10);
}

.task-form button {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    background: linear-gradient(120deg, #8270ed, #6855d8);
    box-shadow: 0 5px 14px rgba(104, 84, 214, 0.18);
    font-size: 12px;
}

.task-form button:hover {
    transform: translateY(-2px);
}

#searchInput {
    max-width: 100%;
    background: #fafaff;
}

@media (max-width: 900px) {
    .tasks-section {
        padding: 24px;
    }

    .task-form {
        grid-template-columns: minmax(0, 1fr) 1fr;
    }
}

@media (max-width: 520px) {
    .tasks-section {
        padding: 18px;
        border-radius: 16px;
    }

    .tasks-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-form {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .task-form button {
        width: 100%;
    }
}
/* PREMIUM TASK CARDS */

#taskList li.task-item {
    min-height: 92px;
    padding: 21px 23px;
    gap: 20px;
    border: 1px solid #eeedf5;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(39, 31, 78, 0.025);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#taskList li.task-item:hover {
    border-color: #ded8f8;
    box-shadow: 0 7px 20px rgba(39, 31, 78, 0.055);
}

.task-main {
    gap: 15px;
}

.task-main input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.task-main span {
    color: #292640;
    font-size: 13px;
    font-weight: 600;
}

.task-meta {
    gap: 8px;
}

.task-meta small {
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 10px;
}

.task-meta .task-date {
    background: #f5f4fa;
    color: #858198;
}

.task-actions {
    gap: 7px;
}

.task-actions button {
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 10px;
}

.task-actions .edit {
    color: #715fd0;
    background: #f1efff;
}

.task-actions .delete {
    color: #d95668;
    background: #fff1f2;
    border-color: #ffe4e7;
}

#taskList li.task-item.done {
    background: #fcfcfe;
}

#taskList li.task-item.done .task-main span {
    color: #aaa8b8;
}

@media (max-width: 850px) {
    #taskList li.task-item {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    #taskList li.task-item {
        padding: 17px;
    }
}
/* НАВИГАЦИЯ МЕЖДУ СТРАНИЦАМИ */

.page-navigation {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 32px;
}

.page-button {
    width: 100%;
    min-height: 47px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #c4bfd5;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.page-button span {
    width: 20px;
    font-size: 19px;
    text-align: center;
}

.page-button:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
}

.page-button.active {
    background: rgba(137, 117, 255, 0.15);
    border-color: rgba(137, 117, 255, 0.25);
    color: #c5b8ff;
}


/* ДИЗАЙН КАЛЕНДАРЯ */

.calendar-card {
    padding: 28px;
    border: 1px solid #eeedf5;
    border-radius: 21px;
    background: white;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 28px;
}

.calendar-header h2 {
    font-size: 23px;
    font-weight: 800;
    color: #25213d;
    text-transform: capitalize;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-controls button {
    min-height: 38px;
    min-width: 38px;
    padding: 8px 14px;
    border: 1px solid #eae6f5;
    border-radius: 9px;
    background: #f8f7fd;
    color: #7566d8;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.calendar-controls button:hover {
    background: #eeeaff;
    border-color: #d9d1ff;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}

.calendar-weekdays {
    margin-bottom: 12px;
}

.calendar-weekdays span {
    padding: 10px 0;
    color: #89869c;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.calendar-day {
    min-width: 0;
    min-height: 110px;
    padding: 12px;
    border: 1px solid #eeedf5;
    border-radius: 11px;
    background: #ffffff;
    font-size: 13px;
    transition: 0.2s ease;
}

.calendar-day:hover {
    background: #faf8ff;
    border-color: #d9d1ff;
}

.calendar-day.other-month {
    background: #fafafd;
    color: #b5b2c4;
}

.calendar-day.today {
    border-color: #927fff;
    background: #f3efff;
}

.calendar-day-number {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.calendar-task {
    margin-top: 5px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #eeeaff;
    color: #6552d5;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.calendar-task.done {
    opacity: 0.6;
    text-decoration: line-through;
}

@media (max-width: 750px) {
    .calendar-card {
        padding: 12px;
    }

    .calendar-grid,
    .calendar-weekdays {
        gap: 3px;
    }

    .calendar-day {
        min-height: 75px;
        padding: 5px;
    }

    .calendar-task {
        padding: 4px;
        font-size: 9px;
    }
}
/* ЦВЕТА КАТЕГОРИЙ В КАЛЕНДАРЕ */

.calendar-task.personal {
    background: #f0e9ff;
    color: #7955c6;
    border-left: 3px solid #9975e8;
}

.calendar-task.work {
    background: #e8f0ff;
    color: #3565c8;
    border-left: 3px solid #6591ed;
}

.calendar-task.study {
    background: #fff2dc;
    color: #b57922;
    border-left: 3px solid #e7b35b;
}

.calendar-task.sport {
    background: #e4f7ed;
    color: #27845d;
    border-left: 3px solid #52b788;
}
.calendar-day {
    cursor: pointer;
}

.calendar-day:active {
    transform: scale(0.98);
}

.calendar-day:hover .calendar-day-number {
    color: #7965e8;
}
/* ДИЗАЙН АНАЛИТИКИ */

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.analytics-stat {
    padding: 25px;
    border: 1px solid #eeedf5;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.analytics-stat > span {
    display: block;
    margin-bottom: 8px;
    color: #858398;
    font-size: 13px;
    font-weight: 600;
}

.analytics-stat > strong {
    display: block;
    color: #25213d;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
}

.analytics-stat:nth-child(2) .stat-icon {
    background: #e7f8f1;
    color: #32ac83;
}

.analytics-stat:nth-child(3) .stat-icon {
    background: #fff3e5;
    color: #e7a34b;
}

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 22px;
}

.analytics-card {
    min-width: 0;
    min-height: 340px;
    padding: 28px;
    border: 1px solid #eeedf5;
    border-radius: 21px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.analytics-card h2 {
    margin-bottom: 28px;
    color: #25213d;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

@media (max-width: 1000px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .analytics-stats {
        grid-template-columns: 1fr;
    }

    .analytics-card {
        padding: 18px;
    }
}
/* СТАТИСТИКА ПО КАТЕГОРИЯМ */

.category-analytics-row {
    margin-bottom: 25px;
}

.category-analytics-label {
    margin-bottom: 12px;
    color: #25213d;
    font-size: 13px;
    font-weight: 600;
}

.category-analytics-row progress {
    display: block;
    width: 100%;
    height: 10px;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #f0eef5;
}

.category-analytics-row progress::-webkit-progress-bar {
    background: #f0eef5;
    border-radius: 20px;
}

.category-analytics-row progress::-webkit-progress-value {
    background: var(--category-color);
    border-radius: 20px;
}

.category-analytics-row progress::-moz-progress-bar {
    background: var(--category-color);
    border-radius: 20px;
}

.category-analytics-row:nth-child(1) {
    --category-color: #9975e8;
}

.category-analytics-row:nth-child(2) {
    --category-color: #6591ed;
}

.category-analytics-row:nth-child(3) {
    --category-color: #e7b35b;
}

.category-analytics-row:nth-child(4) {
    --category-color: #52b788;
}
/* НЕДЕЛЬНЫЙ ГРАФИК */

.weekly-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    min-height: 240px;
    padding-top: 15px;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.chart-value {
    color: #25213d;
    font-size: 13px;
    font-weight: 800;
}

.chart-track {
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 42px;
    height: 170px;
    overflow: hidden;
    border-radius: 9px;
    background: #f3f0fa;
}

.chart-bar {
    width: 100%;
    border-radius: 9px;
    background: linear-gradient(180deg, #a18cf8, #7865e8);
    transition: height 0.4s ease;
}

.chart-label {
    color: #89869c;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .weekly-chart {
        gap: 6px;
    }

    .chart-track {
        max-width: 30px;
        height: 140px;
    }
}
/* ПЕРЕКЛЮЧАТЕЛЬ ПЕРИОДА АНАЛИТИКИ */

.analytics-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 24px;
}

.analytics-chart-header h2 {
    margin: 0;
}

.analytics-period {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: #f3f0fa;
}

.period-button {
    padding: 9px 14px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #858198;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.period-button:hover {
    color: #7965e8;
}

.period-button.active {
    background: #7965e8;
    color: white;
    box-shadow: 0 3px 8px rgba(121, 101, 232, 0.2);
}
/* КРУГОВАЯ ДИАГРАММА */

.overview-card {
    margin-top: 24px;
    min-height: 280px;
}

.donut-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 45px;
    padding: 15px 0;
}

.donut-chart {
    position: relative;
    width: 210px;
    height: 210px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(
        #7965e8 0%,
        #eeebf7 0%
    );
}

.donut-center {
    width: 166px;
    height: 166px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
}

.donut-center strong {
    color: #25213d;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.donut-center span {
    margin-top: 5px;
    color: #89869c;
    font-size: 12px;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.donut-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.legend-dot {
    width: 11px;
    height: 11px;
    margin-top: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}

.completed-dot {
    background: #7965e8;
}

.remaining-dot {
    background: #eeebf7;
}

.donut-legend-item div span {
    display: block;
    color: #89869c;
    font-size: 13px;
}

.donut-legend-item strong {
    display: block;
    margin-top: 5px;
    color: #25213d;
    font-size: 27px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .donut-layout {
        gap: 25px;
    }

    .donut-legend {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
/* ДИЗАЙН ПРОЕКТОВ */

.projects-toolbar {
    padding: 22px;
    margin-bottom: 25px;
    border: 1px solid #eeedf5;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
}

#projectForm {
    display: flex;
    gap: 12px;
}

#projectInput {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #eae6f5;
    border-radius: 10px;
    background: #faf9fd;
    color: #25213d;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

#projectInput:focus {
    border-color: #927fff;
    box-shadow: 0 0 0 3px rgba(121, 101, 232, 0.1);
}

#projectForm button {
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(120deg, #927fff, #6855d8);
    color: white;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    min-width: 0;
    padding: 25px;
    border: 1px solid #eeedf5;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}

@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #projectForm {
        flex-direction: column;
    }

    #projectInput {
        flex: auto;
        width: 100%;
        box-sizing: border-box;
    }
}
/* ПОДЗАДАЧИ ПРОЕКТОВ */

.project-card h2 {
    margin: 0 0 24px;
    color: #25213d;
    font-size: 21px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.subtask-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
}

.subtask-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #eeedf5;
    border-radius: 10px;
    background: #faf9fd;
}

.subtask-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: #7965e8;
    cursor: pointer;
}

.subtask-row span {
    color: #39354e;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.subtask-row.done span {
    color: #aaa8b8;
    text-decoration: line-through;
}

.subtask-form {
    display: flex;
    gap: 9px;
}

.subtask-form input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #eae6f5;
    border-radius: 9px;
    background: #ffffff;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.subtask-form input:focus {
    border-color: #927fff;
}

.subtask-form button {
    width: 42px;
    flex-shrink: 0;
    border: none;
    border-radius: 9px;
    background: #7965e8;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.subtask-form button:hover {
    background: #6855d8;
}
/* ПРОГРЕСС ПРОЕКТА */

.project-progress {
    margin-bottom: 25px;
    padding: 17px;
    border: 1px solid #eeebf7;
    border-radius: 13px;
    background: #faf9ff;
}

.project-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 13px;
}

.project-progress-header span {
    color: #858398;
    font-size: 12px;
    font-weight: 600;
}

.project-progress-header strong {
    color: #7965e8;
    font-size: 22px;
    font-weight: 800;
}

.project-progress-track {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 20px;
    background: #eeebf7;
}

.project-progress-bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #927fff, #6855d8);
    transition: width 0.4s ease;
}

.project-progress small {
    display: block;
    margin-top: 12px;
    color: #89869c;
    font-size: 11px;
}
/* УДАЛЕНИЕ ЭТАПОВ ПРОЕКТА */

.subtask-row span {
    flex: 1;
    min-width: 0;
}

.subtask-delete {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #aaa8b8;
    font-size: 21px;
    cursor: pointer;
    transition: 0.2s ease;
}

.subtask-delete:hover {
    background: #fff0f2;
    color: #dc5264;
}
/* РЕДАКТИРОВАНИЕ ЭТАПОВ ПРОЕКТА */

.subtask-edit {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #7965e8;
    font-size: 19px;
    cursor: pointer;
    transition: 0.2s ease;
}

.subtask-edit:hover {
    background: #eeeaff;
    color: #5948d8;
}
/* УПРАВЛЕНИЕ ПРОЕКТОМ */

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.project-header h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.project-edit,
.project-delete {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 9px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s ease;
}

.project-edit {
    background: #f0edff;
    color: #7965e8;
}

.project-edit:hover {
    background: #e5dfff;
}

.project-delete {
    background: #fff1f2;
    color: #dc5264;
}

.project-delete:hover {
    background: #dc5264;
    color: white;
}
/* СРОКИ ВЫПОЛНЕНИЯ ПРОЕКТОВ */

#projectDeadline {
    min-width: 0;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #eae6f5;
    border-radius: 10px;
    background: #faf9fd;
    color: #6552d5;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

#projectDeadline:focus {
    border-color: #927fff;
    box-shadow: 0 0 0 3px rgba(121, 101, 232, 0.1);
}

.project-deadline {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #eee9fa;
    border-radius: 10px;
    background: #f5f2ff;
    color: #7965e8;
    font-size: 12px;
    font-weight: 600;
}

.project-deadline.overdue {
    background: #fff1f2;
    border-color: #ffe0e4;
    color: #dc5264;
}

.project-deadline.finished {
    background: #e7f8f1;
    border-color: #cdeee0;
    color: #27845d;
}

@media (max-width: 600px) {
    #projectDeadline {
        width: 100%;
        box-sizing: border-box;
    }
}
/* ПУСТОЕ СОСТОЯНИЕ ПРОЕКТОВ */

.projects-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 40px 25px;
    border: 1px solid #eeedf5;
    border-radius: 21px;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-align: center;
}

.projects-empty-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: #f0edff;
    color: #7965e8;
    font-size: 35px;
}

.projects-empty h2 {
    margin-bottom: 12px;
    color: #25213d;
    font-size: 23px;
    font-weight: 800;
}

.projects-empty p {
    max-width: 350px;
    color: #89869c;
    font-size: 14px;
    line-height: 1.7;
}
/* НАСТРОЙКИ ПОЛЬЗОВАТЕЛЯ */

.settings-card {
    padding: 30px;
    margin-bottom: 24px;
    border: 1px solid #eeedf5;
    border-radius: 21px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.settings-card h2 {
    margin-bottom: 22px;
    color: #25213d;
    font-size: 21px;
    font-weight: 800;
}

.settings-card p {
    color: #89869c;
    font-size: 13px;
    line-height: 1.6;
}

.settings-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 15px;
    background: #faf9ff;
}

.settings-avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #a18cf8, #6855d8);
    color: white;
    font-size: 32px;
    font-weight: 800;
}

.settings-profile h3 {
    margin-bottom: 6px;
    color: #25213d;
    font-size: 20px;
    overflow-wrap: anywhere;
}

#profileForm {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

#profileForm label {
    color: #39354e;
    font-size: 13px;
    font-weight: 700;
}

#profileName {
    width: 100%;
    max-width: 450px;
    height: 48px;
    padding: 0 15px;
    box-sizing: border-box;
    border: 1px solid #eae6f5;
    border-radius: 10px;
    background: #faf9fd;
    color: #25213d;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

#profileName:focus {
    border-color: #927fff;
    box-shadow: 0 0 0 3px rgba(121, 101, 232, 0.1);
}

#profileForm button {
    padding: 14px 22px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(120deg, #927fff, #6855d8);
    color: white;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
    max-width: 550px;
}

.theme-option {
    padding: 25px 15px;
    border: 2px solid #eeedf5;
    border-radius: 14px;
    background: #faf9fd;
    color: #858398;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.theme-option:hover {
    border-color: #b8aaff;
}

.theme-option.active {
    border-color: #7965e8;
    background: #f0edff;
    color: #7965e8;
}

@media (max-width: 600px) {
    .settings-card {
        padding: 18px;
    }

    .theme-options {
        grid-template-columns: 1fr;
    }
}
/* ТЁМНАЯ ТЕМА MYGOALS */

body[data-theme="dark"] {
    --text: #e9e6f5;
    --muted: #a7a2ba;
    --surface: #252237;
    --border: #39354d;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

    background: #191725;
    color: #e9e6f5;
    color-scheme: dark;
}

body[data-theme="dark"] .main-content {
    background: #191725;
}

body[data-theme="dark"] .sidebar {
    background: #14121f;
}

/* КАРТОЧКИ */

body[data-theme="dark"] :is(
    .stat-card,
    .progress,
    .tasks-section,
    .calendar-card,
    .analytics-stat,
    .analytics-card,
    .project-card,
    .projects-toolbar,
    .projects-empty,
    .settings-card,
    .topbar-profile
) {
    background: #252237;
    border-color: #39354d;
    color: #e9e6f5;
    box-shadow: var(--shadow);
}

/* ЗАГОЛОВКИ И ТЕКСТ */

body[data-theme="dark"] .main-content :is(h1, h2, h3) {
    color: #f0edf9;
}

body[data-theme="dark"] .main-content :is(
    p,
    .stat-card > span,
    .stat-card > small,
    .analytics-stat > span,
    .category-analytics-label,
    .chart-label,
    .project-progress-header span,
    .project-progress small,
    .donut-legend-item div span,
    .donut-center span
) {
    color: #a7a2ba;
}

body[data-theme="dark"] .main-content .eyebrow {
    color: #a18cf8;
}

body[data-theme="dark"] :is(
    .stat-card > strong,
    .analytics-stat > strong,
    .donut-center strong,
    .donut-legend-item strong,
    .chart-value
) {
    color: #f0edf9;
}

/* ПОЛЯ ВВОДА */

body[data-theme="dark"] .main-content :is(
    input:not([type="checkbox"]),
    select
) {
    background: #201d30;
    color: #e9e6f5;
    border-color: #403a55;
}

body[data-theme="dark"] .main-content input::placeholder {
    color: #918aa7;
}

/* ЗАДАЧИ И ПРОЕКТЫ */

body[data-theme="dark"] :is(
    .task-form,
    .subtask-row,
    .project-progress,
    .settings-profile,
    .analytics-period
) {
    background: #2d2940;
    border-color: #403a55;
}

body[data-theme="dark"] #taskList li.task-item {
    background: #2d2940;
    border-color: #403a55;
}

body[data-theme="dark"] :is(
    .task-main span,
    .subtask-row span,
    #profileForm label
) {
    color: #e9e6f5;
}

body[data-theme="dark"] #taskList li.task-item.done .task-main span,
body[data-theme="dark"] .subtask-row.done span {
    color: #918aa7;
}

/* КАЛЕНДАРЬ */

body[data-theme="dark"] .calendar-day {
    background: #2d2940;
    border-color: #403a55;
}

body[data-theme="dark"] .calendar-day.other-month {
    background: #211e30;
    color: #77718b;
}

body[data-theme="dark"] .calendar-day.today {
    background: #40345f;
    border-color: #927fff;
}

body[data-theme="dark"] .calendar-day:hover {
    border-color: #927fff;
}

/* АНАЛИТИКА */

body[data-theme="dark"] :is(
    .chart-track,
    .project-progress-track,
    .progress-track
) {
    background: #39344e;
}

body[data-theme="dark"] .donut-center {
    background: #252237;
}

body[data-theme="dark"] .category-analytics-row progress {
    background: #39344e;
}

body[data-theme="dark"] .category-analytics-row progress::-webkit-progress-bar {
    background: #39344e;
}

/* ВЫБОР ТЕМЫ */

body[data-theme="dark"] .theme-option {
    background: #2d2940;
    border-color: #403a55;
    color: #a7a2ba;
}

body[data-theme="dark"] .theme-option.active {
    background: #40345f;
    border-color: #927fff;
    color: #c5b8ff;
}
/* ЗАГРУЗКА ФОТОГРАФИИ ПРОФИЛЯ */

.avatar-upload {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 8px 13px;
    border: 1px solid #e5dfff;
    border-radius: 8px;
    background: #f0edff;
    color: #7965e8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.avatar-upload:hover {
    background: #e5dfff;
}

.settings-avatar,
.user-avatar {
    overflow: hidden;
    flex-shrink: 0;
}

body[data-theme="dark"] .avatar-upload {
    background: #40345f;
    border-color: #594a80;
    color: #c5b8ff;
}
/* КНОПКА УДАЛЕНИЯ ФОТОГРАФИИ */

.avatar-remove {
    margin-top: 12px;
    margin-left: 8px;
    padding: 8px 13px;
    border: 1px solid #ffe0e4;
    border-radius: 8px;
    background: #fff1f2;
    color: #dc5264;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.avatar-remove:hover {
    background: #dc5264;
    border-color: #dc5264;
    color: white;
}

body[data-theme="dark"] .avatar-remove {
    background: #402733;
    border-color: #603744;
    color: #ff9aa8;
}

body[data-theme="dark"] .avatar-remove:hover {
    background: #dc5264;
    color: white;
}
/* УВЕДОМЛЕНИЕ О СОХРАНЕНИИ */

.settings-card .profile-message {
    color: #27845d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.profile-message:empty {
    display: none;
}

body[data-theme="dark"] .settings-card .profile-message {
    color: #65d6a6;
}

/* ========================================
   MYGOALS — СТРАНИЦА АВТОРИЗАЦИИ
======================================== */

.auth-screen[hidden] {
    display: none;
}

.auth-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f7f6fc;
}

.auth-brand-panel {
    background: linear-gradient(
        145deg,
        #211b3b,
        #392b65
    );
    color: white;
    padding: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
}

.auth-logo span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        #9380ff,
        #6558e8
    );
    border-radius: 16px;
    font-size: 30px;
}

.auth-logo strong {
    font-size: 28px;
    color: white;
}

.auth-brand-panel h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: white;
    margin: 0 0 20px;
    max-width: 540px;
}

.auth-brand-panel p {
    color: #c5bcdf;
    font-size: 18px;
}

.auth-decoration {
    margin-top: 45px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    max-width: 400px;
}

.auth-decoration div {
    padding: 14px 0;
    color: #e0d9f5;
    font-size: 16px;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    box-sizing: border-box;
    background: white;
    color: #211b3b;
    border: 1px solid #eeeaf7;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(40, 30, 80, 0.08);
}

.auth-eyebrow {
    color: #7965e8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.auth-card h2 {
    font-size: 30px;
    color: #211b3b;
    letter-spacing: -1px;
    margin: 0 0 10px;
}

#authSubtitle {
    font-size: 14px;
    color: #928ba5;
    line-height: 1.6;
    margin-bottom: 30px;
}

#authForm,
#resetForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#authForm label,
#resetForm label {
    font-size: 13px;
    font-weight: 600;
    color: #403953;
    margin-top: 5px;
}

#authForm input,
#resetForm input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px;
    background: #faf9fd;
    border: 1px solid #e8e4f0;
    border-radius: 12px;
    color: #211b3b;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

#authForm input:focus,
#resetForm input:focus {
    border-color: #7965e8;
    box-shadow: 0 0 0 4px rgba(121, 101, 232, 0.1);
}

#authSubmit,
#resetSubmit {
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    background: linear-gradient(135deg, #9380ff, #6558e8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

#authSubmit:hover,
#resetSubmit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(101, 88, 232, 0.25);
}

#authSubmit:disabled,
#resetSubmit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

#resetSubmit:disabled {
    cursor: not-allowed;
}

#authSwitch {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    background: transparent;
    color: #7965e8;
    border: 1px solid #e8e4f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#authSwitch:hover {
    background: #f3efff;
    border-color: #7965e8;
}

#authMessage {
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    margin-top: 18px;
}

@media (max-width: 800px) {
    .auth-screen {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        padding: 30px;
    }

    .auth-logo {
        margin-bottom: 25px;
    }

    .auth-decoration {
        display: none;
    }

    .auth-form-panel {
        padding: 25px 16px;
    }

    .auth-card {
        padding: 28px;
    }
}

/* КНОПКА ВЫХОДА ИЗ АККАУНТА */

.logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 12px;
    margin-top: 18px;
    background: rgba(121, 101, 232, 0.08);
    border: 1px solid rgba(121, 101, 232, 0.2);
    border-radius: 12px;
    color: #7965e8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.logout-button span {
    font-size: 20px;
}

.logout-button:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

/* СТРАНИЦА ВОССТАНОВЛЕНИЯ ПАРОЛЯ */

#resetMessage {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: #817991;
    text-align: center;
}

#resetForm ~ a {
    display: block;
    margin-top: 18px;
    color: #6558e8;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: 0.2s ease;
}

#resetForm ~ a:hover {
    color: #5948d8;
    text-decoration: underline;
}

/* КНОПКА ВОССТАНОВЛЕНИЯ ПАРОЛЯ */

#authForgotPassword {
    width: 100%;
    margin-top: 14px;
    padding: 8px;
    background: transparent;
    border: none;
    color: #6558e8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#authForgotPassword:hover {
    color: #5948d8;
    text-decoration: underline;
}

#authForgotPassword:disabled {
    opacity: 0.6;
    cursor: wait;
}

#authForgotPassword[hidden] {
    display: none;
}

/* ВРЕМЕННАЯ КАРТОЧКА ЗАДАЧИ */

div.task-item[role="status"] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px;
    margin: 16px 0;
    background: rgba(121, 101, 232, 0.08);
    border: 1px dashed #7965e8;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}

div.task-item[role="status"]::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid rgba(121, 101, 232, 0.2);
    border-top-color: #7965e8;
    border-radius: 50%;
    animation: taskSavingSpin 0.8s linear infinite;
}

@keyframes taskSavingSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ПЛАВНАЯ АНИМАЦИЯ ВЫПОЛНЕНИЯ ЗАДАЧ */

#taskList li.task-item {
    transition:
        background-color 0.3s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#taskList li.task-item .task-main span {
    text-decoration-line: line-through;
    text-decoration-color: transparent;
    text-decoration-thickness: 1.5px;

    transition:
        color 0.3s ease,
        text-decoration-color 0.3s ease;
}

#taskList li.task-item.done .task-main span {
    text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
    #taskList li.task-item,
    #taskList li.task-item .task-main span {
        transition: none;
    }
}

/* ПЛАВНОЕ УДАЛЕНИЕ ЗАДАЧ */

#taskList li.task-item {
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background-color 0.3s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#taskList li.task-item.is-deleting {
    opacity: 0.35;
    transform: translateX(12px);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #taskList li.task-item {
        transition: none;
    }

    #taskList li.task-item.is-deleting {
        transform: none;
    }
}

/* ПОЛЕ ПОИСКА В ТЁМНОЙ ТЕМЕ */

body[data-theme="dark"] #searchInput {
    background: #201d30;
    color: #e9e6f5;
    border-color: #403a55;
    caret-color: #e9e6f5;
}

body[data-theme="dark"] #searchInput::placeholder {
    color: #918aa7;
    opacity: 1;
}

body[data-theme="dark"] #searchInput:focus {
    border-color: #927fff;
    box-shadow: 0 0 0 3px rgba(146, 127, 255, 0.12);
}

/* MYGOALS V1.7 — MOBILE NAVIGATION */

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 750px) {

    .sidebar.mobile-ready {
        padding: 15px 18px;
        min-height: auto;
    }

    .sidebar.mobile-ready .brand {
        width: 100%;
        margin-bottom: 0;
    }

    .sidebar.mobile-ready .brand-copy {
        flex: 1;
        min-width: 0;
    }

    .mobile-menu-toggle:not([hidden]) {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        margin-left: auto;
        padding: 0;
        border: 1px solid #39334f;
        border-radius: 12px;
        background: #292439;
        color: #c5b8ff;
        font-size: 22px;
        cursor: pointer;
    }

    .sidebar.mobile-ready .sidebar-navigation {
        flex: none;
        margin: 0;
    }

    .sidebar.mobile-ready .page-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 3px;
        margin: 0;
        padding: 9px 6px calc(9px + env(safe-area-inset-bottom));
        background: #14121f;
        border-top: 1px solid #39334f;
    }

    .sidebar.mobile-ready .page-button {
        min-width: 0;
        min-height: 54px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 5px 0;
        font-size: 10px;
        text-align: center;
        border-radius: 10px;
    }

    .sidebar.mobile-ready .page-button span {
        font-size: 21px;
    }

    .sidebar.mobile-ready .menu-title:first-child {
        display: none;
    }

    .sidebar.mobile-ready:not(.mobile-menu-open) .menu-title,
    .sidebar.mobile-ready:not(.mobile-menu-open) .filters,
    .sidebar.mobile-ready:not(.mobile-menu-open) .logout-button {
        display: none;
    }

    .sidebar.mobile-ready.mobile-menu-open .filters {
        margin-bottom: 15px;
    }

    .sidebar.mobile-ready.mobile-menu-open .menu-title {
        margin-top: 20px;
    }

    .app-layout:has(.sidebar.mobile-ready) .main-content {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }
}

/* MYGOALS V1.7 — MOBILE DASHBOARD */

@media (max-width: 750px) {

    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-card {
        min-width: 0;
        min-height: 110px;
        padding: 12px 9px;
        border-radius: 14px;
    }

    .stat-card .stat-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 10px;
        border-radius: 9px;
        font-size: 15px;
    }

    .stat-card > span {
        font-size: 10px;
        line-height: 1.4;
    }

    .stat-card > strong {
        font-size: 25px;
        margin-top: 5px;
    }

    .stat-card > small {
        display: none;
    }

    .stat-card:hover {
        transform: none;
    }

    .dashboard-overview {
        margin-bottom: 18px;
    }

    .dashboard-section-title {
        margin-bottom: 14px;
    }
}

/* MYGOALS V1.7 — MOBILE TASKS */

@media (max-width: 750px) {

    .task-form input,
    .task-form select,
    #searchInput {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .task-form button {
        min-height: 48px;
        font-size: 14px;
    }

    #taskList li.task-item {
        padding: 15px;
        gap: 12px;
    }

    .task-main span {
        font-size: 15px;
        line-height: 1.5;
    }

    .task-main input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }

    .task-meta small {
        font-size: 12px;
    }

    .task-actions button {
        min-height: 44px;
        font-size: 12px;
    }

    #clearCompleted {
        min-height: 44px;
        font-size: 12px;
    }

    body[data-theme="dark"] .task-form input[type="date"] {
        color: #c5b8ff;
        color-scheme: dark;
    }
}

/* MYGOALS V1.7 — MOBILE CALENDAR */

.mobile-calendar-details[hidden] {
    display: none;
}

@media (max-width: 1024px) {

    .calendar-card {
        padding: 14px;
        border-radius: 16px;
    }

    .calendar-header {
        gap: 12px;
        margin-bottom: 18px;
    }

    .calendar-header h2 {
        font-size: 21px;
    }

    .calendar-controls {
        gap: 8px;
    }

    .calendar-controls button {
        min-width: 44px;
        min-height: 44px;
        font-size: 13px;
    }

    .calendar-grid,
    .calendar-weekdays {
        gap: 4px;
    }

    .calendar-day {
        position: relative;
        min-height: 48px;
        padding: 6px 2px;
        border-radius: 9px;
        text-align: center;
    }

    .calendar-day-number {
        margin-bottom: 4px;
        font-size: 13px;
    }

    .calendar-day .calendar-task {
        display: none;
    }

    .calendar-day[data-task-count]:not([data-task-count="0"])::after {
        content: "";
        display: block;
        width: 6px;
        height: 6px;
        margin: 4px auto 0;
        border-radius: 50%;
        background: #a18cf8;
    }

    .calendar-day.selected-day {
        border-color: #927fff;
        background: #eeeaff;
        color: #6552d5;
    }

    .mobile-calendar-details {
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px solid #eae6f5;
    }

    .mobile-calendar-details h3 {
        margin: 0 0 15px;
        font-size: 19px;
        color: #25213d;
    }

    .mobile-calendar-details p {
        padding: 16px 10px;
        color: #89869c;
        font-size: 14px;
        text-align: center;
    }

    .mobile-calendar-task {
        margin-bottom: 9px;
        padding: 13px;
        border: 1px solid #eeeaf7;
        border-radius: 11px;
        background: #faf9fd;
        color: #39354e;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .mobile-calendar-task.done {
        opacity: 0.65;
        text-decoration: line-through;
    }

    .mobile-calendar-add {
        width: 100%;
        min-height: 46px;
        margin-top: 12px;
        padding: 12px;
        border: none;
        border-radius: 11px;
        background: linear-gradient(120deg, #927fff, #6855d8);
        color: white;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    body[data-theme="dark"] .calendar-day.selected-day {
        background: #49396e;
        border-color: #a18cf8;
        color: #ffffff;
    }

    body[data-theme="dark"] .mobile-calendar-details {
        border-color: #39334f;
    }

    body[data-theme="dark"] .mobile-calendar-details h3 {
        color: #f0edf8;
    }

    body[data-theme="dark"] .mobile-calendar-task {
        background: #292439;
        border-color: #39334f;
        color: #e5e0f2;
    }

    body[data-theme="dark"] .mobile-calendar-details p {
        color: #aaa4bf;
    }
}

/* MYGOALS V1.7 — MOBILE ANALYTICS */

@media (max-width: 750px) {

    .analytics-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 18px;
    }

    .analytics-stat {
        min-width: 0;
        padding: 13px 9px;
        border-radius: 14px;
    }

    .analytics-stat .stat-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 10px;
        border-radius: 9px;
        font-size: 15px;
    }

    .analytics-stat > span {
        font-size: 11px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .analytics-stat > strong {
        font-size: 25px;
    }

    .analytics-grid {
        gap: 15px;
    }

    .analytics-card {
        min-height: auto;
        padding: 18px;
        border-radius: 16px;
    }

    .analytics-card h2 {
        font-size: 18px;
    }

    .analytics-chart-header {
        margin-bottom: 16px;
    }

    .period-button {
        min-height: 44px;
        font-size: 13px;
    }

    .weekly-chart {
        min-height: 190px;
        gap: 6px;
        padding-top: 8px;
    }

    .chart-label {
        font-size: 11px;
    }

    .category-analytics-label {
        font-size: 13px;
    }

    .overview-card {
        margin-top: 15px;
    }

    .donut-layout {
        gap: 20px;
    }
}

/* MYGOALS V1.7 — MOBILE PROJECTS */

@media (max-width: 1024px) {

    .projects-toolbar {
        padding: 16px;
        margin-bottom: 18px;
        border-radius: 16px;
    }

    #projectForm {
        flex-direction: column;
    }

    #projectInput,
    #projectDeadline {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        font-size: 16px;
        box-sizing: border-box;
    }

    #projectForm button {
        min-height: 48px;
        font-size: 14px;
    }

    .projects-grid {
        gap: 15px;
    }

    .project-card {
        padding: 17px;
        border-radius: 16px;
    }

    .project-header {
        gap: 8px;
        margin-bottom: 17px;
    }

    .project-header h2 {
        font-size: 19px;
        line-height: 1.4;
    }

    .project-edit,
    .project-delete {
        width: 44px;
        height: 44px;
    }

    .project-deadline {
        font-size: 13px;
        line-height: 1.5;
    }

    .project-progress {
        padding: 14px;
        margin-bottom: 18px;
    }

    .subtask-row {
        gap: 7px;
        padding: 10px;
    }

    .subtask-row span {
        font-size: 14px;
        line-height: 1.5;
    }

    .subtask-row input[type="checkbox"] {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .subtask-edit,
    .subtask-delete {
        width: 44px;
        height: 44px;
    }

    .subtask-form input {
        min-height: 48px;
        font-size: 16px;
    }

    .subtask-form button {
        width: 48px;
        min-height: 48px;
    }

    body[data-theme="dark"] #projectInput,
    body[data-theme="dark"] #projectDeadline {
        background: #1e1b2d;
        border-color: #39334f;
        color: #e5e0f2;
        color-scheme: dark;
    }

    body[data-theme="dark"] #projectInput::placeholder {
        color: #aaa4bf;
    }
}

/* MYGOALS V1.7 — MOBILE SETTINGS */

@media (max-width: 750px) {

    .settings-card {
        padding: 18px;
        margin-bottom: 16px;
        border-radius: 16px;
    }

    .settings-card h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .settings-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding: 20px 14px;
        margin-bottom: 20px;
    }

    .settings-profile > div {
        max-width: 100%;
        min-width: 0;
    }

    .settings-avatar {
        width: 88px;
        height: 88px;
        font-size: 36px;
    }

    .settings-profile h3 {
        font-size: 21px;
    }

    .avatar-upload,
    .avatar-remove {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
        margin-left: 0;
        margin-top: 10px;
        font-size: 13px;
    }

    #profileName {
        width: 100%;
        max-width: none;
        min-height: 48px;
        font-size: 16px;
    }

    #profileForm button {
        width: 100%;
        min-height: 48px;
        font-size: 14px;
    }

    .theme-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 16px;
    }

    .theme-option {
        min-height: 64px;
        padding: 14px 8px;
        font-size: 13px;
    }

    body[data-theme="dark"] #profileName {
        background: #1e1b2d;
        border-color: #39334f;
        color: #e5e0f2;
    }
}

/* MYGOALS V1.7 — MOBILE AUTH */

@media (max-width: 750px) {

    .auth-screen {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .auth-brand-panel {
        padding: 22px 24px;
    }

    .auth-logo {
        gap: 12px;
        margin-bottom: 18px;
    }

    .auth-logo span {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 25px;
    }

    .auth-logo strong {
        font-size: 25px;
    }

    .auth-brand-panel h1 {
        font-size: 25px;
        line-height: 1.25;
        letter-spacing: -0.7px;
        margin-bottom: 10px;
    }

    .auth-brand-panel p {
        font-size: 14px;
        line-height: 1.5;
    }

    .auth-form-panel {
        align-items: flex-start;
        padding: 20px 16px 28px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .auth-card h2 {
        font-size: 27px;
    }

    #authSubtitle {
        margin-bottom: 22px;
        font-size: 14px;
    }

    #authForm input,
    #resetForm input {
        min-height: 48px;
        font-size: 16px;
        padding: 13px 14px;
    }

    #authSubmit,
    #resetSubmit,
    #authSwitch,
    #authForgotPassword {
        min-height: 48px;
        font-size: 14px;
    }

    #authForm input::placeholder,
    #resetForm input::placeholder {
        color: #817b94;
    }
}

/* MYGOALS V1.7 — DARK DATE INPUTS */

@media (max-width: 1024px) {

    body[data-theme="dark"] #dateInput,
    body[data-theme="dark"] #projectDeadline {
        background: #1e1b2d;
        border-color: #39334f;
        color: #e5e0f2;
        -webkit-text-fill-color: #e5e0f2;
        color-scheme: dark;
    }

    body[data-theme="dark"] input[type="date"]::-webkit-datetime-edit {
        color: #e5e0f2;
        -webkit-text-fill-color: #e5e0f2;
    }

    body[data-theme="dark"] input[type="date"]::-webkit-date-and-time-value {
        color: #e5e0f2;
        -webkit-text-fill-color: #e5e0f2;
    }
}

/* MYGOALS V1.7 — DESKTOP DARK INPUTS */

@media (min-width: 1025px) {

    body[data-theme="dark"] #projectInput,
    body[data-theme="dark"] #projectDeadline,
    body[data-theme="dark"] #profileName,
    body[data-theme="dark"] #dateInput {
        background: #1e1b2d;
        border-color: #39334f;
        color: #e5e0f2;
    }

    body[data-theme="dark"] #projectInput::placeholder {
        color: #aaa4bf;
    }

    body[data-theme="dark"] input[type="date"] {
        color-scheme: dark;
        -webkit-text-fill-color: #e5e0f2;
    }

    body[data-theme="dark"] input[type="date"]::-webkit-datetime-edit {
        color: #e5e0f2;
        -webkit-text-fill-color: #e5e0f2;
    }
}