/* ============================================
   APOTEK POS — NTB Dev Design System
   Mobile-first, biru navy + aksen kuning
   ============================================ */

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

:root {
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --danger: #ef4444;
    --info: #06b6d4;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.1);
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0f172a 100%);
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --touch-min: 44px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.has-mobile-nav {
    overflow-x: hidden;
}

/* ============================================
   SIDEBAR (desktop)
   ============================================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--gradient-primary);
    color: #fff;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 2px 0 16px rgba(15, 23, 42, 0.12);
    display: none;
}

@media (min-width: 992px) {
    .sidebar {
        display: block;
    }
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-header h3 {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-header h3 i {
    color: var(--accent-light);
}

.brand-logo-sidebar {
    max-height: 32px;
    max-width: 120px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.35rem;
}

.brand-logo-mobile {
    max-height: 28px;
    max-width: 100px;
    object-fit: contain;
}

.brand-logo-login {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}

.brand-logo-preview {
    max-height: 120px;
    object-fit: contain;
}

.sidebar.collapsed .sidebar-header h3 span {
    display: none;
}

.sidebar-menu {
    padding: 0.75rem 0;
    overflow-y: auto;
    height: calc(100vh - 72px);
    -webkit-overflow-scrolling: touch;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu > ul > li {
    margin: 2px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 0.875rem;
    min-height: var(--touch-min);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: var(--accent-light);
}

.sidebar-menu a i {
    width: 22px;
    margin-right: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar.collapsed .sidebar-menu a span {
    display: none;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 0.7rem;
}

.sidebar-menu .submenu {
    display: none;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.25rem 0;
}

.sidebar-menu li.active > .submenu {
    display: block;
}

.sidebar-menu .submenu a {
    padding-left: 3rem;
    font-size: 0.8125rem;
    border-left: none;
}

.sidebar-menu .submenu a:hover {
    border-left: none;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-left: 0;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .main-content {
        margin-left: var(--sidebar-width);
    }

    .sidebar.collapsed + .main-content {
        margin-left: var(--sidebar-collapsed);
    }
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */

.navbar {
    background: var(--bg-white);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 56px;
}

@media (min-width: 992px) {
    .navbar {
        padding: 0.875rem 1.5rem;
    }
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.navbar-brand-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    text-decoration: none;
}

.navbar-brand-mobile i {
    font-size: 1.25rem;
    color: var(--primary);
}

.navbar-brand-mobile span {
    color: var(--primary);
}

.navbar-desktop-breadcrumb {
    display: none;
}

@media (min-width: 992px) {
    .navbar-brand-mobile {
        display: none;
    }

    .navbar-desktop-breadcrumb {
        display: block;
    }
}

.navbar-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

@media (min-width: 992px) {
    .navbar-toggle {
        display: flex;
    }
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    transition: var(--transition);
}

.user-menu:hover {
    background: var(--bg);
}

.user-menu-info {
    display: none;
}

@media (min-width: 768px) {
    .user-menu-info {
        display: block;
    }
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

#userDropdown {
    display: none;
    position: fixed;
    right: 1rem;
    top: 60px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
    z-index: 1100;
    border: 1px solid var(--border);
}

#userDropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    min-height: var(--touch-min);
}

#userDropdown .dropdown-item:hover {
    background: var(--bg);
    color: var(--primary);
}

#userDropdown .dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0;
}

/* ============================================
   CONTENT AREA
   ============================================ */

.content-wrapper {
    padding: 1rem;
    flex: 1;
}

@media (min-width: 768px) {
    .content-wrapper {
        padding: 1.5rem;
    }
}

@media (min-width: 992px) {
    .content-wrapper {
        padding: 1.75rem 2rem;
    }
}

.page-header {
    margin-bottom: 1.25rem;
}

.page-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
}

/* Dashboard hero mini */
.dashboard-hero {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.dashboard-hero-content {
    position: relative;
    z-index: 1;
}

.dashboard-hero h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.dashboard-hero .tagline {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.dashboard-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin: 0;
}

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

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: #f8fafc;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--border);
}

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

.btn {
    border-radius: var(--radius);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.875rem;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-cta,
.btn-warning {
    background: var(--gradient-accent);
    border: none;
    color: #fff;
}

.btn-cta:hover,
.btn-warning:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #059669;
    color: #fff;
}

.btn-info {
    background: var(--info);
    border-color: var(--info);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

/* ============================================
   STATS / GRADIENT CARDS
   ============================================ */

.stats-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stats-card.primary { border-left-color: var(--primary); }
.stats-card.success { border-left-color: var(--success); }
.stats-card.info { border-left-color: var(--info); }
.stats-card.warning { border-left-color: var(--accent); }

.stats-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0;
}

.stats-card-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
    border: none;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border: none;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
    border: none;
}

.bg-gradient-warning {
    background: var(--gradient-accent) !important;
    border: none;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    border: none;
}

