:root {
    --bg-body: #f5f7fb;
    --card-bg: #ffffff;
    --border-soft: #e2e8f0;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent-red: #ef4444;
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-body);
    color: var(--text-main);
}

/* Header */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo a {
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    color: var(--text-main);
}

.main-nav a {
    margin-left: 14px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-muted);
}

.main-nav a:hover {
    color: var(--accent-red);
}

/* Main container */

.main-content {
    max-width: 1100px;
    margin: 20px auto 30px;
    padding: 0 12px;
}

/* Page intro */

.page-intro {
    margin-bottom: 18px;
}

.page-intro h1 {
    font-size: 24px;
    margin: 0 0 8px;
}

.page-intro p {
    margin: 4px 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Your original UI */

.title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.title-icon {
    font-size: 22px;
}

.title-text {
    font-size: 22px;
    font-weight: 700;
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.filter-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 16px 14px 14px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.filter-box {
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    padding: 10px 12px 8px;
    background: #f8fafc;
}

.filter-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.filter-label span:last-child {
    font-size: 11px;
}

.filter-input,
.filter-select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 3px 0 0;
    background: transparent;
}

.filter-input::placeholder {
    color: #cbd5f5;
}

.universal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 6px;
}

.universal-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 4px;
}

.universal-label span {
    color: #9ca3af;
}

.universal-input-wrapper {
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    padding: 8px 14px;
    background: #ffffff;
}

.universal-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
}

.btn-reset {
    align-self: flex-end;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: #f97373;
    color: #fff;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-reset:active {
    transform: translateY(1px);
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}

/* TABLE AREA */

.table-wrapper {
    margin-top: 6px;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    overflow-x: auto;
}

table.dataTable {
    margin: 0 !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

table.dataTable thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
    background: #f8fafc;
}

table.dataTable tbody td {
    font-size: 13px;
    white-space: nowrap;
}

/* Footer */

.site-footer {
    margin-top: 24px;
    padding: 14px 12px 18px;
    background: #ffffff;
    border-top: 1px solid var(--border-soft);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.footer-note {
    margin-top: 4px;
    font-size: 12px;
}

/* Mobile tweaks */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .main-nav a {
        margin-left: 0;
        margin-right: 10px;
    }
    .main-content {
        margin-top: 14px;
    }
    .title-text {
        font-size: 18px;
    }
    .subtitle {
        font-size: 12px;
    }
    .filter-card {
        padding: 14px 12px 12px;
        border-radius: 16px;
    }
    .filter-row {
        grid-template-columns: 1fr;
    }
    .universal-row {
        grid-template-columns: 1fr;
    }
    .btn-reset {
        width: 100%;
        justify-content: center;
    }
    .universal-input {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    table.dataTable tbody td {
        font-size: 12px;
    }
    table.dataTable thead th {
        font-size: 10px;
    }
}
