/* Custom CSS for MiniSoccer Arena */
* {
    font-family: 'Poppins', sans-serif;
}

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

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInDelay 1s ease-out 0.3s both;
}

.animate-bounce-in {
    animation: bounceIn 1.2s ease-out 0.6s both;
}

/* Slider styles */
.slider-container {
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
    visibility: visible;
    display: flex;
}

/* Background image styling for proper proportions */
.slide .absolute.inset-0 {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Ensure first slide is visible on page load */
.slide:first-child {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    display: flex !important;
}

/* Override any Tailwind classes that might interfere */
.slider-container .slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Ensure first slide is visible on page load */
.slide:first-child {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    display: flex;
}

/* Slider navigation styling */

/* Dark purple */

/* Simple animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo styling */
.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Navigation logo specific */
nav .logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Footer logo specific */
footer .logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

footer .logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Section logos removed - only banner logos remain */

/* Admin Dashboard Styles */
.admin-sidebar {
    transition: transform 0.3s ease;
}

.nav-item {
    transition: all 0.2s ease;
}

.nav-item:hover {
    transform: translateX(4px);
}

.nav-item.active {
    background-color: #f0fdf4;
    color: #059669;
    border-left: 4px solid #10b981;
}

.admin-card {
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

.quick-action-btn {
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: scale(1.05);
}

/* Mobile responsive for admin */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }
}

/* Avatar with Initials */
.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    text-transform: uppercase;
    user-select: none;
}

.avatar-initials.sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
}

.avatar-initials.md {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
}

.avatar-initials.lg {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
}

/* Color variations for avatars */
.avatar-blue {
    background-color: #2563eb;
    color: white;
}

.avatar-green {
    background-color: #10b981;
    color: white;
}

.avatar-purple {
    background-color: #7c3aed;
    color: white;
}

.avatar-red {
    background-color: #dc2626;
    color: white;
}

.avatar-orange {
    background-color: #ea580c;
    color: white;
}

.avatar-pink {
    background-color: #db2777;
    color: white;
}

.avatar-indigo {
    background-color: #4f46e5;
    color: white;
}

/* Form Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
textarea,
select {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    border-radius: 0.5rem !important;
}

/* Smaller form inputs */
.form-input-sm {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

/* Form labels */
label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
}

/* Form buttons */
button[type="submit"],
button[type="button"] {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.875rem !important;
    min-width: 120px !important;
    max-width: 200px !important;
}

/* Form button containers */
.form-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.form-buttons button {
    flex: 0 0 auto !important;
    width: auto !important;
}

/* SweetAlert2 Small Size */
.swal2-popup-small {
    font-size: 0.875rem !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    max-width: 320px !important;
}

.swal2-title-small {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.375rem !important;
}

.swal2-content-small {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    margin-bottom: 1rem !important;
}

.swal2-confirm-small {
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    min-height: 36px !important;
}

.swal2-actions {
    margin-top: 0.75rem !important;
    gap: 0.75rem !important;
}

/* Hero section logos */
.slide .logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Custom hover effects */
.hover-lift:hover {
    transform: translateY(-8px);
    transition: transform 0.3s ease;
}

/* Gradient backgrounds */
.gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* WhatsApp button pulse animation */
.whatsapp-float {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Modal animations */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Map container styles */
#map {
    border-radius: 1rem;
    overflow: hidden;
}

/* Custom leaflet popup styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 15px;
    font-family: 'Poppins', sans-serif;
}

/* Loading animation for images */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide h1 {
        font-size: 2.5rem !important;
    }

    .slide p {
        font-size: 1.1rem !important;
    }

    /* Logo responsive adjustments */
    nav .logo {
        height: 3rem;
    }

    footer .logo {
        height: 2.5rem;
    }

    /* Section logos removed */

    .slide .logo {
        height: 6rem;
    }

    /* Navigation removed - only arrows remain */
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Button hover effects */
.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hover:hover::before {
    left: 100%;
}

/* Facility cards animation */
.facility-card {
    transition: all 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation scroll effect */
.nav-scroll {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}