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

:root {
    --bg-dark: #111521;
    --bg-sidebar-active: #333427;
    --primary-yellow: #F9E814;
    --primary-yellow-hover: #E6D50B;
    --accent-blue: #1D70D0;
    --accent-blue-light: #EBF3FC;
    --text-main: #111521;
    --text-secondary: #5A6072;
    --text-muted: #8E95A5;
    --border-color: #E2E5EC;
    --input-border: #6B7280;
    --surface-white: #FFFFFF;
    --surface-card: #F8F9FA;
    --surface-table-head: #F2F3F5;
    --danger-red: #EB5757;
    --success-green: #27AE60;
    --sidebar-width: 255px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(17, 21, 33, 0.05);
    --shadow-modal: 0 16px 48px rgba(17, 21, 33, 0.16);
}

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

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--surface-white);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BRAND LOGO ("Approbado")
   ========================================================================== */
.brand-logo {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    line-height: 1;
    z-index: 1;
    user-select: none;
    cursor: pointer;
    text-decoration: none;
}

.brand-logo--light {
    color: #111521;
}

.brand-logo--light::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 2px;
    height: 7px;
    background-color: var(--primary-yellow);
    z-index: -1;
    border-radius: 2px;
}

.brand-logo--dark {
    color: #FFFFFF;
}

/* ==========================================================================
   AUTH VIEWS (Login / Recuperar / Nueva Contraseña)
   ========================================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-white);
}

.auth-topbar {
    height: 76px;
    display: flex;
    align-items: center;
    padding: 0 8%;
    border-bottom: 1px solid #F0F1F5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.auth-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    background: #FAFAFA;
    width: 100%;
    max-width: 440px;
    padding: 52px 44px;
    border-radius: 8px;
}

.auth-logo-block {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo-block .brand-logo {
    font-size: 40px;
}

.auth-logo-block .brand-logo--light::after {
    height: 10px;
    bottom: 4px;
}

.auth-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    margin-top: 6px;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-main);
}

.auth-forgot-link {
    display: block;
    text-align: center;
    margin: 20px 0 24px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
}

.auth-forgot-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* ==========================================================================
   APP SHELL LAYOUT (Sidebar + Main Area)
   ========================================================================== */
.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--surface-white);
}

/* Sidebar (Desktop fixed, Mobile off-canvas drawer) */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-dark);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 32px 0;
    transition: transform 0.25s ease, width 0.25s ease;
    z-index: 100;
}

.sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
}

.sidebar-brand {
    padding: 0 32px 40px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 18px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 6px;
    color: #C4C8D4;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
}

.nav-item:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background-color: var(--bg-sidebar-active);
    color: var(--primary-yellow);
    font-weight: 500;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: var(--primary-yellow);
    border-radius: 6px 0 0 6px;
}

.nav-item--logout {
    color: var(--danger-red);
    margin-top: 12px;
}

.nav-item--logout:hover {
    color: #FF7676;
    background: rgba(235, 87, 87, 0.1);
}

/* Main Content Wrapper */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface-white);
}

/* Desktop Header */
.topbar-desktop {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: var(--surface-white);
}

.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s;
}

.user-profile-trigger:hover {
    background: var(--surface-card);
}

.user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.user-name-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    min-width: 190px;
    z-index: 60;
    overflow: hidden;
    display: none;
}

.profile-dropdown.open {
    display: block;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
}

.profile-dropdown-item:hover {
    background: var(--surface-card);
}

.profile-dropdown-item.danger {
    color: var(--danger-red);
}

/* Mobile Header (matches Figma mobile screens 104:2, 44:0, etc.) */
.topbar-mobile {
    display: none;
    height: 60px;
    background: var(--bg-dark);
    color: #FFFFFF;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.mobile-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-hamburger span {
    display: block;
    width: 28px;
    height: 3.5px;
    background: var(--primary-yellow);
    border-radius: 3px;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 21, 33, 0.55);
    z-index: 95;
}

/* Page Content Container */
.page-container {
    padding: 16px 48px 56px;
    max-width: 1180px;
    width: 100%;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 22px;
}

.page-title-lg {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 24px;
}

/* ==========================================================================
   BUTTONS & INPUTS
   ========================================================================== */
.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--text-main);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.15s, transform 0.1s;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--primary-yellow-hover);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-outline {
    background-color: var(--surface-white);
    color: var(--text-main);
    border: 1px solid #C4C8D4;
    border-radius: var(--radius-sm);
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.15s, background-color 0.15s;
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--surface-card);
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 7px;
}

.form-section-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 22px 0 14px;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-main);
    background: var(--surface-white);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(29, 112, 208, 0.12);
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-main);
    pointer-events: none;
}

.input-icon-wrap .form-control {
    padding-left: 42px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 820px;
}

