body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 500;
}

.form-select, .form-control {
    border-radius: 0.375rem;
}

.chart-container {
    position: relative;
    margin: auto;
    width: 100%;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
    transform: translateY(-1px);
}

table th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

.pagination {
    margin-bottom: 0;
}

#correlationResult {
    padding: 10px;
    border-radius: 4px;
}

.correlation-strong {
    background-color: #d4edda;
    color: #155724;
    border-radius: 5px;
}

.correlation-moderate {
    background-color: #fff3cd;
    color: #856404;
    border-radius: 5px;
}

.correlation-weak {
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
}

.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

/* Custom select styling for multiple select */
.form-select[multiple] {
    height: auto;
    max-height: 120px;
    overflow-y: auto;
}

/* Enhance header style */
header {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

/* Improve table hover effect */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Style for loading spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Add subtle animation to icons */
.bi {
    transition: transform 0.2s ease;
}

.card-header:hover .bi {
    transform: translateY(-1px);
}

/* Improve button states */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 350px !important;
    }
}

/* Tooltips and help text */
.form-text {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Enhance footer */
footer {
    font-size: 0.9rem;
    padding: 1rem 0;
    background-color: #f8f9fa;
}