/* ====================================
   AUTHENTICATION
==================================== */

.authentication-page,
.admin-dashboard-page {
    color: #172033;
    font-family: "Segoe UI", Arial, sans-serif;
}

.authentication-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 620px;
    padding: 55px 24px 75px;
    background:
        radial-gradient(
            circle at top right,
            rgba(23, 71, 158, 0.08),
            transparent 34%
        ),
        #f6f8fb;
}

.authentication-card {
    width: min(100%, 500px);
    padding: 34px;
    border: 1px solid #dce4ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(20, 48, 94, 0.1);
}

.authentication-brand {
    margin-bottom: 25px;
}

.authentication-brand > span,
.admin-dashboard-header > div:first-child > span,
.admin-module-section > header > span {
    display: block;
    margin-bottom: 7px;
    color: #f26419;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.authentication-brand h1 {
    margin: 0 0 9px;
    color: #17479e;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.authentication-brand p {
    margin: 0;
    color: #647187;
    font-size: 14px;
    line-height: 1.65;
}

.authentication-status,
.authentication-errors {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}

.authentication-status {
    border: 1px solid #b8e0c8;
    background: #edf9f1;
    color: #23643c;
}

.authentication-errors {
    border: 1px solid #f0b9b9;
    background: #fff1f1;
    color: #9f2929;
}

.authentication-errors strong {
    display: block;
    margin-bottom: 5px;
}

.authentication-errors ul {
    margin: 0;
    padding-left: 18px;
}

.authentication-form {
    display: grid;
    gap: 18px;
}

.authentication-field {
    display: grid;
    gap: 7px;
}

.authentication-field label {
    color: #273449;
    font-size: 13px;
    font-weight: 600;
}

.authentication-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #ccd6e3;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.authentication-field input:focus {
    border-color: #17479e;
    box-shadow: 0 0 0 3px rgba(23, 71, 158, 0.12);
}

.authentication-remember {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #59677b;
    font-size: 13px;
    line-height: 1.5;
}

.authentication-remember input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #17479e;
}

.authentication-submit {
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid #17479e;
    border-radius: 8px;
    background: #17479e;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.authentication-submit:hover {
    border-color: #103878;
    background: #103878;
}

.authentication-help {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e4e9f0;
    color: #7a8799;
    font-size: 12px;
    line-height: 1.6;
}

/* ====================================
   ADMINISTRATION DASHBOARD
==================================== */

.admin-dashboard-page {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 38px 0 75px;
}

.admin-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
    padding: 27px 29px;
    border: 1px solid #dce4ee;
    border-radius: 15px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f6f9ff 100%
        );
    box-shadow: 0 8px 24px rgba(20, 48, 94, 0.06);
}

.admin-dashboard-header h1 {
    margin: 0 0 8px;
    color: #17479e;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.2;
}

.admin-dashboard-header p {
    max-width: 680px;
    margin: 0;
    color: #617089;
    font-size: 14px;
    line-height: 1.65;
}

.admin-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-dashboard-actions form {
    margin: 0;
}

.admin-dashboard-primary-action,
.admin-dashboard-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.admin-dashboard-primary-action {
    border: 1px solid #17479e;
    background: #17479e;
    color: #ffffff;
}

.admin-dashboard-secondary-action {
    border: 1px solid #17479e;
    background: #ffffff;
    color: #17479e;
}

.admin-dashboard-primary-action:hover {
    border-color: #103878;
    background: #103878;
    color: #ffffff;
}

.admin-dashboard-secondary-action:hover {
    background: #edf4ff;
    color: #103878;
}

.admin-statistics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 28px;
}

.admin-statistic-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(20, 48, 94, 0.05);
}

.admin-statistic-card > span {
    display: block;
    margin-bottom: 11px;
    color: #6e7d92;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.admin-statistic-card > strong {
    display: block;
    margin-bottom: 7px;
    color: #17479e;
    font-size: 30px;
    line-height: 1;
}

.admin-statistic-card p {
    margin: 0;
    color: #7a8799;
    font-size: 11px;
    line-height: 1.5;
}

.admin-module-section {
    padding: 27px;
    border: 1px solid #dce4ee;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 48, 94, 0.06);
}

.admin-module-section > header {
    margin-bottom: 20px;
}

.admin-module-section > header h2 {
    margin: 0;
    color: #17479e;
    font-size: 24px;
    font-weight: 700;
}

.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.admin-module-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 180px;
    padding: 20px;
    border: 1px solid #e0e6ee;
    border-radius: 11px;
    background: #f9fbfd;
}

.admin-module-card h3 {
    margin: 0 0 9px;
    color: #17479e;
    font-size: 17px;
    line-height: 1.35;
}

