/* ============================================
   CEP CRM — Design System
   ============================================ */

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

:root {
    /* Primary Palette */
    --primary: #4361EE;
    --primary-light: #6C83F6;
    --primary-dark: #3451D1;
    --primary-bg: rgba(67, 97, 238, 0.08);
    --primary-bg-hover: rgba(67, 97, 238, 0.14);

    /* Accent */
    --success: #2DC653;
    --success-light: rgba(45, 198, 83, 0.10);
    --danger: #EF476F;
    --danger-light: rgba(239, 71, 111, 0.10);
    --warning: #FFB703;
    --warning-light: rgba(255, 183, 3, 0.10);
    --info: #4CC9F0;

    /* Neutrals */
    --bg-body: #F0F2F5;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-input: #F5F7FA;
    --border: #E2E6ED;
    --border-light: #EEF0F4;
    --text-primary: #1A1D26;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-white: #FFFFFF;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-card: 0 1px 4px rgba(0,0,0,0.05);

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 0px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   Login Page
   ============================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4361EE 0%, #3A0CA3 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -200px;
    right: -100px;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -150px;
    left: -80px;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
    animation: loginSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes loginSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.35);
}

.login-logo .logo-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.login-logo p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

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

.login-card .form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}

.login-card .form-control {
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 0 16px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
    background: var(--bg-card);
    outline: none;
}

.login-card .form-control::placeholder {
    color: var(--text-muted);
}

.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.30);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.login-error {
    background: var(--danger-light);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
    animation: shakeX 0.4s ease;
}

@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.access-error-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
}

.access-error-card {
    text-align: center;
    padding: 48px;
}

.access-error-card svg {
    width: 64px;
    height: 64px;
    color: var(--danger);
    margin-bottom: 20px;
}

.access-error-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.access-error-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   Layout — Sidebar + Main
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow);
    overflow-y: auto;
}

.sidebar-brand {
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.30);
}

.sidebar-brand .brand-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.sidebar-brand .brand-info h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.sidebar-brand .brand-info span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.sidebar-section {
    padding: 16px 12px 4px;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0 12px;
    margin-bottom: 6px;
}

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

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-bottom: 2px;
    cursor: pointer;
}

.sidebar-nav li a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.sidebar-nav li a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.sidebar-nav li a:hover svg {
    opacity: 1;
    color: var(--primary);
}

.sidebar-nav li a.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-nav li a.active svg {
    opacity: 1;
    color: var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 12px;
    border-top: 1px solid var(--border-light);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
}

.sidebar-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user .user-info p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.sidebar-user .user-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-logout {
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-logout:hover {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 28px 32px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.4px;
}

.page-header h1 small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-toggle svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    backdrop-filter: blur(2px);
}

/* ============================================
   Dashboard Cards
   ============================================ */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition-base);
    animation: fadeInUp 0.5s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card .stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card .stat-icon.blue {
    background: var(--primary-bg);
    color: var(--primary);
}

.stat-card .stat-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.stat-card .stat-icon.orange {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card .stat-body h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.stat-card .stat-body p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2px;
}

/* ============================================
   Content Card (Tables, Forms)
   ============================================ */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
    animation-delay: 0.1s;
}

.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.content-card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.content-card-body {
    padding: 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary-cep {
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary-cep:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.28);
    color: var(--text-white);
    transform: translateY(-1px);
}

.btn-primary-cep:active {
    transform: translateY(0);
}

.btn-secondary-cep {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-secondary-cep:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-icon.edit {
    color: var(--primary);
}

.btn-icon.edit:hover {
    background: var(--primary-bg);
}

.btn-icon.delete {
    color: var(--danger);
}

.btn-icon.delete:hover {
    background: var(--danger-light);
}

/* ============================================
   Table
   ============================================ */
.table-cep {
    width: 100%;
    border-collapse: collapse;
}

.table-cep thead th {
    padding: 12px 24px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

.table-cep tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.table-cep tbody tr:last-child {
    border-bottom: none;
}

.table-cep tbody tr:hover {
    background: var(--bg-input);
}

.table-cep tbody td {
    padding: 14px 24px;
    font-size: 13.5px;
    color: var(--text-primary);
    vertical-align: middle;
}

.table-cep .td-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.table-cep .td-id {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.table-empty {
    text-align: center;
    padding: 48px 24px !important;
    color: var(--text-muted);
}

.table-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.table-empty p {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   Modal
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 24px;
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 16px 24px;
    gap: 8px;
}

.modal .form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.modal .form-control,
.modal .form-select {
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 0 14px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
    background: var(--bg-card);
    outline: none;
}

.modal .form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

/* ============================================
   Toast
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: white;
    box-shadow: var(--shadow-md);
    animation: toastSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 400px;
}

.toast-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-item.success {
    background: var(--success);
}

.toast-item.error {
    background: var(--danger);
}

.toast-item.fadeOut {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastFadeOut {
    to { opacity: 0; transform: translateX(40px); }
}

/* ============================================
   Loading Overlay
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

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

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

/* ============================================
   Confirm Dialog
   ============================================ */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9997;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.confirm-overlay.active {
    display: flex;
}

.confirm-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.25s ease;
}

.confirm-box .confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--danger-light);
    color: var(--danger);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.confirm-box .confirm-icon svg {
    width: 28px;
    height: 28px;
}

.confirm-box h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.confirm-box p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.confirm-box .confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-box .btn-cancel {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.confirm-box .btn-cancel:hover {
    border-color: var(--text-muted);
}

.confirm-box .btn-confirm-del {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--danger);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.confirm-box .btn-confirm-del:hover {
    background: #D63B5C;
}

/* ============================================
   Section Tabs
   ============================================ */
.section-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 0;
    padding: 0 24px;
    background: var(--bg-card);
}

.section-tab {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition-fast);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: 'Poppins', sans-serif;
}

.section-tab:hover {
    color: var(--text-primary);
}

.section-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay.active {
        display: block;
    }
    .mobile-toggle {
        display: flex;
    }
    .main-content {
        margin-left: 0;
        padding: 72px 16px 24px;
    }
}

@media (max-width: 575px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .stat-cards {
        grid-template-columns: 1fr;
    }
    .login-card {
        margin: 16px;
        padding: 32px 24px;
    }
}


