/**
 * Shivajinagar Cricket Academy - Modern Stylesheet
 * Redesigned with Deep Blue / Sky Blue / Soft Orange Color Scheme
 */

/* ========== CSS Variables ========== */
:root {
    /* Primary Colors - Deep Blue Theme */
    --primary-blue: #8a2693;
    --secondary-blue: #38BDF8;
    --accent-orange: #d44f2a;
    --bg-light: #F8FAFC;
    
    /* Supporting Colors */
    --white: #FFFFFF;
    --gray-light: #E5E7EB;
    --gray: #9CA3AF;
    --gray-dark: #4B5563;
    --text-dark: #111827;
    --text-gray: #6B7280;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========== Header ========== */
.main-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-blue);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo Section - Left */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    order: 2;
    flex: 1;
    justify-content: center;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    border: 4px solid #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-circle:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-inner-small {
    width: 48px;
    height: 48px;
    position: relative;
}

.logo-shield-small {
    width: 100%;
    height: 100%;
    background: #8B0000;
    border: 2px solid #D4AF37;
    border-radius: 12px 12px 6px 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 6px;
}

.logo-shield-small .fa-crown {
    color: #D4AF37;
    font-size: 12px;
    margin-top: 2px;
}

.logo-shield-small .fa-baseball-bat-ball {
    color: #D4AF37;
    font-size: 10px;
}

.logo-stumps-small {
    display: flex;
    gap: 3px;
    margin-bottom: 3px;
}

.stump-small {
    width: 2px;
    height: 10px;
    background: #D4AF37;
    border-radius: 1px;
    position: relative;
}

.stump-small::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 4px;
    height: 1px;
    background: #D4AF37;
    border-radius: 1px;
}

.logo-text h1 {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
}

/* Navigation - Center */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    order: 3;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-menu li a i {
    margin-right: 6px;
    font-size: 14px;
}

/* Header Actions - Right */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
    order: 4;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #1E40AF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-secondary:hover {
    background: #F97316;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-gold:hover {
    background: #F97316;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Admin Mobile Toggle Button */
.admin-mobile-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.admin-mobile-toggle:hover {
    background: var(--secondary-blue);
    transform: scale(1.05);
}

.admin-mobile-toggle:active {
    transform: scale(0.95);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    order: 1;
}

.mobile-menu-toggle:hover {
    background: #1E40AF;
}

