/**
 * Mashrhino Sports Academy CMS
 * Main Stylesheet - Fully Responsive with Light Grey Theme
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Default color scheme - Light Grey & Green */
    --primary-color: #2a5c2a;        /* Green */
    --primary-dark: #1e451e;          /* Dark Green */
    --primary-light: #3a7a3a;          /* Light Green */
    --primary-alpha: rgba(42, 92, 42, 0.1);
    
    /* Secondary colors - Light Grey */
    --secondary-color: #f0f0f0;        /* Light Grey */
    --secondary-dark: #d8d8d8;          /* Medium Grey */
    --secondary-light: #f8f8f8;         /* Very Light Grey */
    --secondary-alpha: rgba(240, 240, 240, 0.5);
    
    /* Text colors */
    --text-dark: #2e3b2e;               /* Dark Green-Grey */
    --text-light: #4a5a4a;               /* Medium Green-Grey */
    --text-muted: #7a8a7a;               /* Muted Green-Grey */
    
    /* Background colors */
    --bg-light: #f5f5f5;                 /* Light Grey Background */
    --bg-white: #ffffff;                  /* White */
    --bg-grey: #e8e8e8;                   /* Medium Grey */
    --bg-dark: #2e3b2e;                   /* Dark Green-Grey for footer */
    
    /* Border and shadow */
    --border-color: #dddddd;               /* Light Grey Border */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Spacing variables */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 12px;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text-dark); }
h2 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: var(--spacing-lg); color: var(--text-dark); }
h3 { font-size: 1rem; font-weight: 500; color: var(--text-dark); }
h4 { font-size: 0.9rem; font-weight: 500; color: var(--text-dark); }
p { font-size: 0.75rem; color: var(--text-light); }

/* ===== COLORS ===== */
.bg-primary { background-color: var(--primary-color); color: white; }
.bg-secondary { background-color: var(--secondary-color); color: var(--text-dark); }
.bg-grey { background-color: var(--bg-grey); }
.bg-light { background-color: var(--bg-light); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-light); }
.text-muted { color: var(--text-muted); }

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 92, 42, 0.2);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.65rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.65rem;
    transition: var(--transition);
}
.btn-danger:hover {
    background: #b02a37;
}

/* ===== FLOATING NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 600px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}
.navbar:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}
.logo {
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.logo img {
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}
.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--primary-color);
    background: var(--primary-alpha);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--spacing-xs);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-alpha);
}
.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-image {
    transform: scale(1.05);
}
.card-content {
    padding: var(--spacing-md);
    flex: 1;
    background: var(--bg-white);
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), var(--hero-image) center/cover;
    border-radius: 0;
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    animation: heroZoom 8s infinite alternate ease-in-out;
    width: 100%;
}
@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}
.hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    max-width: 600px;
    animation: slideUp 1s ease-out;
    padding-right: var(--spacing-lg);
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    color: white;
}
.hero-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

/* ===== STATS ===== */
.stat-card {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
}
.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-sm);
    width: 100%;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===== COACH CARD ===== */
.coach-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
}
.testimonial-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: var(--spacing-sm);
    border: 2px solid var(--primary-color);
}

/* ===== EVENT CARD ===== */
.event-card {
    position: relative;
    background: var(--bg-white);
}
.event-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bg-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.65rem;
    box-shadow: var(--shadow-sm);
    z-index: 1;
    border: 1px solid var(--border-color);
}

/* ===== DASHBOARD ===== */
.dashboard {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-lg);
    margin-top: 80px;
    width: 100%;
}
.sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border: 1px solid var(--border-color);
}
.sidebar-menu {
    list-style: none;
}
.sidebar-menu li {
    margin-bottom: var(--spacing-xs);
}
.sidebar-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 0.75rem;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-menu a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}
.sidebar-menu a.active {
    background: var(--primary-color);
    color: white;
}
.sidebar-menu i {
    width: 20px;
    margin-right: var(--spacing-sm);
}

