/* ============================================
   Bootstrap 5 Custom Configuration
   ============================================ */

:root {
    /* Primary Colors */
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary: #6c757d;
    --bs-secondary-rgb: 108, 117, 125;
    
    /* Status Colors */
    --bs-success: #198754;
    --bs-success-rgb: 25, 135, 84;
    --bs-danger: #dc3545;
    --bs-danger-rgb: 220, 53, 69;
    --bs-warning: #ffc107;
    --bs-warning-rgb: 255, 193, 7;
    --bs-info: #0dcaf0;
    --bs-info-rgb: 13, 202, 240;
    
    /* Neutral Colors */
    --bs-light: #f8f9fa;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark: #212529;
    --bs-dark-rgb: 33, 37, 41;
    
    /* Spacing */
    --bs-body-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --bs-body-line-height: 1.6;
    
    /* Border radius */
    --bs-border-radius: 0.375rem;
}

/* ============================================
   Custom Utilities & Components
   ============================================ */

/* Hero Section */
.min-vh-50 {
    min-height: 50vh;
}

/* Cards Enhancement */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 0.375rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

/* Form Controls */
.form-control,
.form-select,
textarea {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--bs-danger);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 0.25rem;
}

.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

.badge.bg-success {
    background-color: var(--bs-success) !important;
}

.badge.bg-danger {
    background-color: var(--bs-danger) !important;
}

.badge.bg-warning {
    background-color: var(--bs-warning) !important;
    color: #000;
}

.badge.bg-info {
    background-color: var(--bs-info) !important;
}

/* Navigation Bar */
.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: #495057 !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-primary) !important;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

footer a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--bs-primary);
}

/* Sticky Positioning */
.position-sticky {
    position: -webkit-sticky;
    position: sticky;
}

/* Image Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Text Utilities */
.fw-bold {
    font-weight: 700 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Carousel Customization */
.carousel {
    border-radius: 0.375rem;
    overflow: hidden;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators {
    bottom: 1rem;
}

/* Section Spacing */
section {
    padding: 3rem 0;
}

section.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Container Spacing */
.container {
    max-width: 1140px;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 0.375rem;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

/* Grid Responsive Adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .min-vh-50 {
        min-height: 40vh;
    }
}

/* Hover Effects for Cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Link Styles */
a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0b5ed7;
}

/* Print Styles */
@media print {
    body {
        background-color: #fff;
    }
    
    .navbar,
    footer,
    .no-print {
        display: none;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #495057;
    line-height: 1.6;
}

/* Gap Utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }
