/* ================================================================
   Unity Darts Organisation - Shared Styles
   Dark theme with dartboard-inspired design
   ================================================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on Samsung Internet (S25 fix) */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: #0a0e27;
    position: relative;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* V5_72 — sticky-positioning compat. `overflow-x: hidden` on html/body
   above creates a scroll container that breaks descendants using
   `position: sticky` (the sticky element scrolls away instead of pinning
   to the viewport). `overflow-x: clip` achieves the same "no horizontal
   scroll" guard WITHOUT becoming a scroll container, so sticky descendants
   work correctly. Falls back to `hidden` on browsers that don't support
   `clip` (Safari 15 and earlier) — sticky won't work there but everything
   else stays identical to today's behaviour. */
@supports (overflow: clip) {
    html, body { overflow-x: clip; }
}

/* Subtle circular pattern background inspired by dartboard */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(800px, 100vw);
    height: min(800px, 100vw);
    background: 
        radial-gradient(circle at center, transparent 0%, transparent 40%, rgba(30, 144, 255, 0.08) 40%, rgba(30, 144, 255, 0.08) 41%, transparent 41%),
        radial-gradient(circle at center, transparent 0%, transparent 60%, rgba(30, 144, 255, 0.06) 60%, rgba(30, 144, 255, 0.06) 61%, transparent 61%),
        radial-gradient(circle at center, transparent 0%, transparent 80%, rgba(30, 144, 255, 0.04) 80%, rgba(30, 144, 255, 0.04) 81%, transparent 81%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

/* Shift circles to centre over the content area (not the full viewport)
   when the sidebar is present. Sidebar = 80px, so nudge right by 40px.
   Only applies at the breakpoint where the sidebar is actually on the left. */
@media (min-width: 768px) {
    body.has-sidebar::before {
        left: calc(50% + 40px);
    }
}

/* Accent glow effect */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    right: 0;           /* was -20% — negative right causes iOS scroll width overflow */
    width: 40%;         /* was 600px fixed — relative keeps it within viewport */
    max-width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Container Styles */
.welcome-container,
.register-container {
    max-width: 440px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.register-container {
    max-width: 480px;
}

/* Card Styles */
.welcome-card,
.register-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 144, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(30, 144, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Logo Container */
.logo-container {
    background: radial-gradient(circle, rgba(30, 144, 255, 0.1) 0%, transparent 70%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Small Logo Variant for App Pages */
.logo-small {
    max-width: 80px;
    height: auto;
}

.header-logo-container {
    background: none;
    padding: 0;
    margin: 0;
}

/* Typography */
.app-title,
.page-title {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
}

.tagline,
.subtitle {
    color: #94a3b8;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 0.95rem;
}

/* Form Styles */
.form-label {
    color: #cbd5e1;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(30, 144, 255, 0.3);
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: #1e90ff;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.15);
}

.form-control::placeholder {
    color: #64748b;
}

/* Button Styles */
.btn-custom-primary,
.btn-submit {
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
    border: none;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-custom-primary:hover,
.btn-submit:hover {
    background: linear-gradient(135deg, #2196f3 0%, #1e90ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 144, 255, 0.4);
    color: #ffffff;
}

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

.btn-submit {
    padding: 0.85rem 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.btn-custom-outline {
    background: transparent;
    border: 2px solid rgba(255, 193, 7, 0.6);
    color: #ffc107;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
}

.btn-custom-outline:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 193, 7, 0.2);
}

.btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1.1rem;
}

/* Icon styling */
.btn i {
    opacity: 0.9;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #1e90ff;
}

.password-toggle:active {
    color: #64748b;
}

/* Disable hover effect on touch devices */
@media (hover: none) and (pointer: coarse) {
    .password-toggle:hover {
        color: #64748b;
    }
}

/* Password helper text */
.password-hint {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Login/Register Links */
.login-link {
    color: #94a3b8;
    text-align: center;
    margin-top: 1.5rem;
}

.login-link a {
    color: #ffc107;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #ffca28;
    text-decoration: underline;
}

/* Alert Styling */
.alert {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #51cf66;
}

/* Responsive Mobile Styles */
@media (max-width: 576px) {
    .logo-container img {
        max-width: 240px !important;
    }
    
    .app-title,
    .page-title {
        font-size: 2rem !important;
    }
    
    .register-container {
        padding: 1rem;
    }
}

/* ================================================================
   COMPONENT LIBRARY STYLES
   ================================================================ */

/* Top Navigation Bar */
.top-nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-nav-center {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Top Nav Icon Buttons */
.nav-icon-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-btn:hover {
    color: #1e90ff;
    background: rgba(30, 144, 255, 0.1);
}

.nav-icon-btn.active {
    color: #1e90ff;
    background: rgba(30, 144, 255, 0.15);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    background: transparent;
    border: 2px solid rgba(30, 144, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-dropdown-toggle:hover {
    border-color: #1e90ff;
    background: rgba(30, 144, 255, 0.1);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
}

.user-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
    color: #cbd5e1;
}

.user-dropdown-header strong {
    display: block;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.user-dropdown-header small {
    color: #94a3b8;
    font-size: 0.85rem;
}

.user-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: rgba(30, 144, 255, 0.1);
    color: #1e90ff;
}

.user-dropdown-item i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(30, 144, 255, 0.2);
    margin: 0.25rem 0;
}

/* Footer/Sidebar Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(30, 144, 255, 0.2);
    padding: 0.5rem 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    min-width: 70px;
    border-radius: 8px;
}

.bottom-nav-item i {
    font-size: 1.5rem;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #1e90ff;
    background: rgba(30, 144, 255, 0.1);
}

/* Desktop: Transform to Sidebar */
@media (min-width: 768px) {
    .bottom-nav {
        top: 0;           /* Background fills corner behind sticky nav */
        bottom: 0;
        right: auto;
        width: 80px;
        border-top: none;
        border-right: 1px solid rgba(30, 144, 255, 0.2);
        padding: 56px 0 1rem; /* 56px top = sticky nav height, pushes items below nav */
    }
    
    .bottom-nav-content {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.5rem;
        height: 100%;
    }
    
    .bottom-nav-item {
        width: 100%;
        padding: 1rem 0.5rem;
    }
    
    /* Bottom nav is currently disabled — no sidebar padding needed */
    body.has-sidebar {
        padding-left: 0;
    }
    
    .main-content.with-sidebar {
        margin-left: 0;
        padding-top: 56px; /* Clear the sticky top nav */
    }
}

/* Content Area Adjustments */
.main-content {
    padding: 1rem;
    padding-bottom: 1rem; /* Bottom nav disabled — was 80px */
    min-height: 100vh;
}

.main-content.with-top-nav {
    padding-top: 0;
}

.main-content.with-bottom-nav {
    padding-bottom: 1rem; /* Bottom nav disabled — was 80px */
}

@media (min-width: 768px) {
    .main-content.with-bottom-nav {
        padding-bottom: 1rem;
    }
}

/* Action Buttons */
.btn-action {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    letter-spacing: 0.5px;
}

.btn-action-primary {
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-action-primary:hover {
    background: linear-gradient(135deg, #2196f3 0%, #1e90ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 144, 255, 0.4);
    color: #ffffff;
}

.btn-action-secondary {
    background: transparent;
    border: 2px solid rgba(255, 193, 7, 0.6);
    color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
}

.btn-action-secondary:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 193, 7, 0.2);
}

.btn-action-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-action-danger:hover {
    background: linear-gradient(135deg, #e4606d 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.4);
    color: #ffffff;
}

.btn-action-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-action-success:hover {
    background: linear-gradient(135deg, #48b461 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
    color: #ffffff;
}

.btn-action-full {
    width: 100%;
}

/* Numerical Keypad */
.number-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.number-btn {
    aspect-ratio: 1;
    min-height: 70px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(30, 144, 255, 0.3);
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover {
    background: rgba(30, 144, 255, 0.2);
    border-color: #1e90ff;
    transform: scale(1.05);
}

.number-btn:active {
    transform: scale(0.95);
}

.number-btn-enter {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border-color: #28a745;
    font-size: 1.2rem;
}

.number-btn-enter:hover {
    background: linear-gradient(135deg, #48b461 0%, #28a745 100%);
    border-color: #48b461;
}

.number-btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
    font-size: 1.2rem;
}

.number-btn-delete:hover {
    background: linear-gradient(135deg, #e4606d 0%, #dc3545 100%);
    border-color: #e4606d;
}

.number-btn-zero {
    grid-column: span 2;
}

/* Display Boxes */
.display-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.display-box-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.display-box-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.display-box-subtitle {
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Info Cards */
.info-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(30, 144, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(30, 144, 255, 0.4);
    background: rgba(15, 23, 42, 0.8);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.info-card-icon {
    font-size: 1.5rem;
    color: #1e90ff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 8px;
}

.info-card-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
}

.info-card-body {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Tables */
.data-table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.6);
}

.data-table thead {
    background: rgba(30, 144, 255, 0.1);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #1e90ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(30, 144, 255, 0.3);
}

.data-table td {
    padding: 1rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(30, 144, 255, 0.1);
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(30, 144, 255, 0.05);
}

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

/* Mobile Table - Stack on small screens */
@media (max-width: 640px) {
    .data-table-mobile-stack thead {
        display: none;
    }
    
    .data-table-mobile-stack tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid rgba(30, 144, 255, 0.2);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .data-table-mobile-stack td {
        display: block;
        text-align: right;
        padding: 0.75rem;
        border-bottom: 1px solid rgba(30, 144, 255, 0.1);
    }
    
    .data-table-mobile-stack td:before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        color: #1e90ff;
        font-family: 'Rajdhani', sans-serif;
        text-transform: uppercase;
        font-size: 0.85rem;
    }
    
    .data-table-mobile-stack td:last-child {
        border-bottom: none;
    }
}

/* Custom Dropdown */
.custom-select-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.custom-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
}

.custom-select:focus {
    outline: none;
    border-color: #1e90ff;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.15);
}

.custom-select-wrapper:has(select)::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.custom-select option {
    background: #0f172a;
    color: #ffffff;
}

/* Toggle Switch */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    margin-bottom: 1rem;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 56px;
    height: 32px;
    background: rgba(100, 116, 139, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #64748b;
    top: 4px;
    left: 4px;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(30, 144, 255, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
    background: #1e90ff;
    transform: translateX(24px);
}

.toggle-label {
    color: #cbd5e1;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

/* Modal/Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay.show {
    display: flex;
}

.modal-dialog {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	pointer-events: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #1e90ff;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(30, 144, 255, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-info {
    border-left: 4px solid #1e90ff;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-info .toast-icon {
    color: #1e90ff;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

.toast-message {
    flex: 1;
    color: #cbd5e1;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(30, 144, 255, 0.2);
    border-top-color: #1e90ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }