/* Custom CSS for Educate With Data */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Custom styles for the application */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
}

.navbar-dark .navbar-brand {
    color: white !important;
}

.navbar-dark .navbar-brand:hover {
    color: white !important;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-dark .nav-link:hover {
    color: white !important;
}

.navbar-dark .nav-link.active {
    color: white !important;
}

.navbar-dark .dropdown-toggle {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-dark .dropdown-toggle:hover {
    color: white !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white !important;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

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

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

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

.table th {
    background-color: var(--light-color);
    border-top: none;
    font-weight: 600;
}

.badge {
    font-size: 0.875em;
}

.alert {
    border: none;
    border-radius: 0.375rem;
}

.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

/* Chart container styles */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom form styles */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Navigation styles */
.nav-link {
    color: var(--dark-color);
    transition: color 0.15s ease-in-out;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

/* Footer styles */
footer {
    margin-top: auto;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
