:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #eef3ff;
    --sidebar: linear-gradient(180deg, #0f172a 0%, #1d4ed8 100%);
    --primary: #1d4ed8;
    --primary-dark: #173b9c;
    --accent: #14b8a6;
    --accent-dark: #0f9b8e;
    --google-cyan: #22c7f2;
    --text: #0f172a;
    --muted: #64748b;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
    --font-family: "Outfit", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    color: var(--text);
}

.auth-page,
.auth-shell {
    min-height: 100vh;
}

.auth-shell {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(460px, 100%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-brand h1,
.hero-panel h1 {
    font-weight: 700;
}

.auth-brand p {
    color: var(--muted);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 96px 1fr;
    transition: grid-template-columns 0.28s ease;
}

.sidebar {
    background: var(--sidebar);
    color: #fff;
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 96px;
    overflow: hidden;
    transition: width 0.28s ease, padding 0.28s ease;
}

.admin-shell:has(.sidebar:hover) {
    grid-template-columns: 260px 1fr;
}

.admin-shell:has(.sidebar:hover) .sidebar {
    width: 260px;
    padding: 22px 18px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 14px;
}

.sidebar-brand-copy,
.nav-label,
.sidebar-user,
.logout-label {
    display: none;
}

.admin-shell:has(.sidebar:hover) .sidebar-brand {
    justify-content: flex-start;
}

.admin-shell:has(.sidebar:hover) .sidebar-brand-copy,
.admin-shell:has(.sidebar:hover) .nav-label,
.admin-shell:has(.sidebar:hover) .sidebar-user,
.admin-shell:has(.sidebar:hover) .logout-label {
    display: inline;
}

.sidebar-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    flex: 0 0 52px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 16px;
    padding: 14px 0;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
}

.admin-shell:has(.sidebar:hover) .sidebar .nav-link {
    justify-content: flex-start;
    padding: 14px 16px;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex: 0 0 20px;
}

.sidebar-footer {
    display: flex;
    justify-content: center;
}

.admin-shell:has(.sidebar:hover) .sidebar-footer {
    justify-content: flex-start;
}

.sidebar-logout {
    width: 48px !important;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 16px;
    gap: 10px;
}

.admin-shell:has(.sidebar:hover) .sidebar-logout {
    width: 100% !important;
    height: auto;
    justify-content: flex-start;
    padding: 0.55rem 0.8rem;
}

.sidebar-logout i {
    margin: 0 !important;
}

.content-area {
    padding: 28px;
}

.hero-panel,
.module-card,
.stat-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-panel p,
.stat-card small {
    color: var(--muted);
}

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

.stat-card {
    padding: 22px;
}

.stat-card span {
    display: flex;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
}

.stat-card strong {
    display: block;
    font-size: 1.35rem;
    margin: 10px 0 8px;
}

.module-card {
    padding: 24px;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.table-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rows-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 600;
    color: var(--muted);
}

.rows-select select {
    min-width: 84px;
    border-radius: 12px;
}

.search-box {
    position: relative;
    min-width: 280px;
}

.search-box-inline {
    margin-left: auto;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-box input {
    padding-left: 40px;
    border-radius: 14px;
}

#crud-table thead th {
    background: linear-gradient(180deg, #10223e 0%, #0f172a 100%);
    color: #e2e8f0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#crud-table thead th:first-child {
    border-top-left-radius: 16px;
}

#crud-table thead th:last-child {
    border-top-right-radius: 16px;
}

#crud-table tbody td {
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}

#crud-table {
    width: 100% !important;
}

#crud-table thead th,
#crud-table tbody td:first-child,
#crud-table tbody td:last-child {
    white-space: nowrap;
}

.table-responsive {
    overflow-x: auto;
}

.badge-soft {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--primary-dark);
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    border-color: transparent;
}

.modal-content {
    border-radius: 24px;
}

.dt-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dt-buttons .btn {
    border: 0;
    border-radius: 999px;
    padding: 0.62rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dt-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.dt-buttons .btn.btn-outline-primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary-dark);
}

.dt-buttons .btn.btn-outline-primary:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #102a70;
}

.dt-buttons .btn.btn-outline-secondary {
    background: linear-gradient(135deg, #ecfeff 0%, #ccfbf1 100%);
    color: #0f766e;
}

.dt-buttons .btn.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: #115e59;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dt-search,
.dataTables_wrapper .dt-length,
.dataTables_wrapper .dt-info {
    display: none !important;
}

.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dt-paging {
    margin-top: 14px;
}

.dataTables_wrapper .dataTables_paginate .pagination,
.dataTables_wrapper .dt-paging .pagination {
    gap: 6px;
}

.dataTables_wrapper .page-link {
    border: 0;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.dataTables_wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, #10223e 0%, #1d4ed8 100%);
    color: #fff;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    position: relative;
    padding-left: 3rem;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 12px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--google-cyan) 0%, var(--accent) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 10px 18px rgba(34, 199, 242, 0.35);
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control::before {
    content: '-';
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 10px 18px rgba(20, 184, 166, 0.35);
}

@media (max-width: 991.98px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        gap: 18px;
        padding: 16px;
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .admin-shell:has(.sidebar:hover) {
        grid-template-columns: 1fr;
    }

    .admin-shell:has(.sidebar:hover) .sidebar {
        width: 100%;
        padding: 16px;
    }

    .sidebar-brand-copy,
    .nav-label,
    .sidebar-user,
    .logout-label {
        display: inline;
    }

    .sidebar-brand,
    .admin-shell:has(.sidebar:hover) .sidebar-brand {
        justify-content: flex-start;
        gap: 14px;
        margin-bottom: 0;
    }

    .sidebar .nav-link,
    .admin-shell:has(.sidebar:hover) .sidebar .nav-link {
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }

    .sidebar-footer,
    .admin-shell:has(.sidebar:hover) .sidebar-footer {
        justify-content: flex-start;
    }

    .sidebar-logout,
    .admin-shell:has(.sidebar:hover) .sidebar-logout {
        width: auto !important;
        height: auto;
        padding: 0.25rem 0.5rem;
    }

    .table-toolbar {
        align-items: stretch;
    }

    .search-box-inline {
        margin-left: 0;
        width: 100%;
    }

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

    .hero-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        width: 100%;
        justify-content: flex-start;
    }
}




.subject-manager {
    display: grid;
    gap: 1.25rem;
}

.subject-search-card,
.subject-assigned-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.subject-search-bar {
    position: relative;
}

.subject-search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.subject-search-bar input {
    padding-left: 40px;
    border-radius: 14px;
}

.subject-search-results {
    display: grid;
    gap: 0.65rem;
    max-height: 280px;
    overflow-y: auto;
}

.subject-result-item {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.subject-result-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

#subjectsModal .modal-dialog {
    max-width: min(1280px, calc(100vw - 2rem));
}

#subjectsModal .modal-body {
    overflow-x: hidden;
}

#subjectsModal .subject-search-card,
#subjectsModal .subject-assigned-card {
    width: 100%;
    min-width: 0;
}

#teacher-subjects-table {
    width: 100% !important;
}

#teacher-subjects-table thead th,
#teacher-subjects-table tbody td {
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
}
#teacher-subjects-table thead th:first-child,
#teacher-subjects-table tbody td:first-child {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    white-space: nowrap;
}

#teacher-subjects-table tbody td.dtr-control {
    cursor: pointer;
}

#teacher-subjects-table thead th:last-child,
#teacher-subjects-table tbody td:last-child {
    white-space: nowrap;
}

#subjectsModal .dataTables_wrapper,
#subjectsModal .dt-container,
#subjectsModal .row,
#subjectsModal [class*="col-"] {
    min-width: 0;
}

#subjectsModal .dtr-details {
    width: 100%;
}

#subjectsModal .dtr-details li {
    display: grid;
    grid-template-columns: minmax(110px, 150px) 1fr;
    gap: 0.75rem;
}

#subjectsModal .dtr-title,
#subjectsModal .dtr-data {
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    #subjectsModal .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    #subjectsModal .modal-content {
        border-radius: 20px;
    }

    #subjectsModal .modal-body {
        padding: 0.9rem;
    }

    #subjectsModal .subject-search-card,
    #subjectsModal .subject-assigned-card {
        padding: 0.9rem;
    }

    #subjectsModal .subject-result-item {
        align-items: flex-start;
        flex-direction: column;
    }
}
#teacher-subjects-table thead th {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

#teacher-subjects-table tbody td {
    line-height: 1.45;
}

#teacher-subjects-table tbody td:nth-child(2),
#teacher-subjects-table tbody td:nth-child(7) {
    white-space: nowrap;
}

#subjectsModal .dataTables_wrapper table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
}

#subjectsModal .dataTables_wrapper table.dataTable > tbody > tr.child ul.dtr-details > li {
    padding: 0.65rem 0;
}
.subject-context strong {
    color: var(--primary-dark);
    font-weight: 700;
}

#teacher-subjects-table tbody td:last-child .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
}
#teacher-subjects-table.dtr-inline.collapsed > tbody > tr > td.dtr-control,
#teacher-subjects-table.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    position: relative;
    padding-left: 3rem;
}

