/* =========================================================
   CANDIDATE MANAGEMENT SYSTEM
   Professional Application Theme
========================================================= */

:root {
    --app-primary: #3157d5;
    --app-primary-dark: #2445b5;
    --app-primary-light: #edf2ff;

    --app-sidebar: #111c35;
    --app-sidebar-hover: #202e4c;

    --app-background: #f5f7fb;
    --app-surface: #ffffff;

    --app-text: #17233c;
    --app-muted: #77839a;
    --app-border: #e8edf5;

    --app-blue: #3157d5;
    --app-green: #159b70;
    --app-amber: #d99416;
    --app-red: #dc4b57;
    --app-purple: #805ad5;

    --app-radius: 14px;

    --app-shadow:
        0 3px 15px rgba(23, 35, 60, 0.045);

    --app-shadow-hover:
        0 12px 30px rgba(23, 35, 60, 0.09);
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;

    background: var(--app-background);
    color: var(--app-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    color: #ffffff;
    background: var(--app-primary);
}


/* =========================================================
   APPLICATION LAYOUT
========================================================= */

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

.app-main {
    min-width: 0;
    min-height: 100vh;

    margin-left: 260px;

    transition: margin-left 0.25s ease;
}

.app-content {
    width: 100%;
    max-width: 1800px;

    margin: 0 auto;
    padding: 32px 36px 22px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;

    z-index: 1045;

    display: flex;
    flex-direction: column;

    width: 260px;
    height: 100vh;
    height: 100dvh;

    padding: 25px 18px 16px;

    overflow-y: auto;

    color: #ffffff;
    background: var(--app-sidebar);

    border-right: 1px solid rgba(255, 255, 255, 0.04);

    transition: transform 0.25s ease;
}

.app-sidebar::-webkit-scrollbar {
    width: 5px;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}


/* Brand */

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;

    padding: 0 5px 22px;

    color: #ffffff;

    transition: opacity 0.2s ease;
}

.app-brand:hover {
    color: #ffffff;
    opacity: 0.92;
}

.app-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 43px;

    width: 43px;
    height: 43px;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #4775ff,
        #3157d5
    );

    box-shadow: 0 6px 18px rgba(49, 87, 213, 0.3);

    font-size: 21px;
}

.app-brand-text {
    min-width: 0;
}

.app-brand-title {
    margin: 0;

    color: #ffffff;

    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.25px;

    white-space: nowrap;
}

.app-brand-subtitle {
    margin: 3px 0 0;

    color: #a2aec7;

    font-size: 11px;
    letter-spacing: 0.2px;
}

.app-sidebar-divider {
    height: 1px;
    margin: 0 4px 24px;

    background: rgba(255, 255, 255, 0.09);
}


/* Navigation labels */

.app-nav-label {
    margin: 0 0 12px 10px;

    color: #7e8da9;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}


/* Navigation links */

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-nav-link {
    position: relative;

    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 46px;

    padding: 11px 13px;

    color: #b5bfd3;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.app-nav-link:hover {
    color: #ffffff;
    background: var(--app-sidebar-hover);
}

.app-nav-link.active {
    color: #ffffff;

    background: rgba(71, 117, 255, 0.16);

    border-color: rgba(103, 139, 255, 0.2);
}

.app-nav-link.active::before {
    position: absolute;

    top: 10px;
    bottom: 10px;
    left: -19px;

    width: 3px;

    background: #6388ff;
    border-radius: 0 4px 4px 0;

    content: "";
}

.app-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 21px;

    font-size: 17px;
}

.app-nav-link.active .app-nav-icon {
    color: #89a7ff;
}

.app-sidebar-spacer {
    flex: 1;
    min-height: 35px;
}


/* Account */

.app-account-panel {
    padding: 19px 10px 14px;

    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.app-account-user {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 18px;
}

.app-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #557bff,
        #805ad5
    );

    border-radius: 50%;

    font-size: 13px;
    font-weight: 750;

    text-transform: uppercase;
}

.app-account-details {
    min-width: 0;
}

