﻿/* ============================================================
   MIRO GSC / RANKFLOW — PREMIUM UI THEME
   Sleek ✦ Modern ✦ Ranking Dashboard Style
============================================================ */

/* ------------------------------
   GLOBAL RESET FOR GSC AREA
------------------------------ */
#tab-overview, #tab-rankflow {
    font-family: Inter, system-ui, sans-serif;
    --c-text: #0f172a;
    --c-muted: #64748b;
    --c-border: #e2e8f0;
    --c-bg: #ffffff;
    --c-bg-soft: #f8fafc;
    --c-blue: #2563eb;
    --c-blue-soft: #dbeafe;
    --c-red: #dc2626;
    --c-red-soft: #fee2e2;
    --c-green: #16a34a;
    --c-green-soft: #dcfce7;
    --radius: 14px;
}

/* ------------------------------
   CARDS
------------------------------ */
.mirolabs-card, 
#tab-overview .card, 
#tab-rankflow .rf-card, 
#tab-rankflow .rf-box {
    background: var(--c-bg);
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    padding: 20px 22px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.mirolabs-card:hover,
#tab-overview .card:hover,
#tab-rankflow .rf-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* ------------------------------
   TITLES
------------------------------ */
#tab-overview .card .title,
.rf-box .title {
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 10px;
    font-size: 16px;
}

/* ------------------------------
   KPI NUMBERS
------------------------------ */
.kpi-val {
    font-size: 36px;
    font-weight: 700;
    color: var(--c-text);
}

/* ------------------------------
   DELTA BADGES
------------------------------ */
.delta.up, .rf-badge.rf-up {
    background: var(--c-green-soft);
    color: var(--c-green);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
}
.delta.down, .rf-badge.rf-down {
    background: var(--c-red-soft);
    color: var(--c-red);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
}
.rf-badge.rf-zero {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
}

/* ------------------------------
   TABLES — PREMIUM RANKMATH STYLE
------------------------------ */
.rf-table-wrapper,
#tab-overview table {
    width: 100%;
    border-spacing: 0;
}

.rf-table th,
#tab-overview table th {
    background: var(--c-bg-soft);
    font-weight: 600;
    color: var(--c-muted);
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--c-border);
}

.rf-table td,
#tab-overview table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.rf-table tr:hover,
#tab-overview table tr:hover {
    background: #f9fafb;
}

/* ------------------------------
   PAGINATION
------------------------------ */
.rf-pagination {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.rf-pagination .rf-btn,
.rf-pagination .rf-page {
    padding: 6px 12px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 13px;
}

.rf-pagination .rf-page-active {
    background: var(--c-blue);
    color: white;
    border-color: var(--c-blue);
}

/* ------------------------------
   SPARKLINE
------------------------------ */
.rf-spark-wrap {
    width: 160px;
    height: 40px;
}

/* ------------------------------
   MAIN CHART
------------------------------ */
#mainChart {
    background: linear-gradient(to bottom, #f8fbff, #ffffff);
    border-radius: 14px;
    padding: 10px;
    box-shadow: inset 0 0 0 1px var(--c-border);
}

/* ------------------------------
   FILTER / CONTROLS
------------------------------ */
#tab-overview .controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

#tab-overview .btn {
    padding: 6px 14px;
    background: #D8B15A !important;
    border: none !important;
    color: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(216, 177, 90, 0.3) !important;
    font-weight: 600 !important;
    transition: background 0.2s ease !important;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

#tab-overview .btn:hover {
    background: #C49A4A !important;
    color: #1a1a1a !important;
}

#tab-overview .btn.active {
    background: #D8B15A !important;
    border: none !important;
    color: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(216, 177, 90, 0.3) !important;
    font-weight: 600 !important;
}

/* ------------------------------
   INPUTS
------------------------------ */
#tab-overview select,
#tab-overview .input {
    padding: 7px;
    border-radius: 6px;
    border: 1px solid var(--c-border);
    font-size: 14px;
}

/* ------------------------------
   RANKFLOW BOXES
------------------------------ */
.rf-box {
    min-height: 140px;
}

/* ------------------------------
   UPDATED LABEL
------------------------------ */
#rfUpdated {
    margin: 6px 0 14px 0;
    color: var(--c-muted);
    font-size: 13px;
}
