@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body { 
    background-color: var(--bg-main); 
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* --- ÜLDISED KOMPONENDID --- */
.table-standings th, .table-standings td { padding: 0.75rem 0.5rem; vertical-align: middle; white-space: nowrap; }
.action-btn { opacity: 0.3; transition: 0.2s; } 
tr:hover .action-btn { opacity: 1; }
.btn { border-radius: 8px; font-weight: 500; }
.form-control, .form-select { border-radius: 8px; border-color: var(--border-color); box-shadow: none !important; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important; }
.card { border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow-soft); }
.card-header { background: transparent; border-bottom: 1px solid var(--border-color); padding: 1.25rem 1.5rem; }

/* --- AVALEHT (KÜLALINE) - FARMER-AI STYLE --- */
.hero-wrapper {
    background-color: var(--bg-card);
    padding: 100px 0 80px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.hero-wrapper::before {
    content: ''; position: absolute; top: -100px; right: -100px; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%; z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 3.5rem; font-weight: 800; letter-spacing: -1.5px; color: var(--text-main); line-height: 1.1; margin-bottom: 1.5rem; }
.text-gradient { background: linear-gradient(90deg, #2563eb, #0ea5e9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-image-box img { border-radius: 24px; box-shadow: var(--shadow-hover); border: 8px solid white; }

.section-title { font-weight: 800; letter-spacing: -0.5px; color: var(--text-main); margin-bottom: 2rem; display: flex; align-items: center; gap: 0.75rem; }

/* --- KAARDID --- */
.event-card {
    transition: all 0.3s ease;
    background: var(--bg-card);
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; height: 100%;
    overflow: hidden;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.event-card-header { padding: 1.25rem; border-bottom: 1px solid #f1f5f9; background: #fafafa; }
.event-card-body { padding: 1.5rem; flex-grow: 1; }

.live-indicator {
    display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 700;
    background: #fee2e2; color: #ef4444; padding: 4px 10px; border-radius: 20px;
}
.live-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; margin-right: 6px; animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.finished-card { opacity: 0.8; background: #f8fafc; }
.finished-card:hover { opacity: 1; }

/* --- ADMINI KÜLGPANEEL JA LAYOUT --- */
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    padding: 2rem 1rem;
}
.admin-nav-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; color: var(--text-muted);
    font-weight: 500; border-radius: 8px; transition: 0.2s;
    text-decoration: none; margin-bottom: 0.25rem;
}
.admin-nav-link:hover { background: #f1f5f9; color: var(--text-main); }
.admin-nav-link.active { background: #eff6ff; color: var(--primary); font-weight: 600; }

.admin-section {
    background: var(--bg-card);
    border-radius: 16px; border: 1px solid var(--border-color);
    padding: 2rem; margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}
.admin-section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 0.75rem; }

/* --- PISIDETAILID --- */
.stat-box { border-radius: 16px; padding: 1.5rem; text-align: center; }
.badge-soft { background: #f1f5f9; color: #475569; font-weight: 600; }
.playoff-card { border-radius: 12px; background: white; border: 1px solid var(--border-color); }
.site-footer { background: #ffffff; padding: 3rem 0; border-top: 1px solid var(--border-color); margin-top: 4rem; }