.app-account-name {
    overflow: hidden;

    color: #ffffff;

    font-size: 12px;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-account-role {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 4px;

    color: #9ba9c2;

    font-size: 11px;
}

.app-online-dot {
    width: 7px;
    height: 7px;

    background: #3dd598;
    border-radius: 50%;
}


/* Logout */

.app-logout-button {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;

    padding: 10px 12px;

    color: #d6dcec;
    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;

    font-size: 12px;
    font-weight: 550;

    text-align: left;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;

    cursor: pointer;
}

.app-logout-button:hover {
    color: #ffffff;

    background: rgba(220, 75, 87, 0.13);
    border-color: rgba(220, 75, 87, 0.35);
}

.app-logout-button i {
    font-size: 16px;
}

.app-sidebar-footer {
    padding: 12px 4px 0;

    color: #7e8da9;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    font-size: 10px;
    text-align: center;
}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.app-overlay {
    position: fixed;
    inset: 0;

    z-index: 1040;

    visibility: hidden;
    opacity: 0;

    background: rgba(11, 20, 39, 0.55);

    backdrop-filter: blur(2px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.app-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}


/* =========================================================
   TOPBAR
========================================================= */

.app-topbar {
    position: sticky;
    top: 0;

    z-index: 1020;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 78px;

    padding: 15px 36px;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--app-border);

    backdrop-filter: blur(14px);
}

.app-topbar-left {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;
}

.app-topbar-title {
    color: var(--app-text);

    font-size: 14px;
    font-weight: 750;
}

.app-topbar-subtitle {
    margin-top: 3px;

    color: var(--app-muted);

    font-size: 11px;
}

.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 13px;
}

.app-topbar-date {
    display: flex;
    align-items: center;

    color: #66748c;

    font-size: 12px;
    font-weight: 550;
}

.app-topbar-date i {
    color: var(--app-primary);
}

.app-topbar-divider {
    width: 1px;
    height: 32px;

    background: var(--app-border);
}

.app-user-avatar-light {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    color: var(--app-primary);
    background: var(--app-primary-light);

    font-size: 12px;
}

.app-topbar-user-name {
    max-width: 180px;

    overflow: hidden;

    color: var(--app-text);

    font-size: 12px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-topbar-user-role {
    margin-top: 2px;

    color: var(--app-muted);

    font-size: 11px;
}

.app-mobile-menu {
    display: none;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: var(--app-text);
    background: #ffffff;

    border: 1px solid var(--app-border);
    border-radius: 9px;

    font-size: 23px;

    cursor: pointer;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.app-welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 32px;
    padding: 27px 29px;

    background: linear-gradient(
        115deg,
        #ffffff 0%,
        #f4f7ff 100%
    );

    border: 1px solid #e6ebfa;
    border-radius: var(--app-radius);

    box-shadow: var(--app-shadow);
}

.app-welcome-content {
    min-width: 0;
}

.app-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 11px;

    color: var(--app-primary);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.app-eyebrow-dot {
    width: 7px;
    height: 7px;

    background: var(--app-primary);
    border-radius: 50%;
}

.app-page-title {
    margin: 0;

    color: var(--app-text);

    font-size: clamp(23px, 2.2vw, 30px);
    font-weight: 800;
    letter-spacing: -0.9px;

    line-height: 1.3;
    overflow-wrap: anywhere;
}

.app-page-title span {
    color: var(--app-primary);
}

.app-page-description {
    margin: 9px 0 0;

    color: var(--app-muted);

    font-size: 13px;
    line-height: 1.8;
}

.app-welcome-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn-app-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 17px;

    color: #ffffff;
    background: var(--app-primary);

    border: 1px solid var(--app-primary);
    border-radius: 9px;

    font-size: 12px;
    font-weight: 650;

    box-shadow: 0 4px 10px rgba(49, 87, 213, 0.13);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-app-primary:hover,
.btn-app-primary:focus {
    color: #ffffff;

    background: var(--app-primary-dark);
    border-color: var(--app-primary-dark);

    box-shadow: 0 6px 16px rgba(49, 87, 213, 0.2);

    transform: translateY(-1px);
}

.btn-app-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 15px;

    color: #4d5b73;
    background: #ffffff;

    border: 1px solid #dfe5ef;
    border-radius: 9px;

    font-size: 12px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.btn-app-light:hover,
.btn-app-light:focus {
    color: var(--app-primary);

    background: #f5f7ff;
    border-color: #cbd6ff;
}


/* =========================================================
   SECTIONS
========================================================= */

.app-section {
    margin-bottom: 32px;
}

.app-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 17px;
}

.app-card-title {
    margin: 0;

    color: var(--app-text);

    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.25px;
}

