body {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            min-height: 100%;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            position: relative;
            overflow-x: hidden;
        }

        html {
            height: 100%;
        }

        /* Floating background elements */
        .bg-decoration {
            position: fixed;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            animation: float 20s infinite ease-in-out;
            z-index: 0;
        }

        .bg-decoration:nth-child(1) {
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .bg-decoration:nth-child(2) {
            top: 50%;
            right: 10%;
            animation-delay: 7s;
        }

        .bg-decoration:nth-child(3) {
            bottom: 10%;
            left: 30%;
            animation-delay: 14s;
        }

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


        /* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #667eea;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.nav-brand {
    text-align: center;
    margin-bottom: 1rem;
}

.nav-brand h1 {
    margin: 0;
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: 2rem;
    top: 1rem;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #667eea;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #333;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-brand {
        margin-bottom: 0.5rem;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-brand p {
        font-size: 0.8rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 0.5rem;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        text-align: center;
        padding: 1rem;
        width: 100%;
        border: 2px solid #f0f0f0;
    }
    
    .nav-link:hover {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.25rem;
    }
    
    .nav-brand p {
        font-size: 0.75rem;
    }
    
    .hamburger {
        width: 25px;
        height: 20px;
        right: 1rem;
    }
    
    .hamburger span {
        width: 25px;
        height: 2.5px;
    }
    
    .nav-links {
        width: 250px;
        padding: 4rem 1.5rem 1.5rem 1.5rem;
    }
}


        /* Container */
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 2rem;
            position: relative;
            z-index: 1;
        }

        /* Section Styles */
        .section {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .section.active {
            display: block;
        }

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

        /* Filter Bar */
        .filter-bar {
            background: white;
            padding: 1.5rem;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 2rem;
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: flex-end;
        }

        .filter-group {
            flex: 1;
            min-width: 200px;
        }

        .filter-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
            font-weight: 500;
            font-size: 0.9rem;
        }

        .filter-input {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: white;
        }

        .filter-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        /* Buttons */
        .btn-primary, .btn-secondary, .btn-submit {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .btn-secondary {
            background: #f0f0f0;
            color: #333;
        }

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

        .btn-submit {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 100%;
            margin-top: 1rem;
            padding: 1rem;
            font-size: 1.1rem;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

        /* Events Container */
        .events-container, .teams-container, .history-container {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 2rem;
        }

        .events-container h2, .teams-container h2, .history-container h2, .history-container h3 {
            margin-top: 0;
            color: #333;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .event-count, .team-count, .history-count {
            color: #666;
            margin-bottom: 1rem;
            font-size: 0.95rem;
        }

        .event-count span, .team-count span, .history-count span {
            font-weight: bold;
            color: #667eea;
        }

        /* Events Grid */
        .events-grid, .teams-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        /* Event Card */
        .event-card, .team-card {
            background: white;
            border: 2px solid #f0f0f0;
            border-radius: 12px;
            padding: 1.5rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .event-card::before, .team-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .event-card:hover, .team-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .event-card:hover::before, .team-card:hover::before {
            transform: scaleX(1);
        }

        .event-card h3, .team-card h3 {
            margin: 0 0 0.5rem 0;
            color: #333;
            font-size: 1.25rem;
        }

        .event-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .event-info {
            margin: 0.5rem 0;
            color: #666;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .event-info strong {
            color: #333;
            min-width: 80px;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 3rem 1rem;
            color: #999;
            grid-column: 1 / -1;
        }

        .empty-state p {
            font-size: 1.1rem;
        }

        /* Form Container */
        .form-container {
            background: white;
            padding: 2.5rem;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            max-width: 800px;
            margin: 0 auto;
        }

        .form-container h2 {
            margin-top: 0;
            color: #333;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.5rem;
        }

        .form-description {
            color: #666;
            margin-bottom: 2rem;
        }

        .form-section {
            margin-bottom: 2rem;
            padding-bottom: 2rem;
            border-bottom: 2px solid #f0f0f0;
        }

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

        .form-section h3 {
            margin-top: 0;
            margin-bottom: 1.5rem;
            color: #667eea;
            font-size: 1.2rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
            font-weight: 500;
            font-size: 0.95rem;
        }

        .form-input, .form-select, textarea {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        .form-input:focus, textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-input::placeholder, textarea::placeholder {
            color: #999;
        }

        textarea {
            resize: vertical;
            min-height: 100px;
        }

        .form-group small {
            display: block;
            margin-top: 0.5rem;
            color: #999;
            font-size: 0.85rem;
        }

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

        /* Status Message */
        .status-message {
            margin-top: 1.5rem;
            padding: 1rem;
            border-radius: 8px;
            text-align: center;
            font-weight: 500;
            display: none;
        }

        .status-message.success {
            background: #d4edda;
            color: #155724;
            border: 2px solid #c3e6cb;
            display: block;
        }

        .status-message.error {
            background: #f8d7da;
            color: #721c24;
            border: 2px solid #f5c6cb;
            display: block;
        }

        /* Admin Panel */
        .admin-container {
            background: white;
            padding: 2.5rem;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

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

        .admin-header h2 {
            margin: 0;
            color: #333;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .admin-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1.5rem;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .stat-card h3 {
            margin: 0;
            font-size: 2.5rem;
            font-weight: bold;
        }

        .stat-card p {
            margin: 0.5rem 0 0 0;
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .admin-section {
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: #f9f9f9;
            border-radius: 12px;
        }

        .admin-section h3 {
            margin-top: 0;
            color: #667eea;
        }

        .pending-list, .admin-events-list {
            display: grid;
            gap: 1rem;
        }

        .pending-item, .admin-event-item {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            border-left: 4px solid #667eea;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .pending-item h4, .admin-event-item h4 {
            margin: 0 0 0.5rem 0;
            color: #333;
        }

        .pending-item p, .admin-event-item p {
            margin: 0.25rem 0;
            color: #666;
            font-size: 0.9rem;
        }

        .admin-actions {
            margin-top: 1rem;
            display: flex;
            gap: 0.5rem;
        }

        .btn-approve, .btn-reject, .btn-edit, .btn-delete {
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-approve {
            background: #28a745;
            color: white;
        }

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

        .btn-reject, .btn-delete {
            background: #dc3545;
            color: white;
        }

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

        .btn-edit {
            background: #ffc107;
            color: #333;
        }

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

        /* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    padding-bottom: 50px;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    margin: auto;
}

/* Scrollbar สำหรับ Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

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

.close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    background: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close:hover {
    color: #333;
    transform: rotate(90deg);
    background: #f0f0f0;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 50px;
}

/* Event Detail Modal */
.event-detail {
    line-height: 1.6;
}

.event-detail-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.event-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-detail-section h4 {
    color: #667eea;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.event-detail-section p {
    margin: 0.5rem 0;
    color: #666;
    word-wrap: break-word;
}

.event-detail-section a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.event-detail-section a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.event-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    position: sticky;
    bottom: 0;
    background: white;
}

.event-actions button {
    flex: 1;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal.active {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: calc(100vh - 40px);
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
        padding-right: 50px;
    }
    
    .event-detail-section h4 {
        font-size: 1rem;
    }
    
    .close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
        max-height: calc(100vh - 20px);
    }
    
    .modal-content h2 {
        font-size: 1.25rem;
    }
    
    .event-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-actions button {
        width: 100%;
    }
}


        /* Team Card Specific */
        .team-card {
            text-align: center;
        }

        .team-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 1rem auto;
            border: 4px solid #667eea;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .team-name {
            font-size: 1.25rem;
            font-weight: bold;
            color: #333;
            margin: 0.5rem 0;
        }

        .team-province {
            color: #667eea;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .team-website {
            margin-top: 1rem;
        }

        .team-website a {
            color: #667eea;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .team-website a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

                /* Team Card - Compact Version */
                .team-card.compact {
                    max-width: 180px;
                    min-width: 150px;
                    padding: 1rem;
                }
        
                .team-avatar-link {
                    display: block;
                    text-decoration: none;
                    position: relative;
                }
        
                .team-avatar.clickable {
                    cursor: pointer;
                    transition: all 0.3s ease;
                    position: relative;
                }
        
                .team-avatar.clickable:hover {
                    transform: scale(1.1);
                    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
                }
        
                .team-avatar.clickable::after {
                    content: '🔗';
                    position: absolute;
                    bottom: 5px;
                    right: 5px;
                    background: rgba(102, 126, 234, 0.9);
                    color: white;
                    border-radius: 50%;
                    width: 25px;
                    height: 25px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 12px;
                    opacity: 0;
                    transition: opacity 0.3s ease;
                }
        
                .team-avatar.clickable:hover::after {
                    opacity: 1;
                }
        
                .team-name {
                    font-size: 1.1rem;
                    font-weight: bold;
                    color: #333;
                    margin: 0.75rem 0 0.25rem 0;
                    text-align: center;
                    word-wrap: break-word;
                }
        
                .team-province {
                    color: #667eea;
                    font-weight: 600;
                    font-size: 0.85rem;
                    text-align: center;
                }
        
                /* ปรับ Grid ให้พอดี */
                .teams-grid {
                    display: grid;
                    grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
                    gap: 1.5rem;
                    margin-top: 1.5rem;
                    justify-content: start;
                }
        
                /* Responsive สำหรับทีม */
                @media (max-width: 768px) {
                    .teams-grid {
                        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                        gap: 1rem;
                    }
        
                    .team-card.compact {
                        max-width: 100%;
                        min-width: 140px;
                    }
                }
        
                @media (max-width: 480px) {
                    .teams-grid {
                        grid-template-columns: repeat(2, 1fr);
                    }
        
                    .team-card.compact {
                        padding: 0.75rem;
                    }
        
                    .team-avatar {
                        width: 80px;
                        height: 80px;
                    }
        
                    .team-name {
                        font-size: 0.95rem;
                    }
        
                    .team-province {
                        font-size: 0.8rem;
                    }
                }

        /* Event Detail Modal */
        .event-detail {
            line-height: 1.6;
        }

        .event-detail-section {
            margin-bottom: 1.5rem;
        }

        .event-detail-section h4 {
            color: #667eea;
            margin: 0 0 0.5rem 0;
            font-size: 1rem;
        }

        .event-detail-section p {
            margin: 0.25rem 0;
            color: #666;
        }

        .event-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 2px solid #f0f0f0;
        }

        .event-actions button {
            flex: 1;
        }

        /* Calendar Styles */
        .calendar-container {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 2rem;
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .calendar-header h3 {
            margin: 0;
            color: #333;
        }

        .calendar-nav {
            display: flex;
            gap: 1rem;
        }

        .calendar-nav button {
            background: #667eea;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .calendar-nav button:hover {
            background: #764ba2;
            transform: translateY(-2px);
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 0.5rem;
        }

        .calendar-day-header {
            text-align: center;
            font-weight: bold;
            color: #667eea;
            padding: 0.5rem;
            font-size: 0.9rem;
        }

        .calendar-day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #f0f0f0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            font-weight: 500;
        }

        .calendar-day:hover {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.1);
        }

        .calendar-day.has-event {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            border-color: transparent;
        }

        .calendar-day.has-event::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 50%;
            transform: translateX(-50%);
            width: 6px;
            height: 6px;
            background: white;
            border-radius: 50%;
        }

        .calendar-day.has-event:hover {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            font-weight: 600;
        }

        .calendar-day.selected {
            border-color: #4ecdc4;
            background: rgba(78, 205, 196, 0.3);
            font-weight: bold;
        }

        .calendar-day.other-month {
            color: #ccc;
        }

        .calendar-day.today {
            border-color: #ffc107;
            font-weight: bold;
            color: #ffc107;
        }

        /* Event Count Badge */
        .event-count-badge {
            position: absolute;
            top: 2px;
            right: 2px;
            background: #ff6b6b;
            color: white;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 10px;
            font-weight: bold;
        }

        /* Loading Animation */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(102, 126, 234, 0.3);
            border-radius: 50%;
            border-top-color: #667eea;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                flex-direction: column;
                gap: 0.5rem;
            }

            .nav-link {
                text-align: center;
                padding: 0.75rem;
            }

            .filter-bar {
                flex-direction: column;
            }

            .filter-group {
                width: 100%;
            }

            .btn-primary, .btn-secondary {
                width: 100%;
            }

            .events-grid, .teams-grid {
                grid-template-columns: 1fr;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .admin-stats {
                grid-template-columns: 1fr;
            }

            .calendar-grid {
                gap: 0.25rem;
            }

            .calendar-day {
                font-size: 0.85rem;
            }

            .modal-content {
                width: 95%;
                padding: 1.5rem;
            }

            .container {
                padding: 0 1rem;
            }

            .form-container, .admin-container, .events-container, .teams-container {
                padding: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .nav-brand h1 {
                font-size: 1.5rem;
            }

            .nav-brand p {
                font-size: 0.8rem;
            }

            .event-card, .team-card {
                padding: 1rem;
            }

            .calendar-day-header {
                font-size: 0.75rem;
                padding: 0.25rem;
            }

            .calendar-day {
                font-size: 0.75rem;
            }
        }

        /* Print Styles */
        @media print {
            .navbar, .filter-bar, .btn-primary, .btn-secondary, .btn-submit, .admin-actions {
                display: none;
            }

            .section {
                display: block !important;
            }

            .event-card, .team-card {
                break-inside: avoid;
                box-shadow: none;
                border: 1px solid #ddd;
            }

            body {
                background: white;
            }

            .bg-decoration {
                display: none;
            }
        }

        /* Accessibility */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }

        /* Focus Visible */
        *:focus-visible {
            outline: 3px solid #667eea;
            outline-offset: 2px;
        }

        /* Smooth Scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #764ba2;
        }
/* Admin Event Item */
.admin-event-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.admin-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-event-header h4 {
    margin: 0;
    color: #333;
    flex: 1;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Admin Events List */
.admin-events-list {
    max-height: 600px;
    overflow-y: auto;
}

.admin-events-list::-webkit-scrollbar {
    width: 8px;
}

.admin-events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.admin-events-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.admin-events-list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-actions button {
        width: 100%;
    }
}

/* Edit Modal */
.edit-modal {
    max-width: 800px;
    max-height: 90vh;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.modal-actions button {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
}

.modal-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .edit-modal {
        max-width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}
