/* ==========================================================================
   Eurasia HQ - Clean Editorial Theme Style Definitions
   ========================================================================== */

/* Root theme variable mappings for unified color consistency */
:root {
    --bg-pure-white: #ffffff;
    --text-charcoal: #1e293b;
    --text-muted: #64748b;
    --eurasia-blue: #0284c7;      /* Primary Accent: Actions, links, highlights */
    --eurasia-red: #dc2626;       /* Accent Tone: badging, badges, critical alerts */
    --border-subtle: #e2e8f0;
    --table-zebra-tint: #f8fafc;
}

/* Base structural layout parameters */
.manage-container {
    max-width: 1200px;
    margin: 30px auto;
    background: var(--bg-pure-white);
    padding: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

/* Page context title layout styling */
.manage-container h2, 
.manage-container h3 {
    margin: 0 0 6px 0;
    color: var(--text-charcoal);
    font-size: 22px;
    font-weight: 700;
}

.manage-container .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Clean White Table Structure Layout */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-pure-white);
    margin-bottom: 10px;
}

table th {
    background: var(--table-zebra-tint);
    color: var(--text-charcoal);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-subtle);
}

table td {
    padding: 14px 16px;
    color: var(--text-charcoal);
    font-size: 14px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

/* Light Zebra Striping row treatment */
table tbody tr:nth-child(even) {
    background-color: var(--table-zebra-tint);
}

/* Balanced Interactive Dropdowns Stylesheet */
table select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-pure-white);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org' width='10' height='6' viewBox='0 0 10 6'><path fill='%2364748b' d='M0 0h10L5 6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    padding: 6px 32px 6px 12px !important;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-charcoal);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

table select:focus {
    outline: none;
    border-color: var(--eurasia-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* Balanced Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Active Status: Classic Balanced Corporate Blue */
.btn-activate {
    background-color: var(--eurasia-blue);
    color: var(--bg-pure-white);
}

.btn-activate:hover {
    background-color: #0369a1;
}

/* Deactivate Action: Contextual Alert Red */
.btn-deactivate {
    background-color: transparent;
    border-color: var(--eurasia-red);
    color: var(--eurasia-red);
}

.btn-deactivate:hover {
    background-color: var(--eurasia-red);
    color: var(--bg-pure-white);
}

.btn-disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* Minimalist Operational Badges */
.badge {
    display: inline-flex;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background-color: #eafaf1;
    color: #117843;
}

.badge-inactive {
    background-color: #fff8eb;
    color: #a16207;
}

/* Clean Editorial Pagination Button Array */
.audit-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.audit-pagination a {
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-pure-white);
    color: var(--text-charcoal);
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.audit-pagination a:hover {
    border-color: var(--eurasia-blue);
    color: var(--eurasia-blue);
    background-color: var(--table-zebra-tint);
}

/* Active Page Highlight Marker State */
.audit-pagination a.active-page {
    background-color: var(--eurasia-blue) !important;
    border-color: var(--eurasia-blue) !important;
    color: var(--bg-pure-white) !important;
    font-weight: 600;
}

/* Core Alerts System Notifications */
.alert {
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.alert.error {
    background-color: #fff5f5;
    color: var(--eurasia-red);
    border-color: #feb2b2;
}

.alert.success {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}