.app-card-description {
    margin: 5px 0 0;

    color: var(--app-muted);

    font-size: 12px;
    line-height: 1.7;
}

.app-text-link {
    display: inline-flex;
    align-items: center;

    color: var(--app-primary);

    font-size: 12px;
    font-weight: 650;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.app-text-link:hover {
    color: var(--app-primary-dark);
}


/* =========================================================
   STATISTIC CARDS
========================================================= */

.app-stat-card {
    position: relative;

    height: 100%;
    min-height: 190px;

    padding: 21px;

    overflow: hidden;

    background: var(--app-surface);

    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);

    box-shadow: var(--app-shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.app-stat-card:hover {
    border-color: #dbe3f3;

    box-shadow: var(--app-shadow-hover);

    transform: translateY(-3px);
}

.app-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 19px;
}

.app-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 43px;

    width: 43px;
    height: 43px;

    border-radius: 12px;

    font-size: 19px;
}

.app-stat-icon.blue {
    color: #3157d5;
    background: #edf2ff;
}

.app-stat-icon.amber {
    color: #b7790d;
    background: #fff5df;
}

.app-stat-icon.green {
    color: #12845f;
    background: #e3f8ef;
}

.app-stat-icon.red {
    color: #d34250;
    background: #fff0f1;
}

.app-stat-indicator {
    padding: 5px 8px;

    color: #78849a;
    background: #f6f8fc;

    border: 1px solid #eef1f7;
    border-radius: 6px;

    font-size: 9px;
    font-weight: 650;

    white-space: nowrap;
}

.app-stat-label {
    color: #69758c;

    font-size: 12px;
    font-weight: 550;
}

.app-stat-value {
    margin-top: 4px;

    color: var(--app-text);

    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.1px;

    line-height: 1.4;
    overflow-wrap: anywhere;
}

.app-stat-footer {
    margin-top: 12px;
    padding-top: 11px;

    color: #8994a7;

    border-top: 1px solid #f0f2f7;

    font-size: 10px;
}

.app-stat-footer i {
    color: #7d8ba5;
}


/* =========================================================
   QUICK ACTION CARDS
========================================================= */

.app-action-card {
    display: flex;
    align-items: flex-start;
    gap: 17px;

    position: relative;

    height: 100%;
    min-height: 175px;

    padding: 23px;

    background: #ffffff;

    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);

    box-shadow: var(--app-shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.app-action-card:hover {
    color: inherit;

    border-color: #ccd7fa;

    box-shadow: var(--app-shadow-hover);

    transform: translateY(-3px);
}

.app-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 49px;

    width: 49px;
    height: 49px;

    border-radius: 13px;

    font-size: 21px;
}

.app-action-icon.blue {
    color: #3157d5;
    background: #edf2ff;
}

.app-action-icon.purple {
    color: #805ad5;
    background: #f1eaff;
}

.app-action-content {
    flex: 1;
    min-width: 0;

    padding-right: 12px;
}

.app-action-title {
    margin: 2px 0 0;

    color: var(--app-text);

    font-size: 14px;
    font-weight: 750;
}

.app-action-description {
    margin: 10px 0 0;

    color: var(--app-muted);

    font-size: 12px;
    line-height: 1.9;
}

.app-action-link {
    display: inline-block;

    margin-top: 15px;

    color: var(--app-primary);

    font-size: 11px;
    font-weight: 750;
}

.app-action-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 29px;

    width: 29px;
    height: 29px;

    color: #7e8ba3;
    background: #f7f8fc;

    border: 1px solid #edf0f6;
    border-radius: 8px;

    font-size: 13px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.app-action-card:hover .app-action-arrow {
    color: #ffffff;
    background: var(--app-primary);
}


/* =========================================================
   RECENT CANDIDATES CARD
========================================================= */

.app-card {
    margin-bottom: 25px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);

    box-shadow: var(--app-shadow);
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 23px 25px;

    border-bottom: 1px solid #edf0f6;
}

.app-card-header .btn {
    flex-shrink: 0;
}

.app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px 25px;

    color: var(--app-muted);
    background: #fcfdff;

    border-top: 1px solid #edf0f6;

    font-size: 11px;
}


/* =========================================================
   TABLE
========================================================= */

.app-table {
    color: var(--app-text);
    font-size: 12px;
}

