/**
 * Tournament CSS - Ramadan Tournament Styles
 * Author: Mohammed Azab
 * Email: Mohammed@azab.io
 */

/* ==================== GLOBAL STYLES ==================== */

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

:root {
    --primary-color: #1976D2;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --secondary-color: #00796B;
    --accent-color: #FFA726;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #FAFAFA;
    --bg-white: #ffffff;
    --border-color: #E0E0E0;
    --success-color: #43A047;
    --error-color: #E53935;
    --warning-color: #FB8C00;
    --ramadan-gold: #FFA726;
    --ramadan-green: #00796B;
    --ramadan-teal: #0097A7;
    --ramadan-purple: #7B1FA2;
    --ramadan-moon: #FFD54F;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
}

/* ==================== RAMADAN DECORATIONS ==================== */

.ramadan-banner {
    background: linear-gradient(135deg, var(--ramadan-purple) 0%, var(--primary-dark) 50%, var(--ramadan-green) 100%);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: ramadanGlow 3s ease-in-out infinite;
    position: relative;
    z-index: 100;
}

.ramadan-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    line-height: 1;
    transition: all 0.3s ease;
}

.ramadan-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.ramadan-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.ramadan-content {
    display: inline-block;
}

.ramadan-banner .ramadan-icon {
    font-size: 1.2rem;
    margin: 0 0.75rem;
    display: inline-block;
    animation: float 2s ease-in-out infinite;
}

.ramadan-banner .ramadan-text {
    font-size: 1rem;
    letter-spacing: 1px;
}

.ramadan-crescent {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px var(--ramadan-gold));
}

.ramadan-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.ramadan-stars .star {
    position: absolute;
    font-size: 1.5rem;
    color: var(--ramadan-moon);
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0.7;
}

.ramadan-stars .star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.ramadan-stars .star:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.ramadan-stars .star:nth-child(3) { top: 60%; left: 20%; animation-delay: 1s; }
.ramadan-stars .star:nth-child(4) { top: 70%; right: 25%; animation-delay: 1.5s; }
.ramadan-stars .star:nth-child(5) { top: 40%; left: 50%; animation-delay: 2s; }

