/**
 * QLVT Pro V8 - Standard Component Classes
 * ==========================================
 * Reusable component classes to replace inline styles
 * Gradient buttons, KPI cards, badges, and more
 * 
 * @version 1.1.0
 * @date 2026-02-10
 * @author Phase 1-3 - UI Refactor
 */

/* =============================================================================
   GRADIENT BUTTON VARIANTS
   Replaces: style="background: linear-gradient(...); color: white; ..."
   ============================================================================= */

.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border: none;
    font-weight: var(--font-bold);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
    transition: all var(--transition);
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.4);
    transform: translateY(-1px);
}

.btn-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    font-weight: var(--font-bold);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all var(--transition);
}

.btn-gradient-success:hover {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    font-weight: var(--font-bold);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all var(--transition);
}

.btn-gradient-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.btn-gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    font-weight: var(--font-bold);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all var(--transition);
}

.btn-gradient-purple:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.btn-gradient-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    font-weight: var(--font-bold);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all var(--transition);
}

.btn-gradient-amber:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.btn-gradient-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    font-weight: var(--font-bold);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all var(--transition);
}

.btn-gradient-info:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* --- Gradient button with icon --- */
.btn-gradient-primary,
.btn-gradient-success,
.btn-gradient-danger,
.btn-gradient-purple,
.btn-gradient-amber,
.btn-gradient-info {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* =============================================================================
   KPI CARD VARIANTS
   Replaces: style="background: linear-gradient(...); color: white; padding: 20px; ..."
   ============================================================================= */

/* --- Base KPI Card (if not already defined) --- */
.kpi-card {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

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

.kpi-card-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    opacity: 0.9;
    margin-bottom: var(--space-2);
    letter-spacing: 0.05em;
}

.kpi-card-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
}

/* --- KPI Card Variants --- */

.kpi-card--primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.kpi-card--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.kpi-card--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.kpi-card--purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.kpi-card--amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.kpi-card--orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.kpi-card--info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.kpi-card--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* --- KPI Card Grid Layout --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

/* =============================================================================
   HERO HEADER VARIANTS (Finance, Reports)
   ============================================================================= */

.hero-header {
    background: var(--gradient-success);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-xl);
    color: white;
    box-shadow: var(--shadow-emerald);
    margin-bottom: var(--space-4);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero-header h2,
.hero-header h3 {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    font-family: var(--font-heading);
    color: white;
    position: relative;
}

.hero-header .hero-subtitle {
    margin: var(--space-1) 0 0;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--font-normal);
}

.hero-header--primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary);
}

.hero-header--purple {
    background: var(--gradient-purple);
    box-shadow: var(--shadow-purple);
}

.hero-header--warning {
    background: var(--gradient-warning);
    box-shadow: var(--shadow-warning);
}

.hero-header--danger {
    background: var(--gradient-danger);
    box-shadow: var(--shadow-rose);
}