/* Dashboard stat grid mobile */
.dashboard-stats .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 768px) {
    .dashboard-stats .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.dashboard-stats .card {
    margin-bottom: 0.75rem;
}

.dashboard-stats .card-body h2 {
    font-size: 1.25rem;
    font-weight: 800;
}

.dashboard-stats .card-body h5 {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.dashboard-charts .col-md-6 {
    margin-bottom: 1rem;
}

/* ============================================
   TABLES
   ============================================ */

.table {
    background: var(--bg-white);
    font-size: 0.875rem;
}

.table thead {
    background: #f8fafc;
}

.table thead th {
    border-bottom: 2px solid var(--border);
    padding: 0.875rem 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: #f8fafc;
}

.table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-color: var(--border);
}

/* Kolom aksi tabel & DataTable: selalu 1 baris di semua view (termasuk PC desktop) */
.dataTables_wrapper table.dataTable th:last-child,
.dataTables_wrapper table.dataTable td:last-child,
.dataTables_wrapper table.dataTable td.dataTables_action,
.table .table-actions,
.table .action-buttons,
.table-actions,
.action-buttons {
    white-space: nowrap !important;
}

/* Tombol aksi: inline horizontal, tidak wrap, tanpa float */
.dataTables_wrapper table.dataTable td:last-child .btn,
.dataTables_wrapper table.dataTable td.dataTables_action .btn,
.table-actions .btn,
.action-buttons .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap !important;
    float: none !important;
    margin-right: 0.25rem;
    margin-bottom: 0 !important;
    vertical-align: middle;
}

.dataTables_wrapper table.dataTable td:last-child .btn:last-child,
.dataTables_wrapper table.dataTable td.dataTables_action .btn:last-child,
.table-actions .btn:last-child,
.action-buttons .btn:last-child {
    margin-right: 0;
}

.dataTables_wrapper table.dataTable td:last-child .btn-group,
.dataTables_wrapper table.dataTable td.dataTables_action .btn-group,
.table-actions .btn-group,
.action-buttons .btn-group {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.dataTables_wrapper table.dataTable td:last-child .dropdown,
.dataTables_wrapper table.dataTable td.dataTables_action .dropdown,
.table-actions .dropdown,
.action-buttons .dropdown {
    display: inline-flex !important;
    vertical-align: middle;
}

.dataTables_wrapper table.dataTable td:last-child a,
.dataTables_wrapper table.dataTable td:last-child button,
.dataTables_wrapper table.dataTable td:last-child .badge,
.dataTables_wrapper table.dataTable td.dataTables_action a,
.dataTables_wrapper table.dataTable td.dataTables_action button,
.table-actions a,
.table-actions button,
.action-buttons a,
.action-buttons button {
    white-space: nowrap !important;
}

/* Container aksi eksplisit: flex 1 baris */
.table-actions,
.action-buttons,
.table-action-container {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap !important;
}

/* Kolom aksi: lebar minimum, jangan jadi penyebab scroll horizontal */
.dataTables_wrapper table.dataTable td:last-child {
    width: 1%;
    white-space: nowrap !important;
}

.table-responsive {
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
}

/* DataTables */
.dataTables_wrapper {
    width: 100%;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0.4rem 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
}

/* DataTables — mobile: scroll horizontal agar semua kolom terlihat */
.dt-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .card.card-has-datatable {
        overflow: visible;
    }

    .dataTables_wrapper .dataTables_scroll,
    .dataTables_wrapper .dataTables_scrollBody {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_wrapper table.dataTable {
        width: max-content !important;
        min-width: 100%;
    }

    .dataTables_wrapper table.dataTable thead th,
    .dataTables_wrapper table.dataTable tbody td {
        white-space: nowrap;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        width: 100%;
        text-align: left;
        margin-bottom: 0.75rem;
    }

    .dataTables_wrapper .dataTables_filter {
        margin-top: 0;
    }

    .dataTables_wrapper .dataTables_filter label {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        width: 100%;
        text-align: center;
        margin-top: 0.75rem;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.35rem 0.65rem;
        min-height: var(--touch-min);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   FORMS
   ============================================ */

.form-control,
.form-select {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0.625rem 0.875rem;
    transition: var(--transition);
    font-size: 0.875rem;
    color: var(--text-primary);
}

@media (max-width: 991.98px) {
    .form-control,
    .form-select {
        min-height: var(--touch-min);
        font-size: 1rem;
    }
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
}

.input-group-text {
    border-color: var(--border);
    background: #f8fafc;
    color: var(--text-secondary);
}

/* ============================================
   MODALS
   ============================================ */

.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
}

.modal-title {
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

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

.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 1rem;
    margin-top: auto;
}

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

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(248, 250, 252, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
}

.login-hero {
    background: var(--gradient-hero);
    padding: 2.5rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.login-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.login-brand i {
    font-size: 1.5rem;
}

.login-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.login-hero .tagline {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.login-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    max-width: 320px;
    margin: 0 auto;
}

.login-form-section {
    flex: 1;
    padding: 1.5rem;
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
}

.login-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem;
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.login-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    text-align: center;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.btn-login {
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.875rem;
    font-weight: 700;
    width: 100%;
    color: #fff;
    font-size: 1rem;
    min-height: 52px;
}

.btn-login:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

@media (min-width: 768px) {
    .login-page {
        flex-direction: row;
    }

    .login-hero {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem;
        min-height: 100vh;
    }

    .login-hero h1 { font-size: 2rem; }
    .login-hero .tagline { font-size: 2.75rem; }

    .login-form-section {
        flex: 0 0 420px;
        display: flex;
        align-items: center;
        margin-top: 0;
        padding: 2rem;
        background: var(--bg);
    }

    .login-card {
        box-shadow: var(--shadow-md);
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-primary-brand {
    color: var(--primary) !important;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* SweetAlert above bottom nav */
@media (max-width: 991.98px) {
    .swal2-container {
        padding-bottom: 80px;
    }
}

/* Alert */
.alert {
    border-radius: var(--radius);
    border: none;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
}

.alert-success {
    background: #ecfdf5;
    color: #059669;
}
