:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --card-bg: rgba(0, 20, 0, 0.8);
    --card-border: rgba(0, 255, 0, 0.3);
    --primary: #00ff00;
    --primary-hover: #00cc00;
    --text-main: #00ff00;
    --text-muted: #00aa00;
    --success: #00ff00;
    --success-bg: rgba(0, 255, 0, 0.1);
    --warning: #ffcc00;
    --warning-bg: rgba(255, 204, 0, 0.1);
    --info: #00cc00;
    --info-bg: rgba(0, 204, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveGrid 15s linear infinite;
    color: var(--text-main);
    min-height: 100vh;
    padding: 2rem;
    line-height: 1.5;
}

@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography & Header */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #00ff00, #aaffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.highlight {
    font-style: italic;
    background: linear-gradient(to right, #00cc00, #00ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Control Panel */
.control-panel {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}

label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none;
    cursor: pointer;
}

select:focus {
    border-color: var(--primary);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #006600);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 46px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

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

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loader */
.loader-container {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.loader-container.hidden {
    display: none;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}
.error-message.hidden {
    display: none;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.match-card {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
}

.match-card.valid-odds {
    background: linear-gradient(145deg, rgba(225, 29, 72, 0.25) 0%, rgba(30, 41, 59, 1) 100%);
    border: 1px solid rgba(225, 29, 72, 0.5);
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.1);
}

.match-card.invalid-odds {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.2) 0%, rgba(30, 41, 59, 1) 100%);
    border: 1px solid rgba(234, 179, 8, 0.5);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.1);
}

.match-title {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.match-title .vs {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.ev-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.ev-delta {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Suggestion Box */
.suggestion-box {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.suggestion-box.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.suggestion-box.warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.suggestion-box.info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .metrics-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 0 0 16px 16px;
    border-top: none;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

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

.welcome-text {
    color: var(--text-muted);
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-btn.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.nav-btn.danger:hover {
    background: rgba(239, 68, 68, 0.4);
}

.admin-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.admin-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* Auth Pages */
.center-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.auth-form {
    display:flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group-full {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group-full input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.form-group-full input:focus {
    border-color: var(--primary);
}

.auth-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.auth-footer {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.text-link:hover {
    text-decoration: underline;
}

/* Base Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: left;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th, .data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
}
.data-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge.admin {
    background: rgba(245, 158, 11, 0.2);
    color: #fbd38d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge.user {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}
