/* AAGTC content-area styling, layered on top of the Zynix template (lib/zynix/css/styles.min.css). */

:root {
    --app-radius-sm: 6px;
    --app-radius: 10px;
    --app-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
}

body { font-size: .9375rem; }

/* ---------- Mobile sidebar backdrop (Zynix has no built-in overlay for vertical nav) ---------- */
.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(16, 24, 40, .45);
        z-index: 105;
    }
    .sidebar-backdrop.show { display: block; }
}

/* ---------- Content cards / tables (reuse live Zynix theme variables) ---------- */
.liner-card {
    background: var(--custom-white);
    border: 1px solid var(--bootstrap-card-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    margin-block-end: 1.5rem;
}

.liner-card .liner-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bootstrap-card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.liner-card .liner-card-header h6 { margin: 0; font-weight: 700; font-size: .95rem; }

.liner-card .liner-card-body { padding: 1.25rem; }

@media (max-width: 575.98px) {
    .liner-card .liner-card-header { padding: .85rem 1rem; }
    .liner-card .liner-card-body { padding: 1rem; }
}

.liner-table { width: 100%; margin: 0; font-size: .875rem; white-space: nowrap; }
.liner-table thead th {
    background: rgba(var(--primary-rgb), .04);
    border-bottom: 1px solid var(--bootstrap-card-border);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    font-weight: 700;
    padding: .7rem 1rem;
}
.liner-table tbody td {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--bootstrap-card-border);
    vertical-align: middle;
    color: var(--default-text-color);
}
.liner-table tbody tr:last-child td { border-bottom: none; }
.liner-table tbody tr:hover { background: rgba(var(--primary-rgb), .03); }

.dashboard-detail-scroll { overflow-x: auto; max-height: 65vh; overflow-y: auto; }
.dashboard-detail-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--custom-white);
    box-shadow: inset 0 -1px 0 var(--bootstrap-card-border);
}

.stat-card {
    background: var(--custom-white);
    border: 1px solid var(--bootstrap-card-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-card .stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: rgba(var(--primary-rgb), .1);
    color: var(--primary-color);
    flex-shrink: 0;
}
.stat-card .stat-value { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.stat-card .stat-label { color: var(--text-muted); font-size: .8rem; }

/* Comfortable touch targets on small screens */
@media (max-width: 575.98px) {
    .btn, .form-control, .form-select { min-height: 40px; }
}

/* ---------- Auth (login) ---------- */
.auth-page-wrapper {
    background: linear-gradient(160deg, #eef1fb, #f7f4fd 60%, #eafaf9);
}

.auth-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08);
}

.auth-brand-panel {
    background: linear-gradient(160deg, #111c43, var(--primary-color) 65%, #23b7e5);
    min-height: 100%;
}

.auth-brand-panel h4 { font-size: 1.35rem; }
.auth-brand-panel p { opacity: .85; }

@media (max-width: 991.98px) {
    .auth-brand-panel { display: none; }
}

@media (max-width: 380px) {
    .auth-card .p-lg-5 { padding: 1.5rem !important; }
}

/* ---------- Error pages ---------- */
.error-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.error-shell .error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

@media (max-width: 575.98px) {
    .error-shell .error-code { font-size: 4rem; }
}