.admin-module-card p {
    margin: 0 0 17px;
    color: #667489;
    font-size: 12px;
    line-height: 1.6;
}

.admin-module-card > span {
    display: inline-flex;
    align-self: flex-start;
    margin-top: auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff0e5;
    color: #c94f0b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* ====================================
   ACCOUNT RESPONSIVE LAYOUT
==================================== */

@media (max-width: 1050px) {

    .admin-statistics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {

    .authentication-page {
        min-height: 0;
        padding: 35px 14px 55px;
    }

    .authentication-card {
        padding: 25px 20px;
    }

    .authentication-brand h1 {
        font-size: 26px;
    }

    .admin-dashboard-page {
        width: min(100% - 28px, 1240px);
        padding-top: 25px;
    }

    .admin-dashboard-header {
        flex-direction: column;
        padding: 22px;
    }

    .admin-dashboard-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .admin-dashboard-actions form,
    .admin-dashboard-primary-action,
    .admin-dashboard-secondary-action {
        width: 100%;
    }

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

@media (max-width: 480px) {

    .admin-statistics-grid,
    .admin-module-grid {
        grid-template-columns: 1fr;
    }

    .admin-module-section {
        padding: 20px;
    }
}

/* =========================================
   ADMINISTRATION CRUD PAGES
========================================= */

.admin-page {
    min-height: calc(100vh - 190px);
    padding: 34px 0 60px;
    background: #f5f7fb;
}

.admin-page-container {
    width: min(100% - 40px, 1550px);
    margin: 0 auto;
}

.admin-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #71809b;
    font-size: 14px;
}

.admin-breadcrumbs a {
    color: #17489f;
    text-decoration: none;
}

.admin-breadcrumbs a:hover {
    text-decoration: underline;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
    padding: 28px 32px;
    border: 1px solid #d9e2f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 61, 145, 0.06);
}

.admin-page-header h1 {
    margin: 4px 0 8px;
    color: #17489f;
    font-size: 34px;
    line-height: 1.15;
}

.admin-page-header > div > p:last-child {
    max-width: 760px;
    color: #65728a;
    font-size: 15px;
}

.admin-eyebrow {
    color: #ff5a00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-header-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    min-width: 270px;
    overflow: hidden;
    border: 1px solid #d9e2f0;
    border-radius: 12px;
}

.admin-header-summary span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 16px;
}

.admin-header-summary span + span {
    border-left: 1px solid #d9e2f0;
}

.admin-header-summary small {
    color: #77859e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-header-summary strong {
    color: #17233a;
    font-size: 17px;
}

.admin-primary-button,
.admin-secondary-button,
.admin-danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.admin-primary-button {
    border: 1px solid #17489f;
    background: #17489f;
    color: #ffffff;
}

.admin-primary-button:hover {
    border-color: #0f3d91;
    background: #0f3d91;
}

.admin-secondary-button {
    border: 1px solid #17489f;
    background: #ffffff;
    color: #17489f;
}

.admin-secondary-button:hover {
    background: #edf3ff;
}

.admin-danger-button {
    border: 1px solid #c63232;
    background: #ffffff;
    color: #b42323;
}

.admin-danger-button:hover {
    background: #fff1f1;
}

.admin-alert {
    margin-bottom: 20px;
    padding: 15px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.admin-alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.admin-alert-success {
    border: 1px solid #a9dfc1;
    background: #ecf9f1;
    color: #176b3a;
}

.admin-alert-error {
    border: 1px solid #efb3b3;
    background: #fff1f1;
    color: #922727;
}

/* ADMIN FORMS */

.admin-form-card,
.admin-danger-card,
.admin-list-card {
    border: 1px solid #d9e2f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 61, 145, 0.06);
}

.admin-form-card {
    padding: 32px;
}

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

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-field-wide {
    grid-column: 1 / -1;
}

.admin-field label,
.admin-status-controls legend {
    color: #17233a;
    font-size: 14px;
    font-weight: 600;
}

.admin-field label span {
    color: #d23a2e;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    border: 1px solid #cfd9e8;
    border-radius: 9px;
    background: #ffffff;
    color: #17233a;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.admin-field input,
.admin-field select {
    min-height: 48px;
    padding: 10px 13px;
}

.admin-field textarea {
    min-height: 125px;
    padding: 13px;
    resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: #17489f;
    box-shadow: 0 0 0 3px rgba(23, 72, 159, 0.12);
}

.admin-field small,
.admin-checkbox small {
    color: #77859e;
    font-size: 12px;
    line-height: 1.45;
}

.admin-status-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
    gap: 14px;
    margin: 0;
    padding: 0;
    border: 0;
}

.admin-status-controls legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.admin-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d9e2f0;
    border-radius: 10px;
    background: #f8faff;
    cursor: pointer;
}

.admin-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #17489f;
}

.admin-checkbox > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-checkbox strong {
    color: #17233a;
    font-size: 14px;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f2;
}

.admin-danger-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 24px;
    padding: 24px 28px;
    border-color: #f0caca;
}

.admin-danger-card h2 {
    margin-bottom: 6px;
    color: #a72929;
    font-size: 20px;
}

.admin-danger-card p {
    color: #707c91;
    font-size: 14px;
}

/* ADMIN DIRECTORY */

.admin-list-card {
    overflow: hidden;
}

.admin-list-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 23px 28px;
    border-bottom: 1px solid #e1e7f0;
}

.admin-list-summary h2 {
    margin-bottom: 4px;
    color: #17489f;
    font-size: 21px;
}

.admin-list-summary p {
    color: #77859e;
    font-size: 13px;
}

.admin-list-legend,
.admin-status-group,
.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-status-badge.is-active {
    background: #e7f8ed;
    color: #176b3a;
}

.admin-status-badge.is-visible {
    background: #eaf1ff;
    color: #17489f;
}

.admin-status-badge.is-disabled {
    background: #f2f3f5;
    color: #6f7888;
}

.admin-status-badge.is-hidden {
    background: #fff1e8;
    color: #a8450b;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #e4e9f1;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #f7f9fc;
    color: #6d7a92;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.admin-table td {
    color: #253149;
    font-size: 14px;
}

.admin-table tbody tr:hover {
    background: #fbfcff;
}

.admin-category-identity {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 240px;
}

.admin-category-identity > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-category-identity strong {
    color: #17489f;
    font-size: 15px;
}

.admin-category-identity small {
    color: #7a879d;
    font-size: 12px;
}

.admin-category-image {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 9px;
    background: #eaf1ff;
    color: #17489f;
    font-size: 18px;
    font-weight: 700;
}

.admin-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-table code {
    padding: 5px 8px;
    border-radius: 6px;
    background: #f0f3f8;
    color: #34425a;
    font-family: Consolas, monospace;
    font-size: 12px;
}

.admin-row-actions {
    justify-content: flex-end;
    min-width: 115px;
}

.admin-row-actions form {
    margin: 0;
}

.admin-table-action {
    padding: 7px 10px;
    border: 0;
    background: transparent;
    color: #17489f;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.admin-table-action:hover {
    text-decoration: underline;
}

.admin-table-action.is-danger {
    color: #b42323;
}

.admin-empty-state {
    padding: 60px 30px;
    text-align: center;
}

.admin-empty-state h2 {
    margin-bottom: 8px;
    color: #17489f;
    font-size: 24px;
}

.admin-empty-state p {
    margin-bottom: 22px;
    color: #71809a;
}

.admin-pagination {
    padding: 20px 28px;
    border-top: 1px solid #e1e7f0;
}

/* ADMIN RESPONSIVE */