@keyframes ramadanGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(255, 167, 38, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes glow {
    from { 
        filter: drop-shadow(0 0 5px var(--ramadan-gold));
        transform: scale(1);
    }
    to { 
        filter: drop-shadow(0 0 20px var(--ramadan-moon));
        transform: scale(1.05);
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Cairo', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0d47a1 0%, #1976D2 35%, #1565C0 65%, #0d47a1 100%);
    background-attachment: fixed;
    min-height: 100vh;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ==================== HEADER ==================== */

.ramadan-decoration-top {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    padding: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: white;
}

.ramadan-decoration-top i {
    margin: 0 0.75rem;
}

.header {
    background: linear-gradient(135deg, var(--ramadan-purple) 0%, var(--primary-dark) 50%, var(--ramadan-green) 100%);
    color: white;
    padding: 1.25rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 2px solid var(--ramadan-gold);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ==================== RAMADAN DECORATIONS ==================== */

.ramadan-lanterns {
    position: absolute;
    top: 20px;
    right: 50px;
    font-size: 40px;
    color: var(--ramadan-gold);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.ramadan-lanterns i {
    margin: 0 20px;
    filter: drop-shadow(0 0 10px var(--ramadan-gold));
}

.ramadan-crescent {
    position: absolute;
    top: -50px;
    right: 50%;
    transform: translateX(50%);
    font-size: 100px;
    color: var(--ramadan-gold);
    opacity: 0.2;
    animation: glow 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 20px var(--ramadan-gold), 0 0 40px var(--ramadan-gold);
        opacity: 0.2;
    }
    50% { 
        text-shadow: 0 0 40px var(--ramadan-gold), 0 0 80px var(--ramadan-gold);
        opacity: 0.4;
    }
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 10;
}

.mobile-menu-btn .close-icon {
    display: none;
}

.header.menu-open .mobile-menu-btn .menu-icon {
    display: none;
}

.header.menu-open .mobile-menu-btn .close-icon {
    display: inline;
}

.mobile-nav {
    display: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    background: rgba(13, 71, 161, 0.95);
    backdrop-filter: blur(10px);
}

.header.menu-open .mobile-nav {
    display: block;
    max-height: 500px;
    opacity: 1;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    text-align: center;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-right: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.admin-link {
    background-color: var(--accent-color);
    color: white;
}

/* ==================== HERO SECTION ==================== */

.hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1976D2 50%, #1565C0 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 4rem 1.25rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.hero-location {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.ramadan-dates {
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    display: inline-block;
    margin-top: 0.75rem;
    backdrop-filter: blur(10px);
}

/* ==================== QUICK STATS ==================== */

.quick-stats {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card i {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
    padding: 3rem 0;
    background: transparent;
}

.content-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
}

/* ==================== TEAMS GRID ==================== */

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.team-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.team-logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.team-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.team-stat {
    text-align: center;
}

.team-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.team-stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== MATCHES ==================== */

.matches-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(5px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.match-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.match-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.match-date-time {
    font-weight: 600;
    color: var(--text-light);
}

.match-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.match-status.scheduled {
    background: #e3f2fd;
    color: #1976d2;
}

.match-status.live {
    background: #ffebee;
    color: #c62828;
    animation: pulse 1.5s infinite;
}

.match-status.completed {
    background: #e8f5e9;
    color: #388e3c;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.match-teams {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    align-items: center;
    gap: 20px;
}

.match-team {
    text-align: center;
}

.match-team-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
}

.match-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-team-name {
    font-size: 18px;
    font-weight: 700;
}

.match-score {
    font-size: 2.25rem;
    font-weight: 600;
    color: #ffffff;
}

/* ==================== STANDINGS TABLE ==================== */

.table-responsive {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.standings-table thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.standings-table th,
.standings-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.standings-table tbody tr:hover {
    background-color: var(--bg-light);
}

.standings-table tbody tr:nth-child(1),
.standings-table tbody tr:nth-child(2),
.standings-table tbody tr:nth-child(3) {
    background-color: rgba(25, 118, 210, 0.05);
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-logo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================== SCORERS GRID ==================== */

.scorers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.scorer-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.scorer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.scorer-rank {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    min-width: 50px;
}

.scorer-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.scorer-info {
    flex: 1;
}

.scorer-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.scorer-team {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.scorer-goals {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success-color);
}

/* ==================== REGISTRATION FORM ==================== */

.registration-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ramadan-stars {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

.ramadan-stars i {
    margin: 0 20px;
    animation: twinkle 2s infinite;
}

.registration-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.registration-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.05) 20px
        );
}

.header-decoration {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.8;
    animation: glow 3s ease-in-out infinite;
}

.registration-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.registration-header p {
    font-size: 20px;
    margin: 10px 0;
    position: relative;
}

.stadium-name {
    font-size: 1.5rem !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-top: 1rem !important;
}

.registration-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.form-group label.required::after {
    content: ' *';
    color: var(--error-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-display {
    padding: 30px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-display:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
}

.image-preview {
    margin-top: 15px;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* Player Cards */

.player-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.player-card-header h3 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
}

.remove-player-btn {
    background: var(--error-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.remove-player-btn:hover {
    background: #d32f2f;
}

.player-photo-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    margin-top: 10px;
}

.add-player-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-player-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: rgba(255, 255, 255, 0.15);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

/* ==================== ADMIN STYLES ==================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header > i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-header p i {
    font-size: 1rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.error-message {
    background: #ffebee;
    color: var(--error-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* ==================== FOOTER ==================== */

.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--text-dark));
    color: white;
    text-align: center;
    padding: 2.5rem 1.25rem;
    margin-top: 4rem;
    border-top: 2px solid var(--primary-color);
    position: relative;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    color: white;
}

/* ==================== LOADING ==================== */

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 18px;
}

.loading i {
    font-size: 2rem;
    margin-left: 0.625rem;
    color: var(--primary-color);
}

/* ==================== APPROVALS SECTION ==================== */

.approvals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.approval-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.approval-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.approval-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.approval-header h3 {
    margin: 0;
    font-size: 20px;
}

.pending-badge {
    background: rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.approval-body {
    padding: 20px;
}

.approval-info p {
    margin: 10px 0;
    color: #ffffff;
    line-height: 1.8;
}

.approval-info strong {
    color: var(--text-light);
    margin-left: 10px;
}

.approval-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-approve,
.btn-reject {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-approve {
    background: var(--success-color);
    color: white;
}

.btn-approve:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-reject {
    background: var(--error-color);
    color: white;
}

.btn-reject:hover {
    background: #da190b;
    transform: translateY(-2px);
}

.badge {
    display: none;
    background: var(--error-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-right: 5px;
}

/* ==================== LOGIN CONTAINER ==================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d47a1 0%, #1976D2 50%, #1565C0 100%);
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 60px;
    color: var(--ramadan-green);
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-light);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.submit-btn {
    background: var(--ramadan-green);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.back-link,
.register-link {
    text-align: center;
    margin-top: 15px;
}

.back-link a,
.register-link a {
    color: var(--ramadan-green);
    text-decoration: none;
    font-weight: bold;
}

.back-link a:hover,
.register-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fee;
    color: var(--error-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}


/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .match-teams {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .main-nav {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .registration-container {
        padding: 10px;
        margin: 0;
    }
    
    .login-box {
        padding: 1.5rem;
        margin: 10px;
    }
    
    .registration-form {
        padding: 1.5rem;
    }
    
    .form-section h2 {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .teams-grid,
    .scorers-grid {
        grid-template-columns: 1fr;
    }
    
    .login-box {
        padding: 1.25rem;
    }
    
    .login-header > i {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .ramadan-banner {
        padding: 0.4rem 1rem;
        text-align: left;
    }
    
    .ramadan-toggle {
        display: block !important;
        position: static;
        transform: none;
    }
    
    .ramadan-content {
        display: none;
        margin-top: 0.5rem;
        text-align: center;
    }
    
    .ramadan-banner.expanded .ramadan-content {
        display: block;
    }
    
    .ramadan-banner .ramadan-icon {
        font-size: 1rem;
        margin: 0 0.5rem;
    }
    
    .ramadan-banner .ramadan-text {
        font-size: 0.85rem;
    }
    
    .ramadan-crescent {
        font-size: 2.5rem;
    }
    
    .form-section h2 {
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
}