/* Custom Checkbox & Switch */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 20px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #374151;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #111521;
    cursor: pointer;
}

.switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #9CA3AF;
    transition: .2s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-blue);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

/* ==========================================================================
   TABS (Underline Blue Style from Figma)
   ========================================================================== */
.tabs-bar {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #C4C8D4;
    margin-bottom: 24px;
    gap: 8px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    font-weight: 600;
}

/* ==========================================================================
   DASHBOARD (Inicio: 3 Yellow KPI Cards + Featured Users Grid)
   ========================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.kpi-card {
    background-color: var(--primary-yellow);
    border-radius: var(--radius-sm);
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 156px;
}

.kpi-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 14px;
}

.kpi-link {
    font-size: 13px;
    color: #374151;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.featured-card {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.15s, box-shadow 0.15s;
}

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

.featured-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.featured-info {
    min-width: 0;
}

.featured-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-rank {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   TOOLBARS, TABLES & PAGINATION
   ========================================================================== */
.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    flex-wrap: wrap;
}

.toolbar-filters .input-icon-wrap {
    width: 280px;
    max-width: 100%;
}

.data-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    background-color: var(--surface-table-head);
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #D1D5DB;
}

.data-table tbody td {
    padding: 16px;
    color: #374151;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #FAFAFB;
}

.table-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
}

.table-link:hover {
    text-decoration: underline;
}

.action-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.icon-btn.danger:hover {
    color: var(--danger-red);
    background: rgba(235, 87, 87, 0.1);
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-num-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    background: var(--surface-white);
    color: var(--text-main);
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-num-btn.active {
    background: #F3F4F6;
    font-weight: 600;
    border-color: #D1D5DB;
}

/* ==========================================================================
   CARDS (Trivias, Preguntas, Archivos PDF, Membresías, Foro)
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.item-card {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.item-card:hover {
    border-color: #E2E5EC;
    box-shadow: var(--shadow-sm);
}

.item-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.item-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    cursor: pointer;
}

.item-card-title:hover {
    color: var(--accent-blue);
}

.item-card-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--accent-blue);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
}

.card-menu-wrap {
    position: relative;
}

.dots-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    color: var(--text-main);
    font-size: 18px;
    line-height: 1;
    border-radius: 4px;
}

.dots-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.card-dropdown {
    position: absolute;
    right: 0;
    top: 26px;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 150px;
    z-index: 40;
    overflow: hidden;
    display: none;
}

.card-dropdown.open {
    display: block;
}

.card-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
}

.card-dropdown button:hover {
    background: var(--surface-card);
}

.card-dropdown button.danger {
    color: var(--danger-red);
}

/* Detail Header Banner (Derecho constitucional / Reporte #000001) */
.detail-banner {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.detail-banner-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.detail-banner-sub {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* File PDF Card */
.pdf-card {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdf-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.pdf-icon {
    width: 34px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.pdf-icon::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 10px 10px 0;
    border-style: solid;
    border-color: var(--surface-card) var(--surface-card) #63A4FF #63A4FF;
}

/* Profile Edit Layout */
.profile-edit-layout {
    display: flex;
    align-items: flex-start;
    gap: 44px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.profile-photo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-avatar-lg-wrap {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.profile-avatar-lg-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 21, 33, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-overlay span {
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(0,0,0,0.25);
}

/* ==========================================================================
   MODALS (Success Confirmation & Action Dialogs)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 21, 33, 0.45);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    background: var(--surface-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-modal);
    width: 100%;
    max-width: 520px;
    padding: 40px 36px;
    position: relative;
    text-align: center;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-main);
    padding: 4px;
}

.modal-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.success-check-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1.8px solid var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px auto 32px;
}

.success-check-circle svg {
    width: 38px;
    height: 38px;
    stroke: var(--text-main);
}

/* Color Picker Box (Niveles) */
.color-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.color-input-wrap input[type="color"] {
    position: absolute;
    right: 10px;
    width: 72px;
    height: 28px;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

/* File Upload Box (Certificado / Masivo) */
.upload-dropzone {
    border: 1px solid #C4C8D4;
    border-radius: var(--radius-sm);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    background: #FAFAFB;
    transition: border-color 0.15s;
}

.upload-dropzone:hover {
    border-color: var(--accent-blue);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile-First PWA <= 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .topbar-desktop {
        display: none;
    }

    .topbar-mobile {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
    }

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

    .sidebar-backdrop.open {
        display: block;
    }

    .page-container {
        padding: 20px 18px 48px;
    }

    .kpi-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        overflow-x: auto;
        padding-bottom: 6px;
        gap: 14px;
    }

    .featured-grid,
    .cards-grid,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-filters .input-icon-wrap {
        width: 100%;
    }

    .toolbar-row .btn-primary {
        width: 100%;
    }

    .auth-card {
        padding: 36px 22px;
    }
}
