/* 
 * Koperasi Premium Theme - Extremely Modern, Dark/Light Mode 
 * Built on Bootstrap 5.3+ native custom properties.
 */

:root {
    /* Base Font: Plus Jakarta Sans (Premium, Geometric, Clean) */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* VIBRANT & PREMIUM COLORS */
    --bs-primary: #3b82f6; /* Modern crisp blue */
    --bs-primary-rgb: 59, 130, 246;
    --bs-secondary: #64748b;
    --bs-success: #10b981; 
    --bs-info: #0ea5e9;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;

    /* Theme Lighting structure (Light Mode Default) */
    --app-bg: #f8fafc;        /* Very soft airy gray */
    --app-surface: #ffffff;   /* Pure white cards */
    --app-surface-alt: #f1f5f9; /* Soft secondary background */
    --app-border: rgba(226, 232, 240, 0.8);
    --app-text-main: #0f172a; /* Deep elegant slate */
    --app-text-muted: #64748b;
    
    /* Sleek Elevated Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.01);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.08);

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* ================= DARK MODE VARIABLES ================= */
[data-bs-theme="dark"] {
    /* Bootstrap overrides for dark */
    --bs-body-bg: #0b1120;
    --bs-body-color: #f8fafc;
    --bs-light: #1e293b;
    --bs-dark: #f8fafc;
    
    /* Custom app colors mapping for Dark */
    --app-bg: #0b1120;        /* Deep rich night sky */
    --app-surface: #1e293b;   /* Elevated slate for cards */
    --app-surface-alt: #0f172a;
    --app-border: rgba(255,255,255,0.05);
    --app-text-main: #f8fafc;
    --app-text-muted: #94a3b8;

    /* Shadows become softer in dark mode */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.5);
}

/* Base Configuration */
html {
    font-size: 14px; /* Smaller, neater crisp base size */
}

body {
    background-color: var(--app-bg) !important;
    font-family: var(--font-main);
    color: var(--app-text-main) !important;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography Overhaul - Beautiful, geometric hierarchy */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--app-text-main);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.h1, h1 { font-size: 2.5rem; letter-spacing: -0.04em; }
.h2, h2 { font-size: 1.75rem; }
.h3, h3 { font-size: 1.5rem; }
.h4, h4 { font-size: 1.25rem; font-weight: 600; }
.h5, h5 { font-size: 1.05rem; font-weight: 600; }
.h6, h6 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

p, .lead, div {
    line-height: 1.6;
}

.text-muted { color: var(--app-text-muted) !important; }
.text-dark { color: var(--app-text-main) !important; }

/* Structural: Sidebar */
.sidebar {
    background-color: var(--app-surface) !important;
    border-right: 1px solid var(--app-border);
    transition: all 0.3s ease;
    z-index: 1040;
}