/* ===== TABLES ===== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
    min-width: 600px;
    background: var(--bg-white);
}
.table th {
    text-align: left;
    padding: var(--spacing-sm);
    background: var(--secondary-color);
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}
.table td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.table tr:hover {
    background: var(--secondary-light);
}
.table td img {
    border-radius: 4px;
    object-fit: cover;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--spacing-md);
}
.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.7rem;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-alpha);
    background: var(--bg-white);
}
.form-control-color {
    width: 50px;
    height: 30px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    background: var(--bg-white);
}
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: #e0e0e0;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
    font-size: 0.7rem;
    width: 100%;
    border-top: 1px solid var(--border-color);
}
.footer a { 
    color: #c8e6c9; 
    text-decoration: none; 
    transition: color 0.2s;
    font-size: 0.7rem;
}
.footer a:hover { color: white; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}
.footer h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

/* ===== ADMIN FOOTER LINK ===== */
.admin-footer-link {
    margin-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.65rem;
    opacity: 0.6;
}
.admin-footer-link a {
    color: #a0b0a0;
    text-decoration: none;
}
.admin-footer-link a:hover {
    color: white;
}

/* ===== BADGES ===== */
.badge {
    background: var(--primary-alpha);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}
.badge-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}
.badge-warning {
    background: #ffc10720;
    color: #856404;
}
.badge-success {
    background: #28a74520;
    color: #155724;
}
.badge-danger {
    background: #dc354520;
    color: #dc3545;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: var(--spacing-md);
}
.modal.active { display: flex; }
.modal-content {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.5s ease forwards;
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.5s ease forwards;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.stagger-children > * {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }

.hover-lift {
    transition: transform 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
}

/* ===== COLOR PICKER PREVIEW ===== */
.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: inline-block;
    margin-left: var(--spacing-sm);
    vertical-align: middle;
}

/* ===== LOGO PREVIEW ===== */
.logo-preview {
    max-width: 100px;
    max-height: 50px;
    margin-top: var(--spacing-sm);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    padding: 2px;
}

