/* Custom CSS Styles for School Management System */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Navbar Enhancements */
.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Carousel Styles */
.carousel-img {
    height: 150px;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    bottom: 3rem;
    left: 5%;
    right: 5%;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Login Form Styles */
.login-form {
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.login-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 16px;
}

.login-form .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    border-color: #007bff;
}

.login-form .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
}

.login-form .btn-primary {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.login-form .form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Responsive Login Form */
@media (max-width: 768px) {
    .carousel-caption {
        left: 2%;
        right: 2%;
        bottom: 1rem;
        padding: 1rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .login-form {
        padding: 1.5rem !important;
    }
}

/* Main Content Image */
.main-image {
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 600px;
    object-fit: cover;
    width: 100%;
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Statistics Section */
.stat-item {
    padding: 1.5rem;
}

.stat-item i {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

/* Typography */
.display-6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #343a40, #495057) !important;
}

footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer h6 {
    color: #adb5bd;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff !important;
}

footer .fab {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

footer .fab:hover {
    transform: translateY(-3px);
    color: #007bff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Custom Gender Card Colors */
.bg-pink {
    background-color: #e91e63 !important;
}

.bg-pink.border-pink {
    border-color: #e91e63 !important;
}

.bg-rose {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%) !important;
}

.bg-purple-gradient {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%) !important;
}
/* Feature Cards Animations */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(13, 110, 253, 0.2);
}

.feature-card .icon-wrapper {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover .icon-wrapper {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

/* Pulse Animation for Icons */
.feature-card:hover .icon-wrapper i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Fade In Animation */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive Feature Cards */
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .feature-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
}