/* ===========================================
 * JarganWeb Design System
 * Modern glass morphism aesthetic
 * Sharp black & white with strategic color pops
 * No emojis - purely typographic
 * =========================================== */

/* ═══════════════════════════════════════════
   LAYOUT COMPONENTS
   ═══════════════════════════════════════════ */

/* Glass morphism panels - primary container */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-6, 24px);
    box-shadow: 0 8px 64px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.glass-panel-lg {
    padding: var(--space-8, 32px);
    border-radius: var(--radius-xl, 16px);
}

.glass-panel-sm {
    padding: var(--space-4, 16px);
    border-radius: var(--radius-md, 8px);
}

/* Glass cards - lighter, more subtle */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md, 8px);
    padding: var(--space-4, 16px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-fast, 0.15s);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Compact card for lists and grids */
.compact-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md, 8px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    transition: all var(--transition-fast, 0.15s);
}

.compact-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Login/auth panel style */
.auth-panel {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 24px;
    padding: 2rem 2.25rem 2.25rem;
    box-shadow: 0 8px 64px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */

.title-xl {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

.title-lg {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #000;
    margin: 0;
    line-height: 1.25;
}

.title-md {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.title-sm {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

.subtitle {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.5;
    margin: 0;
}

.subtitle-sm {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.label-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.6);
}

.label-text-sm {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

/* Modern primary button - pure black */
.btn-modern {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: var(--radius-md, 8px);
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s);
    letter-spacing: 0.02em;
    text-decoration: none;
    display: inline-block;
}

.btn-modern:hover {
    background: #222;
    border-color: #222;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

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

.btn-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Modern button sizes */
.btn-modern-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-modern-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* Success button - green pop */
.btn-modern-success {
    background: var(--color-status-success, #198754);
    border-color: var(--color-status-success, #198754);
    color: #fff;
}

.btn-modern-success:hover {
    background: #146c43;
    border-color: #146c43;
    color: #fff;
}

/* Danger button - red pop */
.btn-modern-danger {
    background: var(--color-status-error, #dc2626);
    border-color: var(--color-status-error, #dc2626);
    color: #fff;
}

.btn-modern-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

/* Outline button - ghost style */
.btn-modern-outline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.75);
}

.btn-modern-outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.35);
    color: #000;
}

/* Subtle button - minimal */
.btn-subtle {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s);
}

.btn-subtle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.25);
    color: #000;
}

.btn-subtle.active {
    background: #000;
    border-color: #000;
    color: #fff;
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   FORM CONTROLS
   ═══════════════════════════════════════════ */

.input-modern {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md, 8px);
    padding: 0.7rem 1rem;
    color: #1a1a1a;
    font-size: 0.95rem;
    transition: all var(--transition-fast, 0.15s);
}

.input-modern:focus {
    outline: none;
    background: #fff;
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.input-modern::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.input-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.03);
}

/* Select dropdown */
.select-modern {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md, 8px);
    padding: 0.7rem 1rem;
    color: #1a1a1a;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s);
}

.select-modern:focus {
    outline: none;
    background: #fff;
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Form group */
.form-group-modern {
    margin-bottom: 1.25rem;
}

.form-group-modern label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0.4rem;
}

/* ═══════════════════════════════════════════
   BADGES & LABELS
   ═══════════════════════════════════════════ */

/* Success badge - green pop */
.badge-success {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(25, 135, 84, 0.12);
    border: 1px solid rgba(25, 135, 84, 0.3);
    border-radius: 6px;
    color: #0d5c1f;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Warning badge - yellow/orange pop */
.badge-warning {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 6px;
    color: #856404;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Error badge - red pop */
.badge-error {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 6px;
    color: #991b1b;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Purple badge - accent pop */
.badge-purple {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(111, 66, 193, 0.1);
    border: 1px solid rgba(111, 66, 193, 0.3);
    border-radius: 6px;
    color: #4c1d95;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Neutral badge - subtle gray */
.badge-neutral {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Small badge variant */
.badge-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════
   STATS & METRICS
   ═══════════════════════════════════════════ */

.stat-row {
    display: flex;
    justify-content: space-around;
    gap: var(--space-4, 16px);
    margin-bottom: var(--space-4, 16px);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
}

.stat-value-lg {
    font-size: 2.25rem;
    font-weight: 800;
}

.stat-value-sm {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.45);
    margin-top: 0.25rem;
}

/* Compact stat for smaller spaces */
.stat-compact {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-compact .stat-value {
    font-size: 1.25rem;
}

.stat-compact .stat-label {
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════ */

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.6);
    text-align: left;
}

.table-modern tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
}

.table-modern tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

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

/* Compact table variant */
.table-modern-compact thead th {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
}

.table-modern-compact tbody td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════
   NAVIGATION & TABS
   ═══════════════════════════════════════════ */

.tab-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-5, 20px);
}

.tab-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast, 0.15s);
    text-decoration: none;
}

