/* 
 * Modern Leaderboard Management System - Styling System
 */

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

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Theme Dark (Default) */
    --bg-dark: #070a13;
    --bg-body: #0a0f1d;
    --bg-card: rgba(22, 30, 52, 0.7);
    --bg-card-hover: rgba(29, 40, 68, 0.85);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(30, 58, 138, 0.4);
    
    /* Core Accent Colors */
    --primary: #D4AF37; /* Gold */
    --primary-glow: rgba(212, 175, 55, 0.35);
    --secondary: #1E3A8A; /* Royal Blue */
    --secondary-glow: rgba(30, 58, 138, 0.5);
    
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    /* Rankings Colors */
    --gold: #D4AF37;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    
    /* Metallic gradients */
    --grad-gold: linear-gradient(135deg, #FFE066 0%, #D4AF37 50%, #AA8000 100%);
    --grad-silver: linear-gradient(135deg, #FFFFFF 0%, #C0C0C0 50%, #808080 100%);
    --grad-bronze: linear-gradient(135deg, #E69A5A 0%, #CD7F32 50%, #8A4F1D 100%);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-dark: #f1f5f9;
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(30, 58, 138, 0.15);
    --text-white: #0f172a;
    --text-muted: #64748b;
    --primary-glow: rgba(212, 175, 55, 0.2);
    --secondary-glow: rgba(30, 58, 138, 0.2);
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Wrapper and Layouts */
.app-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 15, 29, 0.96); /* Opaque fallback for smooth scrolling */
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
    transform: translate3d(0,0,0);
}

body.light-theme .navbar {
    background: rgba(248, 250, 252, 0.96);
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-brand i {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--primary-glow);
}

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

/* Glass Buttons */
.btn-glass {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-glass:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-glass-primary {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-glass-primary:hover {
    background: transparent;
    color: var(--text-white);
    border-color: var(--border-glass);
    box-shadow: none;
}

.btn-theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-theme-toggle:hover {
    color: var(--text-white);
    transform: rotate(15deg) scale(1.1);
}

/* Background Animations */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, var(--secondary-glow) 0%, transparent 60%);
}

.bg-glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}

.bg-glow-orb.orb-left {
    top: -200px;
    left: -200px;
}

.bg-glow-orb.orb-right {
    bottom: -200px;
    right: -200px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin: 1rem 0 2rem;
    position: relative;
}

.hero-subtitle {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .hero-title {
    background: linear-gradient(180deg, #0F172A 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

/* FUT Podium (Top 3 Players) */
.podium-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2.5rem;
    align-items: end;
    max-width: 1050px;
    margin: 4rem auto 5rem;
    padding: 0 1rem;
}

/* FUT Card Style */
.fut-card-wrapper {
    perspective: 1000px;
    opacity: 0;
    animation: cardEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fut-card-wrapper.first-place {
    animation-delay: 0.4s;
    order: 2; /* Center in visual layout */
}

.fut-card-wrapper.second-place {
    animation-delay: 0.2s;
    order: 1;
}

.fut-card-wrapper.third-place {
    animation-delay: 0.6s;
    order: 3;
}

.fut-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.5; /* FUT standard proportions */
    border-radius: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-glass);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
    transform: translate3d(0,0,0);
    will-change: transform;
    backface-visibility: hidden;
}

.fut-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 48%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 52%,
        transparent 55%
    );
    transform: rotate(-45deg);
    transition: 0s;
    pointer-events: none;
}

.fut-card:hover::before {
    left: 150%;
    transition: all 1.2s ease;
}

.fut-card:hover {
    transform: translateY(-15px) rotateY(5deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* Card Metallic Themes */
.first-place .fut-card {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25), 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: float 4s ease-in-out infinite;
}

.first-place .fut-card:hover {
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.45), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.second-place .fut-card {
    border-color: var(--silver);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.15), 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: float-delayed 4.5s ease-in-out infinite;
}

.third-place .fut-card {
    border-color: var(--bronze);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.15), 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: float 5s ease-in-out infinite;
}

/* Card Layout Elements */
.fut-card-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.card-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-heading);
}

