/* CSS Styles Related to index.php */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #374151;
}

* {
    transition: all 0.3s ease;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-banner .hero-content h1 {
    text-align: center;
    font-size: 40px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.card-image-container {
    position: relative;
    height: 12rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.card-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    /* filter: blur(8px); */
    z-index: 1;
}

.card-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(68, 119, 239, 0.5) 0%, rgba(72, 151, 236, 0.5) 100%);
    z-index: 2;
}

.card-icon {
    position: absolute;
    z-index: 3;
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: none;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
    text-decoration: none;
}

/* Navbar Styles */
.navbar {
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.nav-item{
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.navbar .navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.3s ease;
    /* margin-right: 10px; */
    margin-left: 35px;
}

.nav-link {
    font-weight: 200;
    color: var(--dark-color) !important;
    margin: 0 3px;
    border-radius: 6px;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.nav-link:hover {
    background: var(--light-color);
    color: var(--primary-color) !important;
}
/* Ensure proper spacing for mobile menu */
    .offcanvas-body {
        padding: 1.5rem;
    }
    
    .user-menu-mobile {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid #dee2e6;
    }
    
    /* Hide mobile toggle on desktop */
    @media (min-width: 992px) {
        .navbar-toggler {
            display: none !important;
        }
    }
    @media (max-width: 991.98px) {
        .offcanvas-start {
            width: 250px !important; 
        }
    }


/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #111827 100%);
}

footer a {
    color: #9ca3af;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-banner {
        padding: 2rem 1rem !important;
    }

    .hero-banner .hero-content h1 {
        font-size: 21rem !important;
    }

    .card {
        margin-bottom: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        padding: 1.5rem 1rem !important;
    }

    .hero-banner .hero-content h1 {
        font-size: 1.5rem !important;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}