/* Global Styles */
:root {
    --primary: #4e73df;
    --secondary: #1cc88a;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --info: #36b9cc;
    --dark: #5a5c69;
    --light: #f8f9fc;
    --white: #fff;
    --border-radius: 0.35rem;
}

body {
    background-color: #f8f9fc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #5a5c69;
}

/* Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid #e3e6f0;
    padding: 0.75rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Border Cards for Overview */
.border-left-primary {
    border-left: 0.25rem solid var(--primary);
}

.border-left-success {
    border-left: 0.25rem solid var(--secondary);
}

.border-left-info {
    border-left: 0.25rem solid var(--info);
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning);
}

.border-left-danger {
    border-left: 0.25rem solid var(--danger);
}

/* Text Styles */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--secondary) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

/* Navbar Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

/* Form Elements */
.form-select:focus, .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #3a5fd1;
    border-color: #3a5fd1;
}

/* Plot Cards */
.plot-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    text-align: center;
}

.plot-container img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.footer {
    margin-top: 2rem;
    border-top: 1px solid #e3e6f0;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .carte-header {
        padding: 1rem;
    }
    
    .carte-header h1 {
        font-size: 1.5rem;
    }
    
    .download-btn {
        right: 10px;
        bottom: 10px;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .navbar, .footer, .download-btn {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}

/* Animation for Insights */
.insight-card {
    transition: all 0.3s ease;
}

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