.card-rank {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.first-place .card-rank { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.second-place .card-rank { background: var(--grad-silver); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.third-place .card-rank { background: var(--grad-bronze); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.card-trophy {
    font-size: 1.5rem;
    margin-top: 0.3rem;
}

.first-place .card-trophy { color: var(--gold); animation: sparkle 3s infinite; }
.second-place .card-trophy { color: var(--silver); }
.third-place .card-trophy { color: var(--bronze); }

.card-overall-score {
    text-align: right;
}

.overall-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overall-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Card Avatar */
.card-avatar-frame {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 3px;
    background: var(--border-glass);
    margin-bottom: 0.8rem;
}

.first-place .card-avatar-frame { background: var(--grad-gold); }
.second-place .card-avatar-frame { background: var(--grad-silver); }
.third-place .card-avatar-frame { background: var(--grad-bronze); }

.card-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #1e293b;
    border: 3px solid #0f172a;
}

.card-details {
    text-align: center;
    width: 100%;
    margin-bottom: 1.2rem;
}

.card-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.1rem;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Stats (FIFA Style Columns) */
.card-stats {
    width: 100%;
    border-top: 1px solid var(--border-glass);
    padding-top: 0.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    font-family: var(--font-heading);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
}

.stat-val {
    font-weight: 700;
    font-size: 0.95rem;
}

.stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Remaining Players Table Section */
.rankings-section {
    margin-top: 2rem;
}

.table-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box-wrapper {
    position: relative;
    max-width: 350px;
    width: 100%;
}

.search-box-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    color: var(--text-white);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.rankings-table-container {
    background: #0f162a; /* Solid background to prevent scrolling blur lag */
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translate3d(0,0,0);
}

body.light-theme .rankings-table-container {
    background: #ffffff;
}

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

.rankings-table th {
    padding: 1.2rem 1rem;
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-glass);
}

.rankings-table td {
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.95rem;
    vertical-align: middle;
}

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

.rankings-table tr {
    transition: background-color 0.2s ease;
}

.rankings-table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* User Identity Cell */
.user-identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #1e293b;
    border: 2px solid var(--border-glass);
}

/* Custom Table Badges */
.rank-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-heading);
}

.rank-badge.top-rank {
    background: var(--primary);
    color: #000;
}

.rank-badge.silver-rank {
    background: var(--silver);
    color: #000;
}

.rank-badge.bronze-rank {
    background: var(--bronze);
    color: #fff;
}

.rank-badge.normal-rank {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.score-badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
}

/* Stat cell values */
.stat-cell {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Page transitions */
.fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

/* Admin Dashboard layout */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #090d1a;
    border-right: 1px solid var(--border-glass);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

body.light-theme .admin-sidebar {
    background: #f1f5f9;
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    background: var(--primary-glow);
    border-left: 3px solid var(--primary);
    color: var(--text-white);
}

.admin-main {
    padding: 2rem 3rem;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.admin-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

/* Admin Dashboard Analytics tiles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition-smooth);
}

.stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-tile-icon {
    font-size: 2rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-tile-info h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-tile-info p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Spreadsheet Scoring Matrix */
.spreadsheet-container {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.score-sheet-table {
    width: 100%;
    border-collapse: collapse;
}

.score-sheet-table th {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-glass);
    text-align: center;
}

.score-sheet-table th:first-child, .score-sheet-table th:nth-child(2) {
    text-align: left;
}

.score-sheet-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border-glass);
    text-align: center;
    vertical-align: middle;
}

.score-sheet-table td:first-child, .score-sheet-table td:nth-child(2) {
    text-align: left;
}

.input-score {
    width: 60px;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    border-radius: 6px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    outline: none;
    transition: var(--transition-smooth);
}

.input-score:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Alerts and Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgb(16, 185, 129);
    color: #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgb(239, 68, 68);
    color: #ef4444;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-white);
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

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

/* Dialogs/Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

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

.modal-content {
    background: #0f172a;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Keyframes */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -8px, 0) rotate(0.5deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -6px, 0) rotate(-0.5deg);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.8));
    }
}

/* Drag & Drop Area */
.drag-drop-zone {
    border: 2px dashed var(--border-glass);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drag-drop-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.drag-drop-zone i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Printable styles */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .navbar, .btn-glass, .search-box-wrapper, .bg-particles, .bg-glow-orb, .nav-actions {
        display: none !important;
    }
    .rankings-table-container {
        border: none !important;
        box-shadow: none !important;
        background: none !important;
    }
    .rankings-table th {
        background: #eee !important;
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
    }
    .rankings-table td {
        border-bottom: 1px solid #ccc !important;
        color: #000 !important;
    }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .podium-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 450px;
    }

    .fut-card-wrapper.first-place {
        order: 1 !important;
    }
    
    .fut-card-wrapper.second-place {
        order: 2 !important;
    }
    
    .fut-card-wrapper.third-place {
        order: 3 !important;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        display: none; /* In production, should toggle */
    }
    .hero-title {
        font-size: 2.3rem;
    }
}

/* Responsive Table Column Toggles */
@media (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .hide-mobile {
        display: none !important;
    }
}
