/* ===========================
   Campus Life App - Custom CSS
   Bootstrap 4.5.2 Integration
   =========================== */

/* Root CSS Variables for consistent theming */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container Styling */
.container {
    margin: 0 auto;
    padding: 20px;
}

/* Button Transitions - Smooth hover effects */
.btn {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.btn-primary:hover {
    background-color: #0056b3;
}

/* Card Styling with hover effects */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Form Control Styling with focus states */
.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Alert Styling */
.alert {
    border-radius: 4px;
    animation: slideDown 0.4s ease-out;
}

/* ===========================
   ANIMATIONS
   =========================== */

/* Fade-in animation for elements */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide-down animation for alerts */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide-up animation for cards */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   RESPONSIVE DESIGN
   Mobile-first approach
   =========================== */

/* Mobile devices (under 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 10px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

/* Tablets (576px to 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding: 15px;
    }
}

/* Medium devices and up (768px and above) */
@media (min-width: 768px) {
    .container {
        padding: 20px;
    }
}

/* Bootstrap Override - Primary button color */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

/* Custom classes for specific elements */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

footer {
    border-top: 1px solid #ddd;
    margin-top: 40px;
}