.tab-item:hover {
    color: #000;
    text-decoration: none;
}

.tab-item.active {
    color: #000;
    font-weight: 600;
    border-bottom-color: #000;
}

/* ═══════════════════════════════════════════
   ALERTS & MESSAGES
   ═══════════════════════════════════════════ */

.alert-modern {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md, 8px);
    margin-bottom: var(--space-4, 16px);
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.3);
    color: #0d5c1f;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #856404;
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #991b1b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

/* ═══════════════════════════════════════════
   GRID LAYOUTS
   ═══════════════════════════════════════════ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4, 16px);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4, 16px);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4, 16px);
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-2, 8px);
}

/* Responsive grids */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */

/* Spacing utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1, 4px) !important; }
.mt-2 { margin-top: var(--space-2, 8px) !important; }
.mt-3 { margin-top: var(--space-3, 12px) !important; }
.mt-4 { margin-top: var(--space-4, 16px) !important; }
.mt-5 { margin-top: var(--space-5, 20px) !important; }
.mt-6 { margin-top: var(--space-6, 24px) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1, 4px) !important; }
.mb-2 { margin-bottom: var(--space-2, 8px) !important; }
.mb-3 { margin-bottom: var(--space-3, 12px) !important; }
.mb-4 { margin-bottom: var(--space-4, 16px) !important; }
.mb-5 { margin-bottom: var(--space-5, 20px) !important; }
.mb-6 { margin-bottom: var(--space-6, 24px) !important; }

/* Text utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.text-black { color: #000 !important; }
.text-white { color: #fff !important; }
.text-muted { color: rgba(0, 0, 0, 0.55) !important; }
.text-subtle { color: rgba(0, 0, 0, 0.4) !important; }

.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }

/* Display utilities */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-2 { gap: var(--space-2, 8px) !important; }
.gap-3 { gap: var(--space-3, 12px) !important; }
.gap-4 { gap: var(--space-4, 16px) !important; }

/* Interaction utilities */
.pointer { cursor: pointer !important; }
.no-select {
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

/* ═══════════════════════════════════════════
   RESPONSIVE UTILITIES
   ═══════════════════════════════════════════ */

/* Hide on mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════
   OVERRIDES FOR BOOTSTRAP COMPATIBILITY
   ═══════════════════════════════════════════ */

/* Make Bootstrap buttons work with modern styles */
.btn.btn-modern {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
}

/* Make Bootstrap form controls work with modern styles */
.form-control.input-modern {
    height: auto;
}

.form-select.select-modern {
    background-position: right 0.75rem center;
}

/* ═══════════════════════════════════════════
   MODERN NAVBAR
   Glass morphism navigation with grouped dropdowns
   ═══════════════════════════════════════════ */

.jargan-nav {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    height: 52px;
    background: var(--navbar-bg, #212529);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1000;
}

.jargan-nav-brand {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--navbar-brand, #fff) !important;
    text-decoration: none !important;
    margin-right: 1.75rem;
    flex-shrink: 0;
}

.jargan-nav-items {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
}

.jargan-nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    color: var(--navbar-text, rgba(255, 255, 255, 0.8)) !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: none;
    line-height: 1;
}

.jargan-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    text-decoration: none !important;
}

.jargan-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.jargan-nav-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Nav Dropdown */
.jargan-nav-dropdown {
    position: relative;
}

.jargan-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 210px;
    padding: 0.4rem;
    background: var(--navbar-bg, #212529);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.15s ease;
    z-index: 1001;
}