.app-table thead th {
    padding: 15px 24px;

    color: #8792a6;
    background: #fafbfe;

    border-bottom: 1px solid #e9edf5;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.6px;
    text-transform: uppercase;

    white-space: nowrap;
}

.app-table tbody td {
    padding: 17px 24px;

    border-bottom: 1px solid #f0f2f7;

    vertical-align: middle;
}

.app-table tbody tr:last-child td {
    border-bottom: 0;
}

.app-table tbody tr {
    transition: background 0.2s ease;
}

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

.app-candidate-cell {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 190px;
}

.app-candidate-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 39px;

    width: 39px;
    height: 39px;

    color: #3157d5;
    background: #edf2ff;

    border: 1px solid #e4eaff;
    border-radius: 11px;

    font-size: 13px;
    font-weight: 750;
}

.app-candidate-info {
    min-width: 0;
}

.app-candidate-name {
    color: #26334b;

    font-size: 12px;
    font-weight: 750;

    overflow-wrap: anywhere;
}

.app-candidate-id {
    margin-top: 4px;

    color: #8994a7;

    font-size: 10px;
}

.app-date-cell {
    display: flex;
    align-items: center;

    color: #69758c;

    font-size: 11px;
    white-space: nowrap;
}

.app-date-cell i {
    color: #96a1b4;
}


/* =========================================================
   STATUS LABELS
========================================================= */

.app-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 6px 10px;

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}

.app-status-dot {
    flex: 0 0 6px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
}

.app-status-progress {
    color: #a56b05;
    background: #fff7e5;
    border-color: #ffedc1;
}

.app-status-completed {
    color: #117d59;
    background: #e8f8f0;
    border-color: #ccefe0;
}

.app-status-insufficient {
    color: #c43e4c;
    background: #fff0f1;
    border-color: #ffdcdf;
}

.app-status-default {
    color: #64748b;
    background: #f1f4f9;
    border-color: #e4e9f1;
}


/* =========================================================
   TABLE ACTION
========================================================= */

.app-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: #66758f;
    background: #ffffff;

    border: 1px solid #e1e7f0;
    border-radius: 8px;

    font-size: 14px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.app-table-action:hover {
    color: var(--app-primary);
    background: var(--app-primary-light);

    border-color: #ccd7ff;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.app-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    padding: 42px 20px;

    text-align: center;
}

.app-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 67px;
    height: 67px;

    margin-bottom: 17px;

    color: #7892df;
    background: #edf2ff;

    border-radius: 20px;

    font-size: 29px;
}

.app-empty-state h3 {
    margin: 0;

    color: var(--app-text);

    font-size: 15px;
    font-weight: 750;
}

.app-empty-state p {
    max-width: 340px;

    margin: 9px 0 20px;

    color: var(--app-muted);

    font-size: 12px;
    line-height: 1.8;
}


/* =========================================================
   ALERTS
========================================================= */

.app-alert {
    margin-bottom: 22px;

    border-radius: 10px;

    font-size: 12px;
}

.app-alert ul {
    line-height: 1.8;
}


/* =========================================================
   FOOTER
========================================================= */

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 10px 2px 5px;

    color: #8a95a8;

    font-size: 10px;
}

.app-footer i {
    color: #6e83c5;
}


/* =========================================================
   FOCUS ACCESSIBILITY
========================================================= */

.app-nav-link:focus-visible,
.app-brand:focus-visible,
.app-action-card:focus-visible,
.app-text-link:focus-visible,
.app-table-action:focus-visible,
.app-logout-button:focus-visible,
.btn-app-primary:focus-visible,
.btn-app-light:focus-visible,
.app-mobile-menu:focus-visible {
    outline: 3px solid rgba(49, 87, 213, 0.4);
    outline-offset: 3px;
}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 1199.98px) {

    .app-content {
        padding: 27px 25px 20px;
    }

    .app-topbar {
        padding-right: 25px;
        padding-left: 25px;
    }

    .app-welcome-section {
        padding: 24px;
    }

    .app-stat-card {
        padding: 18px;
    }

}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 991.98px) {

    .app-main {
        margin-left: 0;
    }

    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-mobile-menu {
        display: inline-flex;
    }

    .app-topbar {
        min-height: 70px;

        padding: 12px 20px;
    }

    .app-content {
        padding: 24px 20px 18px;
    }

    .app-welcome-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-welcome-actions {
        width: 100%;
    }

}


