/* assets/css/index.css - Premium Glassmorphic Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-base: #070913;
    --bg-surface: rgba(20, 26, 46, 0.45);
    --bg-surface-hover: rgba(30, 38, 66, 0.6);
    --bg-card: rgba(13, 17, 34, 0.7);
    --border-glow: rgba(13, 242, 201, 0.15);
    --border-base: rgba(255, 255, 255, 0.07);
    --border-focus: rgba(112, 13, 242, 0.5);
    
    --primary: #0df2c9;       /* Glowing Neon Teal */
    --primary-rgb: 13, 242, 201;
    --secondary: #700df2;     /* Royal Amethyst Purple */
    --secondary-rgb: 112, 13, 242;
    --accent: #f20d5c;        /* Hot Pink Accent */
    
    --text-main: #f3f4f6;     /* Light Grey Text */
    --text-muted: #9ca3af;    /* Muted Grey Text */
    --text-glow: #ffffff;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-neon: 0 0 20px rgba(13, 242, 201, 0.15), 0 0 40px rgba(112, 13, 242, 0.1);
    --shadow-base: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 10% 20%, rgba(112, 13, 242, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(13, 242, 201, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-base);
    transition: var(--transition-base);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-base);
    transition: var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-neon);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(112, 13, 242, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 242, 201, 0.5);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.text-glow {
    text-shadow: 0 0 10px rgba(13, 242, 201, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(13, 242, 201, 0.2);
    background: rgba(10, 15, 30, 0.85);
}

select.form-control option {
    background-color: #0b0f19;
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-base);
    text-decoration: none;
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0bc4a3 100%);
    color: #05070f;
    box-shadow: 0 4px 15px rgba(13, 242, 201, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 242, 201, 0.4);
    background: linear-gradient(135deg, #1bfad4 0%, var(--primary) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #5b0ac7 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(112, 13, 242, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 13, 242, 0.4);
    background: linear-gradient(135deg, #8726ff 0%, var(--secondary) 100%);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-base);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(13, 242, 201, 0.05);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-primary { background: rgba(13, 242, 201, 0.15); color: var(--primary); border: 1px solid rgba(13, 242, 201, 0.3); }
.badge-secondary { background: rgba(112, 13, 242, 0.15); color: #a78bfa; border: 1px solid rgba(112, 13, 242, 0.3); }

/* Layout Shell */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(13, 242, 201, 0.4);
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Authentication Page */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 40px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-base);
    padding-bottom: 12px;
}

.auth-tab {
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    transition: var(--transition-fast);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-3 { grid-column: span 3; }

/* Stats Widgets */
.stat-widget {
    position: relative;
    overflow: hidden;
}

.stat-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.stat-footer {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tables & Logs */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background: rgba(10, 15, 30, 0.4);
    padding: 14px 16px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-base);
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

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

.amount-in { color: var(--success); font-weight: 600; }
.amount-out { color: var(--danger); font-weight: 600; }
.mono-val { font-family: var(--font-mono); }

/* Club Bonus Progress Columns */
.club-bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.club-card {
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.club-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.bonus-progress-item {
    margin-bottom: 10px;
}

.bonus-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0f1325;
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: var(--transition-base);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #ffffff;
}

/* Alerts and Notifications */
.notification-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.toast {
    background: rgba(15, 19, 37, 0.95);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-base);
    border-radius: 4px;
    padding: 16px 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success { border-left-color: var(--success); }
.toast-danger { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--primary); }

/* Installer styling */
.installer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.installer-card {
    max-width: 600px;
    width: 100%;
    padding: 40px;
    text-align: center;
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .col-8, .col-4, .col-6, .col-3 {
        grid-column: span 12;
    }
}
