/* Global Styles */
:root {
    --primary-color: #4299e1;
    --secondary-color: #2d3748;
    --success-color: #48bb78;
    --warning-color: #ecc94b;
    --danger-color: #f56565;
    --light-gray: #f7fafc;
    --dark-gray: #2d3748;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

/* Card Styles */
.card {
    border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.btn-primary:hover {
    background-color: #3182ce;
    border-color: #3182ce;
}

/* River Map Styles */
#riverMap {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Temperature Chart Styles */
#temperatureChart {
    min-height: 250px;
}

/* River Section Cards */
.section-card {
    height: 100%;
    background: white;
    border-radius: 0.5rem;
}

.section-card .card-body {
    padding: 1.5rem;
}

/* Activity Indicators */
.activity-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.activity-slow {
    background-color: #fed7d7;
    color: #c53030;
}

.activity-moderate {
    background-color: #fefcbf;
    color: #b7791f;
}

.activity-active {
    background-color: #c6f6d5;
    color: #2f855a;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--light-gray);
}

/* Loading States */
.loading {
    position: relative;
    min-height: 100px;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    #riverMap {
        height: 300px !important;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }

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

/* Style for estimated river data */
.estimated-data {
    font-style: italic;
    color: #6c757d;
}
.estimated-data::before {
    content: "⚠️ ";
    display: inline;
} 