:root {
    --bg-dark: #080C14;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(24, 34, 53, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-focus: rgba(59, 130, 246, 0.5);
    
    --primary: #3B82F6;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --primary-dark: #1D4ED8;
    --secondary: #6366F1;
    --success: #10B981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --danger: #EF4444;
    --danger-glow: rgba(239, 68, 68, 0.3);
    --warning: #F59E0B;
    --warning-glow: rgba(245, 158, 11, 0.3);
    --info: #06B6D4;

    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;

    --sidebar-width: 260px;
    --header-height: 70px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 27, 75, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.5) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* App Layout */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(11, 17, 30, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: all 0.3s ease;
}

.brand-section {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.brand-logo {
    height: 36px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.brand-badge {
    font-size: 0.65rem;
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-left: auto;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--bg-glass);
    color: var(--text-main);
    border-color: var(--border-glass);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(99, 102, 241, 0.15) 100%);
    color: #93C5FD;
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.nav-item .icon {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    box-shadow: 0 0 10px var(--danger-glow);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: transparent;
}

/* Header */
.top-header {
    height: var(--header-height);
    background: rgba(11, 17, 30, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tenant-selector-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 6px 14px;
}

.tenant-select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.tenant-select option {
    background: #111827;
    color: white;
}

.node-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6EE7B7;
}

.node-status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

.node-status-badge.offline .pulse-dot {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Page Container */
.page-body {
    padding: 30px;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view-section.active {
    display: block;
}

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

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card.danger-card::before {
    background: linear-gradient(90deg, var(--danger), #F97316);
}

.stat-card.warning-card::before {
    background: linear-gradient(90deg, var(--warning), #FBBF24);
}

.stat-card.success-card::before {
    background: linear-gradient(90deg, var(--success), #34D399);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-icon {
    font-size: 1.25rem;
    opacity: 0.8;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    font-family: 'JetBrains Mono', monospace;
}

.stat-subtitle {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 6px;
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.panel-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modern Tables */
.table-responsive {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

.modern-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.modern-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #E5E7EB;
    vertical-align: middle;
}

.modern-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Pills */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pill.pill-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pill.pill-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pill.pill-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill.pill-info {
    background: rgba(59, 130, 246, 0.15);
    color: #93C5FD;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px var(--success-glow);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--success-glow);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 4px 14px var(--danger-glow);
}

.btn-outline {
    background: var(--bg-glass);
    border-color: var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-glass);
    color: var(--text-main);
    border-color: var(--border-glass);
}

.btn-icon.delete:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.glass-modal {
    background: #0F172A;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    max-width: 540px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: white;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Monospace text */
.font-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

/* Filter Toolbar */
.filter-toolbar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 22px;
    background: rgba(0, 0, 0, 0.25);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Category Badges */
.badge-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-cat-service { background: rgba(99, 102, 241, 0.15); color: #A5B4FC; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-cat-zones { background: rgba(59, 130, 246, 0.15); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-cat-records { background: rgba(6, 182, 212, 0.15); color: #67E8F9; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-cat-firewall { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-cat-incidents { background: rgba(245, 158, 11, 0.15); color: #FCD34D; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-cat-nodes { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-cat-users { background: rgba(236, 72, 153, 0.15); color: #F472B6; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-cat-diagnostics { background: rgba(168, 85, 247, 0.15); color: #D8B4FE; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-cat-system { background: rgba(148, 163, 184, 0.15); color: #CBD5E1; border: 1px solid rgba(148, 163, 184, 0.3); }

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-status-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.status-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.status-running {
    background: rgba(59, 130, 246, 0.15);
    color: #93C5FD;
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

/* Process Modal & Forensics */
.process-modal-box {
    max-width: 860px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.process-modal-box .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 120px);
    padding-right: 18px;
}

.meta-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.meta-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 600;
    color: #93C5FD;
    margin-bottom: 8px;
}

.detail-section-header.danger-header {
    color: #FCA5A5;
}

.btn-copy-code {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93C5FD;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-code:hover {
    background: var(--primary);
    color: white;
}

/* Terminal Consoles */
.terminal-box {
    background: #080C14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    color: #E2E8F0;
    overflow-x: auto;
    line-height: 1.5;
    position: relative;
    max-height: 220px;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-box.json-box {
    color: #38BDF8;
    background: rgba(15, 23, 42, 0.6);
}

.terminal-box.stdout-box {
    color: #4ADE80;
    background: rgba(6, 78, 59, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.terminal-box.stderr-box {
    color: #F87171;
    background: rgba(127, 29, 29, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}


/* ============================================================
   Login Screen
   ============================================================ */
.login-screen {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 20% 10%, rgba(59, 130, 246, 0.18) 0px, transparent 55%),
        radial-gradient(at 85% 90%, rgba(99, 102, 241, 0.16) 0px, transparent 55%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px 32px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    height: 56px;
    width: auto;
    margin-bottom: 14px;
}

.login-brand h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #60A5FA, #818CF8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.login-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.95rem;
    margin-top: 6px;
}

.login-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.login-footer {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

/* ============================================================
   Sidebar sections & logout
   ============================================================ */
.nav-section-label {
    padding: 18px 24px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
}

/* Tenant context chip (shown to tenant admins instead of the selector) */
.tenant-context {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================================
   Info banner & pending notice
   ============================================================ */
.info-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 24px;
}

.info-banner-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.info-banner strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.info-banner p {
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.6;
}

.pending-notice {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FCD34D;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Empty state for tables */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Pulsing highlight for the "apply changes" button when edits are pending */
.btn-pulse {
    animation: btn-pulse-anim 1.8s ease-in-out infinite;
}

@keyframes btn-pulse-anim {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
