/* GENERAL LAYOUT */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f7;
    color: #333;
    overflow: hidden;
}

/* TOP BANNER */
.note {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #007BFF;
    color: #fff;
    font-size: 0.9rem;
    z-index: 1000;
}

.note b {
    margin: 0 6px;
}

/* DASHBOARD CONTAINER BELOW BANNER */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 420px 1fr;
    height: calc(100vh - 45px);
    margin-top: 45px;
    background: #f4f4f7;
}

/* ------------------ MODERNIZED FILTERS TAB ------------------ */
.filters-tab {
    background: #f8f9fc; /* light, soft background to match dashboard */
    border-right: 1px solid #e1e4ea;
    padding: 25px 20px;
    overflow-y: auto;
    box-sizing: border-box;
    border-radius: 12px 0 0 12px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filters-tab h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.25rem;
    color: #1f2d3d;
    border-bottom: 2px solid #dfe4f1;
    padding-bottom: 6px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-field label {
    font-size: 0.95rem;
    color: #3a4a5a;
    font-weight: 500;
}

.filter-field input,
.filter-field select {
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #cfd4e0;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.25);
}

.filters-tab button {
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-top: 8px;
}

.filters-tab button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 91, 179, 0.2);
}

/* LEADS LIST */
.lead-list {
    background: #fff;
    border-right: 1px solid #ddd;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}
.lead-container { margin-top: 10px; }
.lead-item {
    padding: 14px; border-radius: 8px; margin-bottom: 12px; cursor: pointer;
    background: #fafafa; border: 1px solid #e3e3e3; transition: 0.15s;
    display: flex; flex-direction: column;
}
.lead-item:hover { background: #eef4ff; border-color: #b5ceff; }
.lead-item.active { background: #d9e7ff; border-color: #7da7ff; }
.lead-title { font-size: 1.05rem; font-weight: bold; margin-bottom: 6px; color: #333; }
.lead-meta { display: flex; flex-direction: column; font-size: 0.85rem; color: #444; gap: 3px; }

/* RESULTS TAB */
.lead-detail { padding: 30px; overflow-y: auto; padding-bottom: 120px; box-sizing: border-box; }
.detail-section { background: #fff; padding: 20px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #ddd; }
.detail-section h3 { margin-top: 0; margin-bottom: 12px; }
#companyInfo { list-style: none; padding-left: 0; font-size: 0.95rem; color: #333; }
#companyInfo li { margin-bottom: 6px; }

/* 52-WEEK SUMMARY BOXES */
.summary-boxes { display: flex; gap: 15px; margin-bottom: 16px; }
.summary-box { flex: 1; background: #f0f4ff; padding: 14px; border-radius: 8px; text-align: center; border: 1px solid #b5c7ff; }
.summary-box h4 { margin: 0 0 8px 0; font-size: 0.9rem; color: #333; }
.summary-box p { margin: 0; font-size: 1.2rem; font-weight: bold; color: #007bff; }

/* MULTI-WEEK SUMMARY BOXES */
.multiweek-summary-boxes {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.multiweek-box {
    flex: 1;
    background: #e8f0ff;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #a3c0ff;
}

.multiweek-box h4 {
    margin: 8px 0 4px 0;
    font-size: 0.85rem;
    color: #333;
}

.multiweek-box p {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #0056b3;
}

/* POPULAR PORTS */
.popular-ports { display: flex; gap: 20px; margin-bottom: 16px; }
.ports-section { flex: 1; }
.ports-section h4 { margin-bottom: 10px; }
.ports-container { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.port-box { flex: 1 1 45%; background: #f0f4ff; border: 1px solid #b5c7ff; border-radius: 6px; padding: 8px; text-align: center; font-size: 0.85rem; }

/* FULL-WIDTH COMMODITIES */
.commodities-container-full { display: flex; flex-wrap: wrap; gap: 10px; }
.commodities-container-full .port-box {
    flex: 1 1 100%; background: #f0f4ff; border: 1px solid #b5c7ff;
    border-radius: 6px; padding: 8px; margin-bottom: 8px; text-align: left; font-size: 0.85rem;
}

/* MAP */
#map { height: 400px; width: 100%; }

.leaflet-bottom .leaflet-right {
    display: none;
    visibility: hidden;
}
