/* ===== General Styling ===== */
body {
    background: linear-gradient(135deg, #a8d5e2 0%, #c8e3ed 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.container-fluid {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== Header Styling ===== */
h2 {
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== Label Styling ===== */
label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ===== Input Field Styling ===== */
.form-control {
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: #6ba3be;
    box-shadow: 0 0 0 0.2rem rgba(107, 163, 190, 0.25);
    background-color: #ffffff;
    outline: none;
}

.form-control::placeholder {
    opacity: 0.4 !important;
    font-style: italic;
}

/* ===== Button Styling ===== */
.btn-primary {
    background: linear-gradient(135deg, #6ba3be 0%, #8bc6d9 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(107, 163, 190, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 163, 190, 0.6);
    background: linear-gradient(135deg, #8bc6d9 0%, #6ba3be 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ===== Card Styling ===== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #6ba3be 0%, #8bc6d9 100%);
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 15px 20px;
    border-bottom: none;
}

.card-body {
    padding: 25px;
    background-color: #ffffff;
}

/* ===== List Styling ===== */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1rem;
}

ul li:last-child {
    border-bottom: none;
}

ul li strong {
    color: #2c3e50;
    min-width: 180px;
    display: inline-block;
}

/* ===== Alert Styling ===== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.alert-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(235, 51, 73, 0.4);
}

/* ===== Graph Container Styling ===== */
.js-plotly-plot {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Row Spacing ===== */
.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .container-fluid {
        padding: 20px;
        margin-top: 15px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 12px 20px;
    }
}

/* ===== Smooth Animations ===== */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6ba3be 0%, #8bc6d9 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8bc6d9 0%, #6ba3be 100%);
}

/* ===== Sidebar Link Styling ===== */
.sidebar-link {
    color: #2c3e50 !important;
    font-weight: 500;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    padding: 12px 15px !important;
}

.sidebar-link:hover {
    background-color: rgba(107, 163, 190, 0.15) !important;
    color: #6ba3be !important;
    transform: translateX(5px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, #6ba3be 0%, #8bc6d9 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(107, 163, 190, 0.4);
}

.sidebar-link.active:hover {
    transform: translateX(0);
}

/* Sidebar icon styling */
.sidebar-link i {
    font-size: 1.1rem;
}