.jargan-nav-dropdown:hover .jargan-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jargan-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    color: var(--navbar-text, rgba(255, 255, 255, 0.8)) !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    border-radius: 6px;
    transition: all 0.12s ease;
}

.jargan-nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.jargan-nav-dropdown-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.65;
}

.jargan-nav-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.3rem 0.5rem;
}

.jargan-nav-right {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}

.icon-chevron {
    width: 12px !important;
    height: 12px !important;
    opacity: 0.5;
    margin-left: -2px;
    transition: transform 0.15s ease;
}

.jargan-nav-dropdown:hover .icon-chevron {
    transform: rotate(180deg);
}

/* Logout button in nav */
.jargan-nav-link.nav-logout {
    opacity: 0.75;
}
.jargan-nav-link.nav-logout:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   FILTER BAR
   Pill/chip filter controls
   ═══════════════════════════════════════════ */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.search-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    flex: 1;
    max-width: 280px;
    transition: all 0.15s ease;
}

.search-pill:focus-within {
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.search-pill input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.83rem;
    width: 100%;
    color: inherit;
}

.search-pill input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.search-pill svg {
    width: 15px;
    height: 15px;
    opacity: 0.35;
    flex-shrink: 0;
}

.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    opacity: 0.35;
    flex-shrink: 0;
}
.search-clear:hover {
    opacity: 0.7;
}
.search-clear svg {
    width: 14px;
    height: 14px;
}

.filter-pill {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.18);
}

.filter-pill:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

select.filter-pill {
    padding-right: 1.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 14px;
}

.filter-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
    color: rgba(0, 0, 0, 0.4);
}
.filter-reset:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.7);
}
.filter-reset svg {
    width: 14px;
    height: 14px;
}

/* ═══════════════════════════════════════════
   MODERN PAGER
   Compact Previous/Next pinned to bottom
   ═══════════════════════════════════════════ */

.pager-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 0.75rem;
}

.pager-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transition: all 0.15s ease;
}

.pager-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    color: #000;
}

.pager-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pager-btn svg {
    width: 14px;
    height: 14px;
}

.pager-info {
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   TABLE ACTION ICONS
   Inline icon buttons for view/edit/delete
   ═══════════════════════════════════════════ */

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    transition: all 0.12s ease;
    text-decoration: none !important;
    color: rgba(0, 0, 0, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.action-icon:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.8);
}

.action-icon svg {
    width: 16px;
    height: 16px;
}

.action-icon.action-view { color: var(--color-brand-secondary, #3b82f6); }
.action-icon.action-view:hover { background: rgba(59, 130, 246, 0.08); color: #2563eb; }

.action-icon.action-edit { color: #f59e0b; }
.action-icon.action-edit:hover { background: rgba(245, 158, 11, 0.08); color: #d97706; }

.action-icon.action-delete { color: #ef4444; }
.action-icon.action-delete:hover { background: rgba(239, 68, 68, 0.08); color: #dc2626; }

/* ═══════════════════════════════════════════
   LIST PAGE HEADER
   Title + action button alignment
   ═══════════════════════════════════════════ */

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.list-header .title-lg {
    margin: 0;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-add svg {
    width: 16px;
    height: 16px;
}

/* ===== Form Container (UI Audit Fix) ===== */
.form-container {
    max-width: 720px;
}

.form-container .form-group {
    margin-bottom: 1rem;
}

.form-container label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.form-container .required-note {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #6b7280);
    margin-bottom: 1rem;
}

.form-container .text-danger {
    font-weight: bold;
}

/* ===== Action Bar (UI Audit Fix) ===== */
.action-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--color-border, #d1d5db);
    color: var(--color-text-secondary, #6b7280);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-md, 6px);
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-cancel:hover {
    background: var(--color-bg-subtle, #f3f4f6);
    color: var(--color-text-primary, #374151);
    text-decoration: none;
}

/* ===== Detail View Actions (UI Audit Fix) ===== */
.detail-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* ===== Empty State (UI Audit Fix) ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-secondary, #6b7280);
}

.empty-state h3 {
    color: var(--color-text-primary, #374151);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Pager Enhancement (UI Audit Fix) ===== */
.pager-modern .pager-count {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #6b7280);
    margin-left: 1rem;
}