/* =========================================================
   SMALL TABLETS AND LARGE PHONES
========================================================= */

@media (max-width: 767.98px) {

    .app-content {
        padding: 21px 16px 16px;
    }

    .app-topbar {
        padding: 11px 16px;
    }

    .app-topbar-subtitle {
        font-size: 10px;
    }

    .app-topbar-date {
        display: none;
    }

    .app-topbar-divider {
        display: none;
    }

    .app-topbar-right {
        gap: 9px;
    }

    .app-topbar-user-name {
        max-width: 105px;
    }

    .app-welcome-section {
        gap: 22px;

        margin-bottom: 26px;
        padding: 22px 19px;
    }

    .app-page-title {
        font-size: 25px;
    }

    .app-page-description {
        font-size: 12px;
    }

    .app-welcome-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .app-welcome-actions .btn {
        width: 100%;
    }

    .app-section {
        margin-bottom: 26px;
    }

    .app-section-heading {
        align-items: flex-start;
    }

    .app-stat-card {
        min-height: 175px;
    }

    .app-action-card {
        min-height: 160px;
        padding: 19px;
    }

    .app-card-header {
        align-items: flex-start;

        padding: 19px;
    }

    .app-table thead th {
        padding: 13px 17px;
    }

    .app-table tbody td {
        padding: 14px 17px;
    }

    .app-card-footer {
        align-items: flex-start;
        flex-direction: column;

        padding: 14px 19px;
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;

        padding-top: 15px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 420px) {

    .app-topbar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .app-topbar-left {
        gap: 8px;
    }

    .app-topbar-title {
        font-size: 12px;
    }

    .app-topbar-subtitle {
        max-width: 155px;

        overflow: hidden;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-topbar-user {
        display: none;
    }

    .app-content {
        padding-right: 12px;
        padding-left: 12px;
    }

    .app-welcome-section {
        padding: 19px 15px;
    }

    .app-page-title {
        font-size: 22px;
    }

    .app-stat-card {
        padding: 17px;
    }

    .app-stat-value {
        font-size: 29px;
    }

    .app-action-card {
        gap: 12px;
        padding: 16px;
    }

    .app-action-icon {
        flex-basis: 40px;

        width: 40px;
        height: 40px;

        font-size: 18px;
    }

    .app-action-arrow {
        flex-basis: 25px;

        width: 25px;
        height: 25px;
    }

    .app-card-header {
        gap: 10px;
        padding: 16px;
    }

    .app-card-header .btn {
        padding: 8px 10px;
        font-size: 10px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}

/* =========================================================
   PREMIUM LOGIN PAGE
   Dark Navy + Electric Blue
========================================================= */

.login-page {
    --login-navy: #0b1224;
    --login-navy-light: #111d38;
    --login-blue: #4169f5;
    --login-blue-light: #6385ff;
    --login-text: #17233c;
    --login-muted: #7b879d;
    --login-border: #e5eaf3;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 35px 24px;
    margin: 0;

    color: var(--login-text);

    background:
        radial-gradient(
            ellipse at 15% 15%,
            rgba(65, 105, 245, 0.19),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 90% 85%,
            rgba(86, 75, 220, 0.13),
            transparent 35%
        ),
        #080e1d;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   MAIN LOGIN CONTAINER
========================================================= */

.login-page .login-wrapper {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 0.92fr);

    width: 100%;
    max-width: 1060px;
    min-height: 640px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.42),
        0 5px 25px rgba(45, 74, 160, 0.12);
}


/* =========================================================
   LEFT BRAND PANEL
========================================================= */

.login-page .login-brand-panel {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 42px 39px 30px;

    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(65, 105, 245, 0.28),
            transparent 35%
        ),
        radial-gradient(
            circle at 5% 95%,
            rgba(68, 93, 190, 0.17),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #101c37 0%,
            #0b1224 58%,
            #101b35 100%
        );
}

/* Decorative background circles */

.login-page .login-brand-panel::before {
    position: absolute;

    top: -105px;
    right: -105px;

    width: 290px;
    height: 290px;

    border: 1px solid rgba(111, 143, 255, 0.17);
    border-radius: 50%;

    box-shadow:
        0 0 0 35px rgba(111, 143, 255, 0.035),
        0 0 0 70px rgba(111, 143, 255, 0.025);

    content: "";

    pointer-events: none;
}

.login-page .login-brand-panel::after {
    position: absolute;

    right: 30px;
    bottom: 70px;

    width: 100px;
    height: 100px;

    border: 1px solid rgba(111, 143, 255, 0.12);
    border-radius: 50%;

    content: "";

    pointer-events: none;
}

.login-page .login-brand-content {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 100%;
}


/* =========================================================
   BRAND
========================================================= */

.login-page .login-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    align-self: flex-start;

    color: #ffffff;

    text-decoration: none;
}