#teacher-subjects-table.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
#teacher-subjects-table.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 12px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--google-cyan) 0%, var(--accent) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 10px 18px rgba(34, 199, 242, 0.35);
}

#teacher-subjects-table.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before,
#teacher-subjects-table.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control::before {
    content: '-';
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 10px 18px rgba(20, 184, 166, 0.35);
}
.dashboard-hero {
    align-items: stretch;
}

.hero-copy {
    max-width: 760px;
}

.hero-current-module {
    min-width: 260px;
    padding: 1.1rem 1.2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(16, 34, 62, 0.96) 0%, rgba(29, 78, 216, 0.9) 100%);
    color: #e2e8f0;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.hero-current-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
}

.hero-current-module strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.hero-current-module small {
    color: rgba(226, 232, 240, 0.78);
}

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

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.dashboard-stat-card::after {
    content: '';
    position: absolute;
    inset: auto -40px -40px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    opacity: 0.12;
}

.dashboard-stat-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.dashboard-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.dashboard-stat-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--muted);
}

.dashboard-stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.dashboard-stat-card small {
    color: var(--muted);
}

.stat-accent-blue .dashboard-stat-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.stat-accent-blue::after {
    background: #60a5fa;
}

.stat-accent-teal .dashboard-stat-icon {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: #0f766e;
}

.stat-accent-teal::after {
    background: #2dd4bf;
}

.stat-accent-amber .dashboard-stat-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.stat-accent-amber::after {
    background: #f59e0b;
}

.stat-accent-violet .dashboard-stat-icon {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
}

.stat-accent-violet::after {
    background: #8b5cf6;
}

.table-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

@media (max-width: 1199.98px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .table-toolbar-actions {
        width: 100%;
        margin-left: 0;
    }

    .table-toolbar-actions .search-box-inline {
        flex: 1 1 100%;
    }
}

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

    .hero-current-module {
        width: 100%;
        min-width: 0;
    }
}
.module-hero {
    align-items: center;
}

.module-hero-copy {
    min-width: 0;
}

.module-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.module-title-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 199, 242, 0.18) 0%, rgba(20, 184, 166, 0.18) 100%);
    color: var(--primary-dark);
    font-size: 1.5rem;
    box-shadow: 0 16px 30px rgba(29, 78, 216, 0.12);
}

.module-title-wrap h1 {
    margin-bottom: 0.35rem;
}

.module-title-wrap p {
    margin-bottom: 0;
}

.stat-accent-slate .dashboard-stat-icon {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
}

.stat-accent-slate::after {
    background: #64748b;
}

@media (max-width: 767.98px) {
    .module-title-wrap {
        align-items: flex-start;
    }

    .module-title-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 1.25rem;
    }
}
#subjectsModal .dt-length,
#subjectsModal .dataTables_length {
    display: block !important;
}

#subjectsModal .dt-length select,
#subjectsModal .dataTables_length select {
    min-width: 88px;
    border-radius: 12px;
}
.sync-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.sync-log-card h5 {
    margin-bottom: 0.35rem;
}

.sync-total-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary-dark);
    font-weight: 700;
}

.sync-log-table thead th {
    background: linear-gradient(180deg, #10223e 0%, #0f172a 100%);
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    white-space: nowrap;
}

.sync-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sync-status-pill.status-pending {
    background: #dbeafe;
    color: #1d4ed8;
}

.sync-status-pill.status-processing {
    background: #fef3c7;
    color: #b45309;
}

.sync-status-pill.status-synced {
    background: #ccfbf1;
    color: #0f766e;
}

.sync-status-pill.status-failed {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 1199.98px) {
    .sync-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .sync-overview-grid {
        grid-template-columns: 1fr;
    }
}

.sync-hint-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    color: var(--muted);
}

#remoteCategoriesModal .modal-dialog {
    max-width: min(1240px, calc(100vw - 2rem));
}

#remote-categories-table thead th {
    background: linear-gradient(180deg, #10223e 0%, #0f172a 100%);
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    white-space: nowrap;
}

#remoteCategoriesModal .dt-search,
#remoteCategoriesModal .dt-length {
    display: block !important;
}

.sync-todo-card {
    overflow: hidden;
}

.sync-todo-list {
    display: grid;
    gap: 14px;
}

.sync-todo-item {
    width: 100%;
    border: 0;
    border-radius: 22px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sync-todo-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.sync-todo-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.sync-todo-copy {
    display: grid;
    gap: 0.2rem;
}

.sync-todo-copy strong {
    color: var(--text);
    font-size: 1rem;
}

.sync-todo-copy small {
    color: var(--muted);
    line-height: 1.45;
}