/* ========== Hero Section ========== */
.hero-section {
    background: var(--bg-light);
    padding: 60px 0;
    margin: 40px 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .hero-subtitle {
    font-size: 20px;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-content .hero-subtitle::before {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--accent-orange);
    display: block;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========== Main Layout ========== */
.main-wrapper {
    min-height: calc(100vh - 200px);
}

.content-area {
    padding: 40px 0;
}

/* ========== Section Styles ========== */
.section {
    margin: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    border-radius: 2px;
}

/* ========== Quick Actions ========== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.action-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.action-card i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.action-card:hover i {
    transform: scale(1.15) rotate(5deg);
}

.action-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

/* ========== About Section ========== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 50px 0;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 800;
}

.about-content p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ========== Events Section ========== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.event-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.event-card i {
    font-size: 56px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.event-card:hover i {
    transform: scale(1.15) rotate(10deg);
}

.event-card h3 {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.event-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ========== Gallery ========== */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 1;
    border: 3px solid var(--gray-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

/* ========== Video Gallery ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-light);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    background: var(--gray-dark);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(251, 146, 60, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.video-play-btn:hover {
    background: var(--accent-orange);
    transform: translate(-50%, -50%) scale(1.15);
}

.video-play-btn i {
    font-size: 28px;
    color: var(--white);
    margin-left: 4px;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    color: var(--text-dark);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.video-info p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== Forms ========== */
.form-section {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-light);
    max-width: 800px;
    margin: 50px auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: var(--primary-blue);
    color: var(--white);
    padding: 14px 40px;
    font-size: 16px;
}

.btn-submit:hover {
    background: #1E40AF;
    color: var(--white);
}

/* ========== Admission CTA ========== */
.admission-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 50px 40px;
    color: var(--white);
    text-align: center;
    margin: 60px 0;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.admission-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.1) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

.admission-cta h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--white);
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.admission-cta .form-section {
    background: rgba(255, 255, 255, 0.98);
    margin: 30px auto 0;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.admission-cta .form-group label {
    color: var(--primary-blue);
}

/* ========== Contact Section ========== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 50px 0;
}

.contact-info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-light);
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.contact-info-box h3 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 800;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-gray);
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-detail:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.contact-detail i {
    color: var(--primary-blue);
    font-size: 20px;
    width: 30px;
}

.map-container {
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--accent-orange);
    box-shadow: var(--shadow-lg);
    margin-top: 20px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    background: var(--bg-light);
    border: 3px dashed var(--gray-light);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    margin-top: 20px;
}

.map-placeholder i {
    font-size: 64px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    opacity: 0.5;
}

.map-placeholder p {
    color: var(--text-gray);
    font-size: 16px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== Footer ========== */
.main-footer {
    background: linear-gradient(135deg, var(--primary-blue), #1E40AF);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 70px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-orange);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 800;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

.footer-section p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-section p i {
    margin-right: 10px;
    color: var(--accent-orange);
    font-size: 16px;
}

.founder-credit {
    color: var(--accent-orange);
    font-weight: 600;
    margin-top: 15px;
    font-size: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* ========== Alert Messages ========== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
    box-shadow: var(--shadow);
    animation: slideIn 0.4s ease-out;
}

.alert-success {
    background: #D1FAE5;
    border-color: #10B981;
    color: #065F46;
}

.alert-error {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #991B1B;
}

.alert-info {
    background: #DBEAFE;
    border-color: #3B82F6;
    color: #1E40AF;
}

/* ========== Login Page ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.1) 0%, transparent 70%);
    animation: pulse 6s infinite;
}

.login-container {
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 100%;
    border: 3px solid var(--accent-orange);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: var(--primary-blue);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 900;
}

.login-header p {
    color: var(--text-gray);
    font-size: 15px;
}

.role-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 0;
}

.role-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 13px;
}

.role-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--accent-orange);
}

.role-tab:hover {
    color: var(--primary-blue);
}

/* ========== Admin Panel Styles ========== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-light);
    position: relative;
}

.admin-sidebar {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(180deg, var(--primary-blue), #1E40AF);
    padding: 0;
    box-shadow: var(--shadow-xl);
    position: relative;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 100;
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: #1E40AF;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 3px;
}

.admin-sidebar-header {
    padding: 25px 20px;
    border-bottom: 3px solid var(--accent-orange);
    background: rgba(0,0,0,0.2);
}

.admin-sidebar-header h2 {
    color: var(--accent-orange);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 6px;
    text-align: center;
}

.admin-sidebar-header p {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: calc(100% - 280px);
    min-width: 0;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: var(--bg-light);
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.admin-header {
    background: var(--white);
    padding: 20px 30px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid var(--gray-light);
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    color: var(--primary-blue);
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header h1 i {
    color: var(--accent-orange);
}

.admin-header > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-header span {
    color: var(--text-gray);
    font-weight: 600;
}

.admin-menu {
    list-style: none;
    padding: 15px 0;
}

.admin-menu li {
    margin: 2px 0;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--white);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.admin-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-orange);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.admin-menu li a:hover::before,
.admin-menu li a.active::before {
    transform: scaleY(1);
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateX(5px);
}

.admin-menu li a i {
    margin-right: 12px;
    width: 20px;
    font-size: 16px;
}

.admin-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    border: 2px solid var(--gray-light);
    transition: all 0.3s ease;
}

.admin-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.admin-card h2 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 900;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-orange);
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
}

table th {
    background: linear-gradient(135deg, var(--primary-blue), #1E40AF);
    color: var(--white);
    font-weight: 700;
    padding: 15px;
    text-align: left;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--accent-orange);
}

table th:first-child {
    border-top-left-radius: 8px;
}

table th:last-child {
    border-top-right-radius: 8px;
}

table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
    color: var(--text-dark);
}

table tbody tr {
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background: var(--bg-light);
}

table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 600;
    margin: 0 3px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-danger {
    background: #EF4444;
    color: var(--white);
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: #10B981;
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.2) 0%, transparent 70%);
    animation: pulse 3s infinite;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-orange);
}

.stat-card h3 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--accent-orange);
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.stat-card p {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== Admin Body ========== */
body.admin-body {
    background: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* ========== Empty State ========== */
table .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
    font-size: 14px;
    font-style: italic;
}

.empty-state i {
    font-size: 56px;
    color: var(--gray-light);
    margin-bottom: 15px;
    opacity: 0.5;
    display: block;
}

/* ========== Status Badges ========== */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.approved,
.status-badge.success,
.status-badge.active {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.rejected,
.status-badge.error,
.status-badge.inactive {
    background: #FEE2E2;
    color: #991B1B;
}

.status-badge.pending,
.status-badge.new {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.read {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-badge.replied {
    background: #D1FAE5;
    color: #065F46;
}

/* ========== Sidebar (Old - for backward compatibility) ========== */
.sidebar {
    display: none; /* Hide old sidebar in new design */
}

/* ========== Responsive Design ========== */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: block;
        order: 1;
    }

    .logo-section {
        order: 2;
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .logo-text h1 {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-text p {
        display: none;
    }

    .logo-circle {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }

    .logo-inner-small {
        width: 35px;
        height: 35px;
    }

    .main-nav {
        display: none;
        order: 5;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        z-index: 1000;
        border-top: 2px solid var(--primary-blue);
        margin-top: 0;
    }

    .main-nav.active {
        display: block;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        border-right: none;
        border-bottom: 1px solid var(--gray-light);
        border-radius: 0;
        padding: 15px 20px;
    }

    .header-actions {
        order: 3;
        gap: 8px;
    }

    .header-actions .btn {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content .hero-subtitle {
        font-size: 16px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
        padding-bottom: 10px;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .quick-actions {
        gap: 20px;
    }

    .action-card {
        padding: 25px;
    }

    .action-card i {
        font-size: 40px;
    }

    .action-card h3 {
        font-size: 18px;
    }

    .event-card {
        padding: 25px;
    }

    .event-card i {
        font-size: 48px;
    }

    .event-card h3 {
        font-size: 20px;
    }

    .about-content h2 {
        font-size: 26px;
    }

    .about-content p {
        font-size: 15px;
    }

    .form-section {
        padding: 25px 20px;
    }

    .login-container {
        padding: 30px 20px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .hero-wrapper {
        gap: 30px;
    }

    .about-section {
        gap: 25px;
    }

    .contact-section {
        gap: 25px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        width: 280px;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .admin-main {
        width: 100% !important;
        margin-left: 0;
    }
    
    .admin-content {
        width: 100%;
        padding: 20px 15px;
        padding-top: 70px;
        box-sizing: border-box;
    }
    
    .admin-wrapper {
        position: relative;
        overflow-x: hidden;
    }
    
    .admin-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header h1 {
        font-size: 22px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .admin-header > div {
        width: 100%;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    /* Mobile menu button for admin */
    .admin-mobile-toggle {
        display: block !important;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: var(--primary-blue);
        color: white;
        border: none;
        padding: 12px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 20px;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }
    
    .admin-mobile-toggle:hover {
        background: var(--accent-orange);
        transform: scale(1.05);
    }
    
    .admin-mobile-toggle:active {
        transform: scale(0.95);
    }
    
    /* Overlay when sidebar is open */
    .admin-sidebar.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        width: calc(100% - 280px);
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        pointer-events: none;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .player-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Form responsive for medium screens */
    .form-section {
        padding: 35px 30px;
        margin: 45px auto;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 35px;
    }
    
    /* Hero section medium screens */
    .hero-wrapper {
        gap: 50px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    /* About section medium screens */
    .about-section {
        gap: 45px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .admin-header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .admin-header h1 {
        font-size: 20px;
    }
    
    .admin-content {
        padding: 15px 10px;
        padding-top: 70px;
    }
    
    .video-player-container {
        padding: 0 10px;
    }
    
    .video-info-section {
        padding: 20px 15px;
    }
    
    .video-info-section h1 {
        font-size: 24px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .table-responsive {
        margin: 0 -10px;
    }
    
    table {
        font-size: 13px;
    }
    
    /* Form responsive fixes for tablet */
    .form-section {
        padding: 30px 25px;
        margin: 40px auto;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Hero section tablet */
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    /* About section tablet */
    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Contact section tablet */
    .contact-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    /* Admission CTA tablet */
    .admission-cta {
        padding: 40px 30px;
    }
    
    .admission-cta h2 {
        font-size: 30px;
    }
    
    /* Quick actions tablet */
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    /* Events grid tablet */
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    /* Gallery grid tablet */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Video grid tablet */
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 10px 0;
    }

    .logo-text h1 {
        font-size: 14px;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
    }

    .logo-inner-small {
        width: 30px;
        height: 30px;
    }

    .header-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .header-actions .btn-secondary {
        display: none; /* Hide Register button on very small screens */
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .admin-card {
        padding: 20px;
    }

    table {
        font-size: 13px;
    }

    table th,
    table td {
        padding: 10px 8px;
    }

    .hero-content h1 {
        font-size: 28px;
    }
    
    /* Form responsive fixes */
    .form-section {
        padding: 25px 20px;
        margin: 30px auto;
        border-radius: 12px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .btn-submit {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
        padding-bottom: 10px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .content-area {
        padding: 20px 0;
    }
    
    /* Hero section mobile */
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    /* About section mobile */
    .about-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    /* Contact section mobile */
    .contact-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-box {
        padding: 25px 20px;
    }
    
    .contact-info-box h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    /* Admission CTA mobile */
    .admission-cta {
        padding: 30px 20px;
        margin: 40px 0;
        border-radius: 16px;
    }
    
    .admission-cta h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .admission-cta .form-section {
        padding: 25px 20px;
        margin: 20px auto 0;
    }
    
    /* Action cards mobile */
    .action-card {
        padding: 25px 20px;
    }
    
    .action-card i {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .action-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* Event cards mobile */
    .event-card {
        padding: 25px 20px;
    }
    
    .event-card i {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .event-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 22px;
        padding-bottom: 8px;
    }

    .coaches-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-wrapper {
        gap: 20px;
    }

    .hero-image {
        order: 1;
    }

    .hero-content {
        order: 2;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .gallery-header .btn {
        width: 100%;
    }

    .admission-cta {
        padding: 30px 20px;
    }

    .admission-cta h2 {
        font-size: 24px;
    }

    .contact-logo-section {
        margin: 20px 0 30px;
    }

    .logo-circle-large {
        width: 150px;
        height: 150px;
    }

    .logo-inner {
        width: 120px;
        height: 120px;
    }

    .contact-info-box,
    .form-section {
        padding: 20px;
    }

    .video-player-wrapper {
        padding-bottom: 56.25%;
    }

    .video-info-section {
        padding: 20px;
    }

    .video-info-section h1 {
        font-size: 24px;
    }
    
    /* Additional mobile fixes for alignment and spacing */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    
    .main-nav.active {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu li a {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* Fix for admin cards stacking */
    .admin-card + .admin-card {
        margin-top: 15px;
    }
    
    /* Fix for form inputs not overlapping */
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group input[type="text"] {
        -webkit-appearance: none;
        -moz-appearance: textfield;
    }
    
    /* Prevent text zoom on iOS */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important;
    }
    
    /* Fix button touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Fix for table overflow */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    /* Fix for image scaling */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Fix for iframe scaling */
    iframe {
        max-width: 100%;
    }
    
    /* Ensure proper spacing between sections */
    .section {
        margin: 40px 0;
    }
    
    /* Fix for card spacing */
    .action-card,
    .event-card {
        margin-bottom: 20px;
    }
    
    /* Alert message responsive */
    .alert {
        padding: 15px 20px;
        font-size: 14px;
        margin-bottom: 20px;
        word-wrap: break-word;
    }
    
    /* Fix for small text readability */
    small {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* ========== Modal Styles ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.close {
    color: var(--gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: var(--text-dark);
    text-decoration: none;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}