.login-page .login-brand:hover {
    color: #ffffff;
}

.login-page .login-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 47px;

    width: 47px;
    height: 47px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #6385ff,
        #3157df
    );

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;

    box-shadow:
        0 8px 22px rgba(49, 87, 213, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    font-size: 22px;
}

.login-page .login-brand-title {
    color: #ffffff;

    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.35px;
    line-height: 1.4;
}

.login-page .login-brand-subtitle {
    margin-top: 3px;

    color: #a4b2ce;

    font-size: 11px;
    font-weight: 450;
    letter-spacing: 0.55px;
}


/* =========================================================
   BRAND MESSAGE
========================================================= */

.login-page .login-brand-message {
    margin-top: 66px;
}

.login-page .login-brand-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 20px;

    color: #a9bcff;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.6px;
}

.login-page .login-brand-dot {
    flex: 0 0 7px;

    width: 7px;
    height: 7px;

    background: #76a0ff;

    border-radius: 50%;

    box-shadow: 0 0 12px rgba(118, 160, 255, 0.8);
}

.login-page .login-brand-message h1 {
    max-width: 440px;

    margin: 0;

    color: #ffffff;

    font-size: clamp(30px, 3.1vw, 39px);
    font-weight: 800;
    letter-spacing: -1.5px;

    line-height: 1.24;
}

.login-page .login-brand-message h1 span {
    display: block;

    color: #7898ff;

    background: linear-gradient(
        100deg,
        #8eabff 0%,
        #5680ff 65%,
        #8c9bff 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-page .login-brand-message > p {
    max-width: 385px;

    margin: 19px 0 0;

    color: #a8b5cc;

    font-size: 12px;
    line-height: 1.95;
}


/* =========================================================
   FEATURE LIST
========================================================= */

.login-page .login-feature-list {
    display: flex;
    flex-direction: column;
    gap: 23px;

    margin-top: 35px;
}

.login-page .login-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.login-page .login-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    color: #90a9ff;

    background: rgba(86, 119, 232, 0.12);

    border: 1px solid rgba(119, 151, 255, 0.17);
    border-radius: 12px;

    font-size: 18px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.login-page .login-feature:hover .login-feature-icon {
    background: rgba(86, 119, 232, 0.2);

    border-color: rgba(119, 151, 255, 0.35);

    transform: translateY(-2px);
}

.login-page .login-feature h2 {
    margin: 1px 0 0;

    color: #f1f5ff;

    font-size: 12px;
    font-weight: 700;
}

.login-page .login-feature p {
    margin: 5px 0 0;

    color: #96a5bf;

    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   BRAND FOOTER
========================================================= */

.login-page .login-brand-footer {
    margin-top: auto;
    padding-top: 32px;

    color: #a6b5d1;

    border-top: 1px solid rgba(255, 255, 255, 0.09);

    font-size: 11px;
    font-weight: 550;
}

.login-page .login-brand-footer i {
    color: #82a0ff;
}


/* =========================================================
   RIGHT FORM PANEL
========================================================= */

.login-page .login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;

    padding: 42px 44px;

    background: #ffffff;
}

.login-page .login-form-container {
    width: 100%;
    max-width: 370px;
    min-width: 0;
}


/* =========================================================
   MOBILE BRAND
========================================================= */

.login-page .login-mobile-brand {
    display: none;
    align-items: center;
    gap: 11px;

    margin-bottom: 36px;

    color: var(--login-text);

    text-decoration: none;
}

.login-page .login-mobile-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 43px;

    width: 43px;
    height: 43px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #6385ff,
        #3157df
    );

    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(49, 87, 213, 0.23);

    font-size: 20px;
}

.login-page .login-mobile-brand-title {
    color: #17233c;

    font-size: 15px;
    font-weight: 750;
}

.login-page .login-mobile-brand-subtitle {
    margin-top: 2px;

    color: #7b879d;

    font-size: 10px;
}