.sidebar .nav-link {
    color: var(--app-text-muted);
    padding: 0.8rem 1rem;
    margin: 4px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.925rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .nav-link:hover {
    background-color: var(--app-surface-alt);
    color: var(--bs-primary);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    font-weight: 600;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    margin-right: 14px !important;
    transition: transform 0.2s ease;
}

.sidebar .nav-link:hover i {
    transform: scale(1.1);
}

.sidebar-heading {
    padding: 2rem 1.5rem 0.5rem;
    font-size: 0.725rem;
    font-weight: 800;
    color: var(--app-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

/* Structural: Navbar (Glassmorphism effect) */
.navbar {
    background: rgba(var(--app-surface), 0.7) !important; /* using variable fails with rgba if it's hex, so we'll use a trick or flat color if needed */
    border-bottom: 1px solid var(--app-border);
    padding: 1rem 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .navbar {
    background: rgba(30, 41, 59, 0.7) !important;
}
[data-bs-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.7) !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    color: var(--app-text-main) !important;
}

/* Premium Cards */
.card {
    background-color: var(--app-surface) !important;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--app-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

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

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid var(--app-border);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Smooth Buttons */
.btn {
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
    background: transparent;
    font-weight: 700;
}

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

/* Beautiful Modern Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    color: var(--app-text-main);
    width: 100%;
}

.table thead th {
    border-bottom: 2px solid var(--app-border);
    background-color: var(--app-surface-alt);
    color: var(--app-text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--app-surface-alt);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.table tbody td {
    border-bottom: 1px solid var(--app-border);
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.925rem;
    color: var(--app-text-main);
}

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

/* Action Buttons in Tables */
.btn-action-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--app-surface-alt);
    color: var(--app-text-muted);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-action-icon:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    border-color: var(--app-border);
    color: var(--bs-primary);
}

[data-bs-theme="dark"] .btn-action-icon:hover {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* Custom Element Wrappers */
.brand-icon-wrapper {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 10px;
    margin-right: 12px;
    box-shadow: 0 4px 10px -2px rgba(59, 130, 246, 0.5);
}

.brand-icon-wrapper.login-size {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin-bottom: 1.5rem;
}

.brand-icon-wrapper.login-size i {
    font-size: 2rem !important;
}

/* Form Controls - Clean Inputs */
.form-control, .form-select, .ts-control {
    border-radius: 10px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--app-border);
    background-color: var(--app-surface);
    color: var(--app-text-main);
    font-size: 0.925rem;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.form-control:focus, .form-select:focus, .ts-control.focus {
    border-color: var(--bs-primary);
    background-color: var(--app-surface);
    color: var(--app-text-main);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.input-group-text {
    border-radius: 10px;
    background-color: var(--app-surface-alt);
    border: 1px solid var(--app-border);
    color: var(--app-text-muted);
    padding: 0.6rem 1rem;
}

.form-control.bg-light, .input-group-text.bg-light {
    background-color: var(--app-surface-alt) !important;
    border-color: transparent !important;
}

/* Tom Select Theming fixes for Dark Mode */
.ts-wrapper .ts-control {
    background: var(--app-surface);
    border-color: var(--app-border);
    color: var(--app-text-main);
}
.ts-dropdown {
    background: var(--app-surface);
    border-color: var(--app-border);
    color: var(--app-text-main);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    margin-top: 4px;
}
.ts-dropdown .option {
    padding: 10px 14px;
    transition: all 0.15s ease;
}
.ts-dropdown .option:hover, .ts-dropdown .active {
    background-color: var(--app-surface-alt);
    color: var(--bs-primary);
}
[data-bs-theme="dark"] .ts-control > input {
    color: var(--app-text-main);
}
[data-bs-theme="dark"] .ts-wrapper.plugin-clear_button .clear-button {
    color: var(--app-text-muted);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--app-surface-alt);
    color: var(--app-text-main);
    border: 1px solid var(--app-border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.theme-toggle-btn:hover {
    background: var(--app-border);
    transform: rotate(15deg);
}

/* LOGIN V2 - Absolutely Premium */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--app-bg);
}

.login-card-modern {
    background: var(--app-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--app-border);
    overflow: hidden;
}

.login-gradient-pane {
    background: var(--app-surface-alt);
    position: relative;
    overflow: hidden;
}

/* Glowing Orbs for Login */
.orb-1, .orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.6;
}
.orb-1 {
    width: 300px; height: 300px;
    background: rgba(59, 130, 246, 0.4);
    top: -50px; left: -100px;
    animation: float 8s ease-in-out infinite;
}
.orb-2 {
    width: 250px; height: 250px;
    background: rgba(139, 92, 246, 0.4);
    bottom: -50px; right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

.login-content-z {
    position: relative;
    z-index: 10;
}

/* Utility Helpers */
.fs-7 { font-size: 0.825rem; }
.fs-8 { font-size: 0.725rem; }
.fw-500 { font-weight: 500; }
.tracking-wider { letter-spacing: 0.05em; }
.max-w-100px { max-width: 100px; }
.h-160px { min-height: 160px; }
.fs-huge-icon { font-size: 5rem; }
.chart-wrapper { width: 100%; max-width: 100%; height: 300px; }
.opacity-10 { opacity: 0.1; }
.opacity-15 { opacity: 0.15; }

/* Dashboard Cards (Anggota) Fixes */
.bg-primary { background-color: var(--bs-primary) !important; color: #fff !important; }
.bg-warning { background-color: var(--bs-warning) !important; color: #fff !important; }
.bg-success { background-color: var(--bs-success) !important; color: #fff !important; }
.bg-info { background-color: var(--bs-info) !important; color: #fff !important; }

/* Dropdown styling */
.dropdown-menu {
    background-color: var(--app-surface);
    border: 1px solid var(--app-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-sm);
}

.dropdown-item {
    color: var(--app-text-main);
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

.dropdown-item:hover {
    background-color: var(--app-surface-alt);
    color: var(--bs-primary);
}

/* Savings Management Dropdown Fix */
.dropdown-autocomplete, .dropdown-autocomplete-small {
    background-color: var(--app-surface) !important;
    border-color: var(--app-border) !important;
    z-index: 1050;
    top: 100%; left: 0;
}
.dropdown-autocomplete { max-height: 200px; overflow-y: auto; }
.dropdown-autocomplete .list-group-item {
    background-color: transparent;
    color: var(--app-text-main);
}
.dropdown-autocomplete .list-group-item:hover {
    background-color: var(--app-surface-alt);
}

/* =========================================
   PREMIUM STAT CARDS - Dashboard
   ========================================= */

.stat-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

/* Accent colored bottom bar */
.stat-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}
.stat-accent-blue    { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.stat-accent-warning { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.stat-accent-green   { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-accent-purple  { background: linear-gradient(90deg, #0ea5e9, #6366f1); }

/* Stat value font size */
.stat-value {
    font-size: clamp(1rem, 2vw, 1.3rem);
    letter-spacing: -0.02em;
}

/* Stat badges */
.stat-badge-up {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
}

.stat-badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
}

.stat-badge-info {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
}

.stat-badge-muted {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
}


/* =========================================
   PREMIUM LOGIN PAGE - Full Glassmorphism
   ========================================= */

.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c1445 100%);
    padding: 2rem 1rem;
}

[data-bs-theme="light"] .login-page-wrapper {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 50%, #ddd6fe 100%);
}

/* Floating animated orbs */
.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 10s ease-in-out infinite;
    pointer-events: none;
}

.login-orb-1 {
    width: 500px; height: 500px;
    background: rgba(59, 130, 246, 0.3);
    top: -150px; left: -150px;
    animation-delay: 0s;
}
.login-orb-2 {
    width: 400px; height: 400px;
    background: rgba(139, 92, 246, 0.25);
    bottom: -100px; right: -100px;
    animation-delay: -4s;
}
.login-orb-3 {
    width: 300px; height: 300px;
    background: rgba(16, 185, 129, 0.15);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -7s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    33%  { transform: translateY(-30px) scale(1.05); }
    66%  { transform: translateY(20px) scale(0.95); }
}

/* Center box wrapper */
.login-center-box {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
}

/* Brand Section */
.login-logo {
    height: 56px;
    object-fit: contain;
}

.login-brand-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.5);
    font-size: 2rem;
    color: white;
}

.login-brand-name {
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

[data-bs-theme="light"] .login-brand-name {
    color: #0f172a;
}

.login-brand-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0;
}

[data-bs-theme="light"] .login-brand-sub {
    color: #64748b;
}

/* Glass Card */
.login-glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

[data-bs-theme="light"] .login-glass-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 25px 60px rgba(59, 130, 246, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.login-card-inner {
    padding: 2.5rem;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

[data-bs-theme="light"] .login-title {
    color: #0f172a;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

[data-bs-theme="light"] .login-subtitle {
    color: #64748b;
}

/* Login Form Fields */
.login-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

[data-bs-theme="light"] .login-label {
    color: #475569;
}

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

.login-input-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

[data-bs-theme="light"] .login-input-icon {
    color: #94a3b8;
}

/* Password Toggle Button */
.login-eye-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 2;
}

.login-eye-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="light"] .login-eye-btn {
    color: #94a3b8;
}

[data-bs-theme="light"] .login-eye-btn:hover {
    color: #3b82f6;
}

.login-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: all 0.2s ease;
    outline: none;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.login-input.is-invalid {
    border-color: rgba(239, 68, 68, 0.7);
}

[data-bs-theme="light"] .login-input {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
}

[data-bs-theme="light"] .login-input::placeholder {
    color: #cbd5e1;
}

[data-bs-theme="light"] .login-input:focus {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-forgot {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(147, 197, 253, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.login-forgot:hover {
    color: #93c5fd;
}

[data-bs-theme="light"] .login-forgot {
    color: #3b82f6;
}

.login-error {
    color: #fca5a5;
    font-size: 0.78rem;
    margin-top: 6px;
    font-weight: 500;
}

[data-bs-theme="light"] .login-error {
    color: #ef4444;
}

/* Submit Button */
.login-btn-submit {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #6d28d9 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-main);
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.login-btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2563eb 0%, #5b21b6 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.login-btn-submit:hover::before {
    opacity: 1;
}

.login-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.55);
}

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

.login-btn-submit span {
    position: relative;
    z-index: 1;
}

/* Footer note */
.login-footer-note {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

[data-bs-theme="light"] .login-footer-note {
    color: #64748b;
}

.login-register-link {
    color: #93c5fd;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.login-register-link:hover {
    color: white;
    text-decoration: underline;
}

[data-bs-theme="light"] .login-register-link {
    color: #3b82f6;
}

/* =======================================================
   ROUND 2 ENHANCEMENTS - Deep Redesign
   Colored action buttons, sidebar indicator, responsive,
   alert animations, modal, search bar, and utilities
   ======================================================= */

/* Colored btn-action-icon hover variants */
.btn-action-icon.text-primary:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}
.btn-action-icon.text-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}
.btn-action-icon.text-success:hover {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}
.btn-action-icon.text-warning:hover {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
}
.btn-action-icon.text-info:hover {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #0ea5e9 !important;
    border-color: rgba(14, 165, 233, 0.2) !important;
}

/* Sidebar: stronger active state with left visual indicator */
.sidebar .nav-link {
    border-left: 3px solid transparent;
}

.sidebar .nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    font-weight: 700;
    border-left: 3px solid var(--bs-primary) !important;
    padding-left: 13px;
}

/* Page header utility class */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header .page-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--app-text-main);
    letter-spacing: -0.04em;
    margin-bottom: 2px;
}
.page-header .page-subtitle {
    font-size: 0.85rem;
    color: var(--app-text-muted);
    margin-bottom: 0;
}

/* Alert Enhancements - animated and colored */
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alert {
    border-radius: 12px !important;
    animation: alertSlideIn 0.3s ease-out;
}
.alert-success {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #0d9488 !important;
    border: none !important;
    border-left: 4px solid #10b981 !important;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #dc2626 !important;
    border: none !important;
    border-left: 4px solid #ef4444 !important;
}
.alert-warning {
    background: rgba(245, 158, 11, 0.08) !important;
    color: #b45309 !important;
    border: none !important;
    border-left: 4px solid #f59e0b !important;
}
.alert-info {
    background: rgba(14, 165, 233, 0.08) !important;
    color: #0284c7 !important;
    border: none !important;
    border-left: 4px solid #0ea5e9 !important;
}

/* Modal improvements */
.modal-content {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
    background: var(--app-surface) !important;
}
.modal-header {
    border-bottom: 1px solid var(--app-border) !important;
    padding: 1.5rem 1.75rem !important;
    border-radius: 20px 20px 0 0 !important;
}
.modal-footer {
    border-top: 1px solid var(--app-border) !important;
    padding: 1rem 1.75rem !important;
    background-color: var(--app-surface-alt) !important;
    border-radius: 0 0 20px 20px !important;
}
.modal-body { padding: 1.75rem !important; }

/* Improved Search Input Group */
.search-group {
    display: flex;
    align-items: center;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 0 1rem;
    transition: all 0.2s ease;
    gap: 0.5rem;
}
.search-group:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.search-group i { color: var(--app-text-muted); flex-shrink: 0; }
.search-group input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.65rem 0 !important;
    flex: 1;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header .btn { width: 100%; text-align: center; justify-content: center; }
    .table thead th, .table tbody td { padding: 0.65rem 0.75rem; font-size: 0.825rem; }
    .card-body { padding: 1rem; }
    .stat-card-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    h4.fw-bold, .h4.fw-bold { font-size: 1.1rem; }
    .modal-dialog { margin: 0.5rem; }
    .modal-content { border-radius: 16px !important; }
}

/* Scrollbar for table-responsive on webkit */
.table-responsive::-webkit-scrollbar { height: 4px; }
.table-responsive::-webkit-scrollbar-track { background: transparent; }
.table-responsive::-webkit-scrollbar-thumb { background: var(--app-border); border-radius: 999px; }
.table-responsive::-webkit-scrollbar-thumb:hover { background: var(--app-text-muted); }

/* Wire loading dim effect */
[wire\:loading] { opacity: 0.65; transition: opacity 0.15s ease; }

/* Extra utilities */
.extra-small { font-size: 0.72rem; }
.fw-600 { font-weight: 600; }
.fw-800 { font-weight: 800; }
.gap-1h { gap: 0.375rem; }
.ls-tight { letter-spacing: -0.03em; }
.ls-wide  { letter-spacing: 0.05em; }
