/* Custom Styles for Bootstrap 5 */
:root {
    --primary: #0056b3;
    --primary-light: #4dabf7;
    --secondary: #28a745;
    --accent: #ff9900;
    --accent-light: #ffc107;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --border: #dee2e6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #004494 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #ff7700 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* Modern Card Design */
.modern-card {
    background: white;
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.modern-card .card-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem;
}

.modern-card .card-body {
    padding: 2rem;
}

/* Custom Button Styles */
.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 86, 179, 0.4);
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.3);
}

/* Form Control Enhancements */
.form-control-lg-custom {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 2px solid var(--border);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-lg-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.15);
    transform: translateY(-2px);
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 3rem;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    z-index: 4;
}

/* Badge Styles */
.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Timeline Styles */
.timeline-modern {
    position: relative;
    padding-left: 2rem;
}

.timeline-modern:before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 3px;
}

.timeline-item-modern {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-item-modern:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Table Styles */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.table-modern thead th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background-color: rgba(0, 86, 179, 0.05);
}

.table-modern td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: white;
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-logo {
    max-height: 60px;
    margin-bottom: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Enhancements */
.modal-content {
    border-radius: var(--radius);
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-success .modal-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .modern-card .card-body {
        padding: 1.5rem;
    }
    
    .table-modern td, 
    .table-modern th {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}
