:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --text: #334155;
    --bg: #f8fafc;
    --whatsapp: #25D366;
}

/* FLEXBOX SETUP*/
body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    background: var(--bg); 
    color: var(--text); 
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Takes full height of the screen */
}

/* Navigation */
nav { 
    background: var(--primary); 
    color: white; 
    padding: 0.8rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

.nav-right { display: flex; align-items: center; gap: 15px; }

.search-container input {
    padding: 8px 15px; 
    border-radius: 6px; 
    border: 1px solid #334155;
    background: #1e293b; 
    color: white; 
    outline: none; 
    width: 180px; 
    transition: 0.3s;
}
.search-container input:focus { width: 220px; border-color: var(--accent); }

.nav-links { position: relative; display: flex; align-items: center; }
.nav-links button, .nav-links a { 
    background: var(--accent); 
    color: white; 
    border: none; 
    padding: 8px 16px; 
    border-radius: 6px; 
    cursor: pointer; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.85rem; 
    margin-left: 10px;
}

/* LAYOUT: flex*/
.main-wrapper {
    flex: 1; /* to fill empty space, footer=default*/
    display: grid;
    grid-template-columns: 280px 1fr; 
    max-width: 1400px; 
    margin: 40px auto; /* Centered with auto margin */
    gap: 30px;
    padding: 0 5%;
    width: 90%;
}

.intro-section {
    background: white; 
    padding: 25px; 
    border-radius: 12px;
    height: fit-content; 
    position: sticky; 
    top: 90px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.intro-section h2 { margin: 0; font-size: 1.2rem; color: var(--primary); }
.intro-section p { font-size: 0.9rem; line-height: 1.6; color: #64748b; margin: 15px 0; }

.tag { 
    background: #f1f5f9; 
    color: var(--primary); 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    display: inline-block; 
    margin-right: 5px; 
    margin-bottom: 5px; 
}

/* Reports area */
.reports-area h2 { 
    margin-top: 0; 
    font-size: 1.4rem; 
    color: var(--primary); 
    border-left: 4px solid var(--accent); 
    padding-left: 15px; 
    margin-bottom: 25px; 
}

.accordion-item { 
    background: white; 
    border: 1px solid #e2e8f0; 
    margin-bottom: 12px; 
    border-radius: 8px; 
    overflow: hidden; 
    width: 100%;
}

.accordion-header { 
    width: 100%; 
    padding: 18px 22px; 
    text-align: left; 
    background: white; 
    border: none; 
    cursor: pointer; 
    display: grid;
    grid-template-columns: 1fr auto 20px; 
    align-items: center; 
    gap: 20px; 
    color: var(--primary);
}

.header-main-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start; 
    justify-content: center;
}

.header-title { 
    font-weight: 700; 
    font-size: 1.05rem; 
    line-height: 1.2;
    margin: 0;
}

.header-dates-row {
    font-size: 0.75rem; 
    color: #64748b; 
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.header-dates-row span { font-weight: 400; white-space: nowrap; }
.header-dates-row b { color: #475569; font-weight: 600; }

.header-status { font-size: 0.85rem; font-weight: 700; text-align: right; min-width: 90px; }
.arrow { font-size: 0.7rem; text-align: right; color: #94a3b8; transition: 0.3s; }

.accordion-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-out; 
    background: #fff; 
}

.content-inner { padding: 20px; border-top: 1px solid #f1f5f9; }

.analysis-chart {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 15px 0;
    display: block;
}

.status-ongoing { color: #b05d00; }
.status-hit { color: #10b981; }

/* 3. FOOTER: margin-top: auto*/
footer {
    background: white; 
    border-top: 1px solid #e2e8f0;
    padding: 40px 5%; 
    margin-top: auto; /* Pushes itself to the bottom of the flex container */
    text-align: center; 
    font-size: 0.85rem;
}

footer .contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

footer a { 
    color: var(--text); 
    text-decoration: none; 
    font-weight: 600; 
    display: flex;
    align-items: center;
    gap: 5px;
}

footer a:hover { color: var(--accent); }

@media (max-width: 950px) {
    .main-wrapper { grid-template-columns: 1fr; margin: 20px auto; width: 90%; }
    .intro-section { position: relative; top: 0; }
    .header-dates-row { flex-direction: column; gap: 2px; }
}
