/* Main Layout */

body {
    padding: 20px;
    background-color: #e2e8f5;
    font-family: 'DM Sans', sans-serif;
    color: #1e293b;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 15px;
    letter-spacing: 0.03em;
}

.container-fluid {
    max-width: 2000px;
    margin: 0 auto;
}

/* Tabulator styles */

.header,
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header {
    background: #001f4f;
}

.tabulator .tabulator-header {
    background-color: #001f4f;
    color: white;
    border-bottom: 2px solid #1e3a5f;
}

.tabulator .tabulator-header .tabulator-col {
    background-color: #001f4f;
    color: white;
    border-right-color: #0a3060;
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
    background-color: #0a3060 !important;
}

.tabulator .tabulator-header-filter input {
    background-color: white !important;
    color: #333 !important;
    border: 1px solid #1e3a5f;
    border-radius: 3px;
}

.tabulator .tabulator-footer {
    background-color: white !important;
    border-top: 1px solid #dee2e6;
}

.tabulator .tabulator-arrow {
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.tabulator .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-arrow {
    border-bottom-color: white !important;
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
    border-top-color: white !important;
}

.header {
    padding: 1rem 2rem 1.4rem;
    margin-bottom: 20px;
    background: #001f4f;
    color: #fff;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 0;
    color: #fff;
}

.header .text-muted {
    color: #94a3b8 !important;
    font-size: 1rem;
}

.back-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.15s;
}

.back-link:hover {
    color: rgba(255,255,255,0.85);
}

.table-container {
    padding: 20px;
}

#data-table {
    font-size: 14px;
}

/* Controls */

.controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.stats {
    color: #6c757d;
    font-size: 14px;
    margin-top: 10px;
}

.badge-custom {
    font-size: 12px;
    padding: 5px 10px;
}

/* Button Styles — outline by default, solid on hover.
   Each .btn-* class only needs to set --btn-color. */
.controls .btn {
    background-color: var(--btn-color, #6c757d);
    color: white;
    border: 1px solid var(--btn-color, #6c757d);
    transition: filter 0.15s;
    padding-left: 12px;
    padding-right: 12px;
}

.controls .btn:hover {
    filter: brightness(1.2);
    color: white;
    border-color: var(--btn-color, #6c757d);
}

.btn-file  { --btn-color: #333333; }
.btn-csv   { --btn-color: #3b6fd4; }
.btn-xlsx  { --btn-color: #2e9e57; }
.btn-pdf   { --btn-color: #d93232; }
.btn-json  { --btn-color: #6d28d9; }
.btn-yaml  { --btn-color: #d97706; }
.btn-clear { --btn-color: #6c757d; }

/* Override style for clear filters button */
.controls .btn-clear {
    background-color: white !important;
    color: #6c757d !important;
    border: 1px solid #6c757d !important;
}

#data-sets .btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.15s, border-color 0.15s;
}

#data-sets .btn.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
    border-color: rgba(255,255,255,0.6);
}

#data-sets .btn:hover {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.6);
}
