/* ============================================================
   OEUK EPL IMPACT TRACKER — CSS (PART 1)
   Layout, KPI cards, tabs, chart container, navigation
   ============================================================ */

/* Wrapper */
#oeuk-tracker-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px 40px 15px;
    font-family: "Inter", Arial, sans-serif;
}

/* ------------------------------------------------------------
   FRONT-END TABS
   ------------------------------------------------------------ */
.oeuk-front-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.oeuk-front-tab {
    padding: 10px 18px;
    background: #e5e8f5;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-weight: 600;
    border: none;
}

.oeuk-front-tab.active {
    background: #293c74;
    color: #fff;
}

/* Tab Content */
.oeuk-front-tab-content {
    display: none;
    margin-top: 5px;
}

.oeuk-front-tab-content.active {
    display: block;
}

/* ------------------------------------------------------------
   KPI GRID
   ------------------------------------------------------------ */
.oeuk-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.oeuk-kpi-card {
    background: #f5f7ff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-align: left;
}

.oeuk-kpi-card .label {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.oeuk-kpi-card .value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-top: 8px;
    color: #293c74;
}

/* ------------------------------------------------------------
   YEAR SELECTOR
   ------------------------------------------------------------ */
.oeuk-year-select-box {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.oeuk-year-select-box select {
    padding: 6px 12px;
    border-radius: 6px;
}

/* ------------------------------------------------------------
   MONTH NAVIGATION
   ------------------------------------------------------------ */
.oeuk-month-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.oeuk-nav-btn {
    padding: 8px 12px;
    background: #293c74;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

#oeuk-current-month-label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

/* ------------------------------------------------------------
   CHART CONTAINER
   ------------------------------------------------------------ */
.oeuk-chart-container {
    width: 100%;
    height: 420px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ------------------------------------------------------------
   TABLE FILTER BAR
   ------------------------------------------------------------ */
.oeuk-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.oeuk-filter-bar select {
    padding: 6px 10px;
    border-radius: 6px;
}
/* ============================================================
   OEUK EPL IMPACT TRACKER — CSS (PART 2)
   Modal, DataTables overrides, responsive adjustments
   ============================================================ */

/* ------------------------------------------------------------
   MODAL OVERLAY + CONTENT
   ------------------------------------------------------------ */

.oeuk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 30, 0.65);
    backdrop-filter: blur(3px);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.oeuk-modal-content {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: fadeIn .2s ease-out;
}

.oeuk-modal-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #293c74;
}

.oeuk-modal-content h3 {
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #1d2b51;
}

.oeuk-modal-content p,
.oeuk-modal-content li {
    font-size: 15px;
    line-height: 1.55;
}

.oeuk-modal-close {
    position: absolute;
    right: 25px;
    top: 20px;
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
}

/* ------------------------------------------------------------
   BUTTON: "How This Tracker Works"
   ------------------------------------------------------------ */
.oeuk-method-btn {
    background: #293c74;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    margin-bottom: 20px;
    cursor: pointer;
}
.oeuk-method-btn:hover {
    background: #3a5296;
}

/* ------------------------------------------------------------
   DATATABLES OVERRIDES
   ------------------------------------------------------------ */
#oeuk-job-table {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    padding: 5px 10px;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    padding: 5px;
}

.dataTables_wrapper table.dataTable {
    border-collapse: collapse;
}

.dataTables_wrapper table.dataTable tbody tr:hover {
    background-color: #f3f6ff !important;
}

/* Fix long title text wrap */
#oeuk-job-table td {
    white-space: normal !important;
}

/* ------------------------------------------------------------
   RESPONSIVE RULES
   ------------------------------------------------------------ */

@media (max-width: 800px){

    .oeuk-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .oeuk-chart-container {
        height: 350px;
    }

    .oeuk-front-tabs {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 500px){

    .oeuk-kpi-grid {
        grid-template-columns: 1fr;
    }

    .oeuk-modal-content {
        padding: 18px 20px;
    }

    .oeuk-chart-container {
        height: 320px;
    }
}

/* ------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}