/* ===== FAVICON PREVIEW ===== */
.favicon-preview {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    object-fit: cover;
    background: var(--bg-white);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-xl);
}
.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}
.newsletter-form .form-control {
    flex: 1;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.contact-grid {
    display: flex;
    padding: 0;
    overflow: hidden;
}
.contact-info {
    flex: 1;
    padding: var(--spacing-lg);
    background: var(--bg-white);
}
.contact-form {
    flex: 1;
    background: var(--secondary-color);
    padding: var(--spacing-lg);
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}
.social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    background: var(--secondary-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}
.social-icons a:hover {
    transform: translateY(-2px);
    color: var(--primary-dark);
    background: var(--secondary-dark);
}

/* ===== MAINTENANCE MODE NOTICE ===== */
.maintenance-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffc107;
    color: #000;
    text-align: center;
    padding: var(--spacing-sm);
    z-index: 2000;
    font-size: 0.75rem;
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: var(--spacing-xl) 0;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Tablets (992px and below) */
@media (max-width: 992px) {
    :root {
        --container-padding: 16px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.3rem; }
    
    .dashboard {
        grid-template-columns: 180px 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 20px;
        --spacing-xl: 28px;
        --container-padding: 12px;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 0.95rem; }
    
    /* Navigation */
    .navbar {
        min-width: 90%;
        top: 10px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-sm) 0;
        border-radius: 12px;
        margin-top: var(--spacing-sm);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: var(--spacing-sm) var(--spacing-md);
        width: 100%;
        text-align: center;
        border-radius: 0;
    }
    
    .nav-links a:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    
    .nav-links a:last-child {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
    
    .logo img {
        height: 24px;
    }
    
    /* Hero */
    .hero {
        height: 400px;
    }
    
    .hero-content {
        left: var(--spacing-lg);
        bottom: var(--spacing-lg);
        max-width: 90%;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
    }
    
    /* Stats grid */
    .grid[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Dashboard */
    .dashboard {
        grid-template-columns: 1fr;
        margin-top: 70px;
    }
    
    .sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        margin-bottom: var(--spacing-md);
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .sidebar-menu li {
        flex: 1 1 auto;
        margin-bottom: 0;
    }
    
    .sidebar-menu a {
        white-space: normal;
        text-align: center;
        padding: var(--spacing-sm);
        font-size: 0.7rem;
    }
    
    .sidebar-menu i {
        margin-right: 0;
        display: block;
        margin-bottom: var(--spacing-xs);
        width: auto;
    }
    
    /* Contact section */
    .contact-grid {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        padding: var(--spacing-md);
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .newsletter-form .btn-primary {
        width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    /* Modal */
    .modal-content {
        padding: var(--spacing-md);
        max-width: 90%;
    }
}

/* Mobile phones (576px and below) */
@media (max-width: 576px) {
    :root {
        --spacing-md: 12px;
        --spacing-lg: 16px;
        --spacing-xl: 24px;
    }
    
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.1rem; margin-bottom: var(--spacing-md); }
    h3 { font-size: 0.9rem; }
    p { font-size: 0.7rem; }
    
    /* Navigation */
    .navbar {
        min-width: 95%;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .logo {
        font-size: 0.75rem;
    }
    
    .logo img {
        height: 20px;
        max-width: 80px;
    }
    
    /* Hero */
    .hero {
        height: 300px;
    }
    
    .hero-content {
        left: var(--spacing-md);
        bottom: var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-content p {
        font-size: 0.7rem;
        margin-bottom: var(--spacing-md);
    }
    
    .btn-primary {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.65rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    /* Cards */
    .card-image,
    .coach-image {
        height: 140px;
    }
    
    .card-content {
        padding: var(--spacing-sm);
    }
    
    /* Grid */
    .grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }
    
    /* Tables */
    .table {
        font-size: 0.65rem;
    }
    
    .table th,
    .table td {
        padding: var(--spacing-xs);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer h4 {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Forms */
    .form-group {
        margin-bottom: var(--spacing-sm);
    }
    
    .form-control {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.65rem;
    }
    
    /* Dashboard */
    .sidebar-menu {
        flex-direction: column;
    }
    
    .sidebar-menu li {
        flex: none;
    }
    
    .sidebar-menu a {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        text-align: left;
    }
    
    .sidebar-menu i {
        display: inline-block;
        margin-bottom: 0;
        width: 16px;
    }
    
    /* Settings grid */
    .grid[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Social icons */
    .social-icons {
        justify-content: center;
    }
    
    /* Color picker */
    .color-preview {
        width: 24px;
        height: 24px;
    }
    
    /* Modal */
    .modal-content {
        padding: var(--spacing-sm);
    }
    
    .modal-content h2 {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }
}

/* Small phones (375px and below) */
@media (max-width: 375px) {
    h1 { font-size: 1.2rem; }
    h2 { font-size: 1rem; }
    
    .navbar {
        min-width: 98%;
    }
    
    .logo {
        font-size: 0.7rem;
    }
    
    .logo img {
        height: 18px;
        max-width: 60px;
    }
    
    .hero {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .card-image,
    .coach-image {
        height: 120px;
    }
    
    .btn-primary,
    .btn-outline,
    .btn-danger {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.6rem;
    }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 250px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .sidebar {
        max-height: 80vh;
    }
}

/* High-resolution screens */
@media (min-width: 1600px) {
    :root {
        --container-max: 1400px;
        --container-padding: 30px;
    }
    
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    p { font-size: 0.9rem; }
    
    .card-image {
        height: 200px;
    }
    
    .coach-image {
        height: 260px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn-primary,
    .btn-outline,
    .btn-danger,
    .modal,
    .admin-footer-link {
        display: none !important;
    }
    
    body {
        background: white;
        font-size: 12pt;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}