/* =========================================================
   LOGIN HEADING
========================================================= */

.login-page .login-heading {
    margin-bottom: 30px;
}

.login-page .login-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 49px;
    height: 49px;

    margin-bottom: 24px;

    color: #4169f5;

    background: #edf2ff;

    border: 1px solid #e1e9ff;
    border-radius: 14px;

    font-size: 23px;
}

.login-page .login-heading-eyebrow {
    margin-bottom: 9px;

    color: #4169f5;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.login-page .login-heading h2 {
    margin: 0;

    color: #17233c;

    font-size: clamp(23px, 2.2vw, 28px);
    font-weight: 800;
    letter-spacing: -0.9px;

    line-height: 1.35;
}

.login-page .login-heading > p {
    margin: 10px 0 0;

    color: #7b879d;

    font-size: 12px;
    line-height: 1.8;
}


/* =========================================================
   SUCCESS AND ERROR ALERTS
========================================================= */

.login-page .login-alert {
    margin-bottom: 23px;
    padding: 13px 14px;

    border-radius: 10px;

    font-size: 12px;
    line-height: 1.7;
}

.login-page .alert-success.login-alert {
    color: #147453;

    background: #edfbf4;

    border: 1px solid #c9f0dd;
}

.login-page .alert-danger.login-alert {
    color: #bd3546;

    background: #fff1f2;

    border: 1px solid #ffd8dc;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.login-page .login-form {
    width: 100%;
}

.login-page .login-form-group {
    margin-bottom: 23px;
}

.login-page .login-label {
    display: block;

    margin-bottom: 9px;

    color: #293750;

    font-size: 12px;
    font-weight: 700;
}

.login-page .login-input-wrapper {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 51px;

    background: #ffffff;

    border: 1px solid #dfe5ef;
    border-radius: 10px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-page .login-input-wrapper:focus-within {
    background: #ffffff;

    border-color: #5276f5;

    box-shadow:
        0 0 0 4px rgba(65, 105, 245, 0.10);
}

.login-page .login-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 45px;

    width: 45px;

    color: #8996ac;

    font-size: 16px;

    transition: color 0.2s ease;
}

.login-page .login-input-wrapper:focus-within .login-input-icon {
    color: #4169f5;
}

.login-page .login-input {
    width: 100%;
    min-width: 0;
    height: 49px;

    padding: 0 13px 0 0;

    color: #17233c;
    background: transparent;

    border: 0;
    outline: 0;

    font-size: 12px;
    font-weight: 500;

    box-shadow: none !important;
}

.login-page .login-input::placeholder {
    color: #a2adbf;

    font-size: 12px;
    font-weight: 400;
    opacity: 1;
}

.login-page .login-input:-webkit-autofill,
.login-page .login-input:-webkit-autofill:hover,
.login-page .login-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #17233c;

    transition: background-color 9999s ease-in-out 0s;
}

.login-page .login-field-help {
    margin-top: 8px;

    color: #8b96aa;

    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   PASSWORD VISIBILITY
========================================================= */

.login-page .login-password-input {
    padding-right: 5px;
}

.login-page .login-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 43px;

    width: 43px;
    height: 45px;

    margin-right: 3px;

    color: #8592a8;
    background: transparent;

    border: 0;
    border-radius: 8px;

    font-size: 17px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.login-page .login-password-toggle:hover {
    color: #4169f5;
    background: #f0f4ff;
}

.login-page .login-password-toggle:focus-visible {
    outline: 2px solid #4169f5;
    outline-offset: -3px;
}


/* =========================================================
   ACCESS NOTE
========================================================= */

.login-page .login-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: -2px;
    margin-bottom: 23px;
}

.login-page .login-access-note {
    display: flex;
    align-items: center;

    color: #718099;

    font-size: 11px;
    font-weight: 550;
}

.login-page .login-access-note i {
    color: #4169f5;
    font-size: 14px;
}


/* =========================================================
   SIGN IN BUTTON
========================================================= */

.login-page .login-submit-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 51px;

    padding: 13px 18px;

    color: #ffffff;

    background: linear-gradient(
        105deg,
        #4169f5 0%,
        #3157dc 100%
    );

    border: 1px solid #4169f5;
    border-radius: 10px;

    box-shadow:
        0 5px 14px rgba(49, 87, 220, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);

    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.15px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.login-page .login-submit-button:hover:not(:disabled) {
    background: linear-gradient(
        105deg,
        #3157dc 0%,
        #2446c3 100%
    );

    box-shadow:
        0 8px 22px rgba(49, 87, 220, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);

    transform: translateY(-1px);
}