.hero-header--gradient-multi {
    background: var(--gradient-hero);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* =============================================================================
   VIEW MODE TOGGLE (Tất cả, Nội bộ, Công ty)
   ============================================================================= */

.view-toggle {
    display: inline-flex;
    gap: var(--space-1);
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.view-toggle .btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: none;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: all var(--transition);
    cursor: pointer;
}

.view-toggle .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.view-toggle .btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #059669;
    font-weight: var(--font-semibold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   WIDGET TOGGLE BUTTONS (Dòng tiền, Công nợ, etc.)
   ============================================================================= */

.widget-toggle {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: 1.5px solid;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.widget-toggle.active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.widget-toggle:not(.active) {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
    border-color: rgba(100, 116, 139, 0.25);
}

.widget-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   FILTER BADGE BUTTONS (Hiển thị, Ẩn tất cả, etc.)
   ============================================================================= */

.filter-badge {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: 1.5px solid;
    transition: all var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-badge--hide {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}

.filter-badge--hide:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.filter-badge--show {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
}

.filter-badge--show:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* =============================================================================
   BADGE VARIANTS
   Replaces: style="background: ...; color: white; font-size: 0.65rem; ..."
   ============================================================================= */

/* --- Badge New Variants --- */
.badge-new {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.65rem;
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    margin-left: auto;
}

.badge-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.badge-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.badge-gradient-purple {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* =============================================================================
   PAGE HEADER COMPONENTS
   ============================================================================= */

.page-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.page-title-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.page-title-group h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

.page-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* =============================================================================
   CARD VARIANTS
   ============================================================================= */

/* --- Card with Gradient Header --- */
.card-gradient-header {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-gradient-header-top {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    padding: var(--space-5) var(--space-6);
}

/* --- Card with Border Left --- */
.card-border-left {
    border-left: 4px solid var(--primary);
    padding: var(--space-4);
}

.card-border-left.card-danger {
    border-left-color: var(--danger);
}

.card-border-left.card-success {
    border-left-color: var(--success);
}

.card-border-left.card-warning {
    border-left-color: var(--warning);
}

/* --- Elevated Card --- */
.card-elevated {
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =============================================================================
   MODAL COMPONENTS
   ============================================================================= */

/* --- Modal Overlay --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.hidden {
    display: none;
}

/* --- Modal Container --- */
.modal-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- Modal Header with Gradient --- */
.modal-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-5) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-gradient h2 {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
}

.modal-header-gradient p {
    margin: var(--space-1) 0 0 0;
    opacity: 0.9;
    font-size: var(--text-sm);
}

/* --- Modal Body --- */
.modal-body {
    padding: var(--space-6);
    flex: 1;
    overflow: auto;
}

/* --- Modal Actions --- */
.modal-actions {
    padding: var(--space-4) var(--space-6);
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* --- Modal Close Button --- */
.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    cursor: pointer;
    color: white;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* =============================================================================
   FORM COMPONENTS
   ============================================================================= */

/* --- Form Select with consistent styling --- */
.form-select-styled {
    appearance: none;
    -webkit-appearance: none;
    padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.form-select-styled:hover {
    border-color: var(--primary);
}

.form-select-styled:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* --- Radio Button Group --- */
.radio-group {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.radio-label:hover {
    background: var(--bg-hover);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* =============================================================================
   TABLE COMPONENTS
   ============================================================================= */

/* --- Table Scroll Wrapper (for mobile) --- */
.table-scroll-wrapper {
    overflow-x: auto;
    margin: var(--space-4) 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* =============================================================================
   ALERT/NOTIFICATION COMPONENTS
   ============================================================================= */

/* --- Alert Box --- */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.alert-danger {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.alert-success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.alert-warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.alert-info {
    border-left-color: var(--info);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.alert-icon {
    font-size: var(--text-3xl);
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    margin: 0 0 var(--space-1) 0;
    font-weight: var(--font-semibold);
}

.alert-message {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* =============================================================================
   SPECIAL ANIMATIONS & EFFECTS
   ============================================================================= */

/* --- Stagger Entry Animation (already used in assets.html) --- */
.stagger-entry {
    animation: staggerFadeIn 0.4s ease-out;
    animation-delay: calc(var(--stagger-index, 0) * 0.1s);
    animation-fill-mode: backwards;
}

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

/* --- Fade In Animation --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* =============================================================================
   LAYOUT HELPERS
   ============================================================================= */

/* --- Page Header --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.page-header h2 {
    margin: 0;
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
}

.page-header p {
    margin: var(--space-2) 0 0 0;
    color: var(--text-secondary);
}

/* --- Action Group --- */
.action-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* =============================================================================
   RESPONSIVE HELPERS
   ============================================================================= */

/* --- Hide on Mobile --- */
@media screen and (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =============================================================================
   LIGHT MODE OVERRIDES
   Adjusted shadows, borders, backgrounds for [data-theme="light"]
   ============================================================================= */

/* --- Gradient Buttons — lighter shadows in light mode --- */
[data-theme="light"] .btn-gradient-primary {
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.2);
}
[data-theme="light"] .btn-gradient-primary:hover {
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}
[data-theme="light"] .btn-gradient-success {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
[data-theme="light"] .btn-gradient-success:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
[data-theme="light"] .btn-gradient-danger {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}
[data-theme="light"] .btn-gradient-danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
[data-theme="light"] .btn-gradient-purple {
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}
[data-theme="light"] .btn-gradient-purple:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
[data-theme="light"] .btn-gradient-amber {
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}
[data-theme="light"] .btn-gradient-amber:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
[data-theme="light"] .btn-gradient-info {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
[data-theme="light"] .btn-gradient-info:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* --- KPI Cards — softer shadows, no change to gradients (white text on gradient is fine) --- */
[data-theme="light"] .kpi-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .kpi-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* --- Hero Headers — softer shadows in light mode --- */
[data-theme="light"] .hero-header {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}
[data-theme="light"] .hero-header--primary {
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.15);
}
[data-theme="light"] .hero-header--purple {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}
[data-theme="light"] .hero-header--warning {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}
[data-theme="light"] .hero-header--danger {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}
[data-theme="light"] .hero-header--gradient-multi {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

/* --- Widget Toggle — better contrast in light mode --- */
[data-theme="light"] .widget-toggle.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.35);
}
[data-theme="light"] .widget-toggle:not(.active) {
    background: rgba(100, 116, 139, 0.06);
    color: #475569;
    border-color: rgba(100, 116, 139, 0.2);
}
[data-theme="light"] .widget-toggle:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- Filter Badges — darker text for light background contrast --- */
[data-theme="light"] .filter-badge--hide {
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}
[data-theme="light"] .filter-badge--hide:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}
[data-theme="light"] .filter-badge--show {
    background: rgba(16, 185, 129, 0.06);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}
[data-theme="light"] .filter-badge--show:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

/* --- Card Variants — light-mode appropriate --- */
[data-theme="light"] .card-elevated {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}
[data-theme="light"] .card-gradient-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- Modal — lighter overlay, white background --- */
[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .modal-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .modal-actions {
    background: #f8fafc;
    border-top-color: #e2e8f0;
}

/* --- Alerts — slightly higher opacity backgrounds in light mode --- */
[data-theme="light"] .alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.03) 100%);
}
[data-theme="light"] .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%);
}
[data-theme="light"] .alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%);
}
[data-theme="light"] .alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
}
[data-theme="light"] .alert-title {
    color: #1e293b;
}
[data-theme="light"] .alert-message {
    color: #475569;
}

/* --- Form — light mode adjustments --- */
[data-theme="light"] .form-select-styled {
    background-color: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}
[data-theme="light"] .form-select-styled:hover {
    border-color: #0891b2;
}
[data-theme="light"] .form-select-styled:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08);
}
[data-theme="light"] .radio-group {
    background: #f1f5f9;
}
[data-theme="light"] .radio-label:hover {
    background: #e2e8f0;
}

/* --- Table Scroll Wrapper --- */
[data-theme="light"] .table-scroll-wrapper {
    border-color: #e2e8f0;
}

/* --- Page Headers — dark text in light mode --- */
[data-theme="light"] .page-header h2,
[data-theme="light"] .page-title-group h2 {
    color: #1e293b;
}
[data-theme="light"] .page-header p {
    color: #64748b;
}

/* =============================================================================
   END OF COMPONENT STANDARDS
   ============================================================================= */
