/* static/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* --- Navigation --- */
nav {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: #4a5568;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    font-weight: 500;
}

.nav-link:hover {
    color: #1a2b4d;
}

nav a.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
}

/* --- Cards --- */
.card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem; /* Increased padding */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2b4d;
    margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn { border-radius: 8px; font-weight: 600; padding: 10px 20px; transition: all 0.2s ease; }
.btn-primary { background: linear-gradient(45deg, #007bff, #0056b3); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25); }
.btn-secondary { background-color: #e2e8f0; color: #4a5568; }
.btn-secondary:hover { background-color: #cbd5e1; }

/* --- Forms --- */
input[type="date"], input[type="number"], select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
}
input:focus, select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 1px #007bff;
}

/* --- KPI Cards --- */
.kpi-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}
.kpi-card p {
    color: #64748b;
    font-size: 0.875rem;
}
.kpi-card span {
    color: #1e293b;
    font-size: 1.875rem;
    font-weight: 700;
}

/* --- Charting and Modal --- */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 350px;
}

.fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.fullscreen-btn:hover {
    background-color: #e2e8f0;
    transform: scale(1.1);
}
.fullscreen-btn svg {
    width: 16px;
    height: 16px;
    color: #475569;
}

/* Simple Loader for Buttons */
.loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AI Analysis Prose Styling */
.prose {
    font-size: 1rem;
    line-height: 1.75;
}

.prose h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 1rem;
}

.prose h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2b4d;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.25rem;
}

.prose strong {
    color: #1e293b;
}

.prose ul {
    list-style-type: none;
    padding-left: 0;
}

.prose ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.prose ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: #007bff;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}


/* --- Methodology Page Specific Styles --- */
.methodology-list li {
    position: relative;
    padding-left: 32px; /* Space for the icon */
    margin-bottom: 1rem;
    line-height: 1.6;
}

.methodology-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: #007bff;
    background-color: #e6f2ff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-weight: 700;
}

.tech-card {
    background-color: #f8fafc;
    border-left: 4px solid #007bff;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}