.login-page .login-submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.login-page .login-submit-button:focus-visible {
    outline: 3px solid rgba(65, 105, 245, 0.35);
    outline-offset: 3px;
}

.login-page .login-submit-button i {
    font-size: 17px;

    transition: transform 0.2s ease;
}

.login-page .login-submit-button:hover:not(:disabled) i {
    transform: translateX(3px);
}

.login-page .login-submit-button:disabled {
    opacity: 0.8;
    cursor: wait;
}


/* Loading spinner */

.login-page .login-spinner {
    display: inline-block;

    width: 15px;
    height: 15px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: login-spin 0.7s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   ACCOUNT INFORMATION CARD
========================================================= */

.login-page .login-access-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 29px;
    padding: 16px;

    background: #f7f9ff;

    border: 1px solid #e8edfa;
    border-radius: 11px;
}

.login-page .login-access-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    color: #4169f5;
    background: #e9efff;

    border-radius: 9px;

    font-size: 16px;
}

.login-page .login-access-card-title {
    color: #26344c;

    font-size: 11px;
    font-weight: 750;
}

.login-page .login-access-card p {
    margin: 5px 0 0;

    color: #78859b;

    font-size: 10px;
    line-height: 1.8;
}


/* =========================================================
   LOGIN FOOTER
========================================================= */

.login-page .login-footer {
    margin-top: 31px;
}

.login-page .login-footer-divider {
    height: 1px;

    background: #edf0f6;
}

.login-page .login-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding-top: 17px;

    color: #929caf;

    font-size: 9px;
}

.login-page .login-footer-secure {
    display: inline-flex;
    align-items: center;

    color: #718099;

    white-space: nowrap;
}

.login-page .login-footer-secure i {
    color: #4169f5;
}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 991.98px) {

    .login-page {
        padding: 25px 18px;
    }

    .login-page .login-wrapper {
        max-width: 760px;

        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(0, 1fr);
    }

    .login-page .login-brand-panel {
        padding: 34px 27px 27px;
    }

    .login-page .login-brand-message {
        margin-top: 53px;
    }

    .login-page .login-brand-message h1 {
        font-size: 31px;
    }

    .login-page .login-brand-message > p {
        font-size: 11px;
    }

    .login-page .login-feature-list {
        gap: 19px;
        margin-top: 29px;
    }

    .login-page .login-feature-icon {
        flex-basis: 37px;

        width: 37px;
        height: 37px;
    }

    .login-page .login-form-panel {
        padding: 35px 26px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .login-page {
        align-items: flex-start;

        padding: 22px 15px;
    }

    .login-page .login-wrapper {
        display: block;

        width: 100%;
        max-width: 450px;
        min-height: 0;

        border-radius: 19px;

        box-shadow:
            0 25px 70px rgba(0, 0, 0, 0.38);
    }

    /* Hide desktop brand panel */

    .login-page .login-brand-panel {
        display: none;
    }

    /* Display compact mobile brand */

    .login-page .login-mobile-brand {
        display: flex;
    }

    .login-page .login-form-panel {
        display: block;

        padding: 30px 25px 25px;
    }

    .login-page .login-form-container {
        max-width: 100%;
    }

    .login-page .login-heading {
        margin-bottom: 25px;
    }

    .login-page .login-heading-icon {
        width: 44px;
        height: 44px;

        margin-bottom: 20px;

        font-size: 21px;
    }

    .login-page .login-heading h2 {
        font-size: 25px;
    }

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

    .login-page .login-access-card {
        margin-top: 25px;
    }

    .login-page .login-footer {
        margin-top: 26px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .login-page {
        padding: 12px 9px;
    }

    .login-page .login-wrapper {
        border-radius: 15px;
    }

    .login-page .login-form-panel {
        padding: 25px 18px 20px;
    }

    .login-page .login-mobile-brand {
        margin-bottom: 30px;
    }

    .login-page .login-heading h2 {
        font-size: 23px;
    }

    .login-page .login-footer-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .login-page *,
    .login-page *::before,
    .login-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

}
