/* Fuji Oil Forecast Dashboard - Custom CSS */

/* Root variables */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --sidebar-bg: #343a40;
    --sidebar-width: 250px;
    --content-bg: #f8f9fa;
}

/* Body */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--content-bg);
}

/* Sidebar navigation */
.nav-link {
    padding: 12px 20px;
    margin: 4px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #333 !important;
}

.nav-link:hover {
    background-color: #f0f0f0;
}

.nav-link.active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Upload area */
.dash-upload {
    transition: all 0.2s ease;
}

.dash-upload:hover {
    border-color: var(--primary-color) !important;
    background-color: #e9f5ff !important;
}

/* DataTables */
.dash-table-container {
    border-radius: 8px;
    overflow: hidden;
}

.dash-header {
    font-weight: 600 !important;
}

.dash-cell {
    font-size: 13px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 12px 24px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Progress bars */
.progress {
    border-radius: 10px;
    height: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dropdowns */
.Select-control {
    border-radius: 8px !important;
}

.Select-menu-outer {
    border-radius: 0 0 8px 8px !important;
}

/* Tabs */
.nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    background-color: white;
    border-color: #dee2e6 #dee2e6 white;
}

/* Value boxes */
.value-box {
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Loading states */
._dash-loading {
    opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
    }

    .content {
        margin-left: 0;
    }
}

/* Chart container */
.js-plotly-plot {
    border-radius: 8px;
}

/* Date picker */
.DateInput_input {
    border-radius: 8px !important;
    font-size: 14px !important;
}

/* Switch styling */
.form-switch .form-check-input {
    width: 48px;
    height: 24px;
    border-radius: 12px;
}

/* Input fields */
.form-control {
    border-radius: 8px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 16px;
}

.modal-header {
    border-radius: 16px 16px 0 0;
}

/* Tooltip */
.tooltip-inner {
    border-radius: 8px;
    padding: 8px 12px;
}

/* Empty state */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
}