@media (max-width: 900px) {
    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-header-summary {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .admin-page {
        padding-top: 22px;
    }

    .admin-page-container {
        width: min(100% - 24px, 1550px);
    }

    .admin-page-header,
    .admin-form-card {
        padding: 22px;
    }

    .admin-page-header h1 {
        font-size: 28px;
    }

    .admin-form-grid,
    .admin-status-controls {
        grid-template-columns: 1fr;
    }

    .admin-field-wide,
    .admin-status-controls,
    .admin-status-controls legend {
        grid-column: auto;
    }

    .admin-form-actions,
    .admin-danger-card,
    .admin-list-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-primary-button,
    .admin-secondary-button,
    .admin-danger-button {
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        padding: 14px 18px;
        border-bottom: 1px solid #dfe6f0;
    }

    .admin-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 9px 0;
        border: 0;
        text-align: right;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: #77859e;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-align: left;
        text-transform: uppercase;
    }

    .admin-table td[data-label="Category"] {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .admin-table td[data-label="Category"]::before {
        margin-bottom: 5px;
    }

    .admin-category-identity {
        min-width: 0;
    }

    .admin-status-group,
    .admin-row-actions {
        justify-content: flex-end;
    }
}

.admin-module-card-link {
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-module-card-link:hover {
    transform: translateY(-3px);
    border-color: #9eb8e8;
    box-shadow: 0 12px 24px rgba(15, 61, 145, 0.10);
}

.admin-module-card-link:focus-visible {
    outline: 3px solid rgba(23, 72, 159, 0.25);
    outline-offset: 3px;
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.admin-status-badge.is-featured {
    background: #fff1e5;
    color: #c54b00;
}

.admin-course-identity {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 280px;
}

.admin-course-identity > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-course-identity strong {
    color: #17489f;
    font-size: 15px;
}

.admin-course-identity small {
    color: #7a879d;
    font-size: 12px;
}

.admin-course-image {
    flex: 0 0 72px;
    width: 72px;
    height: 46px;
    overflow: hidden;
    border-radius: 8px;
    background: #081f3d;
}

.admin-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 700px) {
    .admin-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .admin-table td[data-label="Course"] {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .admin-course-identity {
        min-width: 0;
    }
}

/* COMPACT COURSE ADMINISTRATION */

.admin-course-page {
    padding-top: 18px;
}

.admin-course-page .admin-breadcrumbs {
    margin-bottom: 10px;
}

.admin-course-page .admin-page-header {
    gap: 22px;
    margin-bottom: 18px;
    padding: 18px 28px;
    border-radius: 14px;
}

.admin-course-page .admin-page-header h1 {
    margin-top: 2px;
    margin-bottom: 5px;
    font-size: 30px;
}

.admin-course-page .admin-page-header > div > p:last-child {
    line-height: 1.45;
}

.admin-course-page .admin-list-summary {
    padding-top: 16px;
    padding-bottom: 16px;
}

.admin-course-page .admin-form-card {
    padding-top: 24px;
    padding-bottom: 24px;
}

@media (max-width: 700px) {
    .admin-course-page {
        padding-top: 14px;
    }

    .admin-course-page .admin-page-header {
        padding: 18px 20px;
    }

    .admin-course-page .admin-page-header h1 {
        font-size: 26px;
    }

    /* =========================================
    COMPACT INTERNAL SCREEN LAYOUT
    Excludes the public homepage
    ========================================= */

    body:has(.authentication-page) main,
    body:has(.admin-dashboard-page) main,
    body:has(.admin-page) main {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Login and registration screens */

    .authentication-page {
        min-height: calc(100vh - 190px);
        padding: 16px 24px 40px;
    }

    .authentication-card {
        padding: 26px;
    }

    .authentication-brand {
        margin-bottom: 18px;
    }

    /* Student, Parent and Administration dashboards */

    .admin-dashboard-page {
        padding: 12px 0 44px;
    }

    .admin-dashboard-header {
        align-items: center;
        gap: 20px;
        margin-bottom: 12px;
        padding: 18px 24px;
    }

    .admin-dashboard-header h1 {
        margin-bottom: 4px;
        font-size: clamp(26px, 3vw, 34px);
    }

    .admin-dashboard-header p {
        line-height: 1.45;
    }

    .admin-dashboard-page > .admin-card[role="status"] {
        margin-bottom: 12px;
        padding: 12px 18px;
    }

    .admin-statistics-grid {
        grid-template-columns:
            repeat(auto-fit, minmax(190px, 1fr));
        gap: 12px;
        margin-bottom: 14px;
    }

    .admin-statistic-card {
        padding: 15px 18px;
    }

    .admin-statistic-card > span {
        margin-bottom: 6px;
    }

    .admin-statistic-card > strong {
        margin-bottom: 5px;
        font-size: 27px;
    }

    .admin-statistic-card p {
        line-height: 1.4;
    }

    .admin-module-section {
        padding: 20px;
    }

    .admin-module-section + .admin-module-section {
        margin-top: 14px;
    }

    .admin-module-section > header {
        margin-bottom: 14px;
    }

    .admin-module-section > header h2 {
        font-size: 22px;
    }

    .admin-module-card {
        min-height: 145px;
        padding: 16px;
    }

    /* Administration CRUD and application screens */

    .admin-page {
        padding: 12px 0 44px;
    }

    .admin-page-header {
        gap: 20px;
        margin-bottom: 14px;
        padding: 18px 24px;
    }

    .admin-page-header h1 {
        margin: 2px 0 5px;
        font-size: 30px;
    }

    .admin-page-header > div > p:last-child {
        margin: 0;
        line-height: 1.45;
    }

    .admin-alert {
        margin-bottom: 14px;
        padding: 12px 16px;
    }

    @media (max-width: 720px) {
        .authentication-page {
            padding: 12px 14px 35px;
        }

        .authentication-card {
            padding: 22px 18px;
        }

        .admin-dashboard-page {
            padding-top: 10px;
            padding-bottom: 35px;
        }

        .admin-dashboard-header {
            align-items: flex-start;
            gap: 14px;
            padding: 16px 18px;
        }

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

        .admin-page {
            padding-top: 10px;
            padding-bottom: 35px;
        }

        .admin-page-header {
            padding: 16px 18px;
        }
    }

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

        .admin-statistic-card,
        .admin-module-section {
            padding: 16px;
        }
    }
}
