/* ================================================
   Elite Dangerous Inspired Theme
   ================================================ */

:root {
    /* Core Elite colors */
    --ed-orange: #ff7100;
    --ed-orange-dim: #cc5a00;
    --ed-orange-glow: rgba(255, 113, 0, 0.4);
    --ed-blue: #0a9dff;
    --ed-blue-dim: #0077cc;
    --ed-blue-glow: rgba(10, 157, 255, 0.3);
    --ed-cyan: #00ffd5;
    --ed-red: #ff3333;
    --ed-green: #00ff66;
    --ed-yellow: #ffaa00;

    /* Backgrounds — warmer dark navy */
    --ed-bg-body: #0d1117;
    --ed-bg-body-grad: #141a22;
    --ed-bg-surface: #161b22;
    --ed-bg-elevated: #1c2129;
    --ed-bg-input: #222830;
    --ed-bg-hover: #282e38;
    --ed-bg-dark: #0d1117;
    --ed-bg-panel: rgba(22, 27, 34, 0.95);
    --ed-bg-panel-hover: rgba(28, 33, 41, 0.98);
    --ed-bg-header: rgba(255, 113, 0, 0.08);

    /* Borders — more visible */
    --ed-border-subtle: #2d333b;
    --ed-border: rgba(255, 113, 0, 0.25);
    --ed-border-bright: rgba(255, 113, 0, 0.5);
    --ed-border-blue: rgba(10, 157, 255, 0.3);
    --ed-border-strong: #444c56;

    /* Text — better hierarchy (WCAG AA compliant against ~#161b22) */
    --ed-text: #e6edf3;
    --ed-text-secondary: #b0b8c1;
    --ed-text-dim: #b0b8c1;
    --ed-text-muted: #95a0ab;
    --ed-text-faint: #95a0ab;
    --ed-text-orange: #ff9544;
}

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

html, body {
    font-family: 'Eurostile', 'Segoe UI', 'Arial', sans-serif;
    background: radial-gradient(ellipse at center, var(--ed-bg-body-grad) 0%, var(--ed-bg-body) 100%);
    background-attachment: fixed;
    color: var(--ed-text);
    min-height: 100vh;
}

/* Disable text selection only on interactive/UI chrome elements */
.btn, .badge, .nav-link, .navbar, .sidebar,
.panel-header, .stat-box, .power-chip, .tab-btn,
.rings-page-btn, .settlement-filter-clear,
.back-link, .live-badge, .header-count {
    -webkit-user-select: none;
    user-select: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--ed-text);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 {
    font-size: 1.5rem;
    color: var(--ed-orange);
    text-shadow: 0 0 20px var(--ed-orange-glow);
}

/* Links */
a, .btn-link {
    color: var(--ed-blue);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--ed-orange);
    text-shadow: 0 0 8px var(--ed-orange-glow);
}

/* ================================================
   Elite Panel System
   ================================================ */

.ed-panel {
    background: var(--ed-bg-panel);
    border: 1px solid var(--ed-border);
    position: relative;
    margin-bottom: 1rem;
}

/* Corner accents */
.ed-panel::before,
.ed-panel::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--ed-orange);
    border-style: solid;
    border-width: 0;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.ed-panel::before {
    top: -1px;
    left: -1px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.ed-panel::after {
    bottom: -1px;
    right: -1px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.ed-panel:hover::before,
.ed-panel:hover::after {
    opacity: 1;
}

/* Panel header */
.ed-panel-header {
    background: var(--ed-bg-header);
    border-bottom: 1px solid var(--ed-border);
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-orange);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ed-panel-body {
    padding: 1rem;
}

.ed-panel-body.no-padding {
    padding: 0;
}

/* ================================================
   Stats Display
   ================================================ */

.ed-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.ed-stat {
    background: linear-gradient(180deg, rgba(255, 113, 0, 0.05) 0%, transparent 100%);
    border: 1px solid var(--ed-border);
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.ed-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ed-orange), transparent);
    opacity: 0.5;
}

.ed-stat:hover {
    background: linear-gradient(180deg, rgba(255, 113, 0, 0.1) 0%, transparent 100%);
    border-color: var(--ed-border-bright);
}

.ed-stat-value {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--ed-orange);
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 15px var(--ed-orange-glow);
}

.ed-stat-value.blue {
    color: var(--ed-blue);
    text-shadow: 0 0 15px var(--ed-blue-glow);
}

.ed-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ed-text-dim);
}

/* ================================================
   Data Tables
   ================================================ */

.ed-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ed-table thead {
    background: var(--ed-bg-header);
}

.ed-table th {
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-text-dim);
    border-bottom: 1px solid var(--ed-border);
}

.ed-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 113, 0, 0.1);
    transition: background 0.2s;
}

.ed-table tbody tr {
    cursor: pointer;
    transition: all 0.2s;
}

.ed-table tbody tr:hover {
    background: rgba(255, 113, 0, 0.08);
}

.ed-table tbody tr:hover td {
    color: var(--ed-text-orange);
}

.ed-table .text-end {
    text-align: right;
}

.ed-table .text-center {
    text-align: center;
}

/* Row highlight animation for new data */
.ed-table tbody tr.new-data {
    animation: row-highlight 2s ease-out;
}

@keyframes row-highlight {
    0% {
        background: rgba(255, 113, 0, 0.3);
        box-shadow: inset 0 0 20px var(--ed-orange-glow);
    }
    100% {
        background: transparent;
        box-shadow: none;
    }
}

/* ================================================
   State Badges
   ================================================ */

.ed-badge {
    display: inline-block;
    padding: 0.2em 0.5em;
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
    background: transparent;
}

.ed-badge-stronghold {
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.5);
}

.ed-badge-fortified {
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.5);
}

.ed-badge-exploited {
    color: #f07b05;
    border-color: rgba(240, 123, 5, 0.5);
}

.ed-badge-contested {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.5);
}

.ed-badge-turmoil {
    color: var(--ed-yellow);
    border-color: rgba(255, 170, 0, 0.5);
}

.ed-badge-unoccupied {
    color: #a0a8b0;
    border-color: rgba(160, 168, 176, 0.5);
}

.ed-badge-unknown {
    color: var(--ed-text-dim);
    border-color: rgba(136, 136, 153, 0.5);
}

/* ================================================
   Live Status Indicator
   ================================================ */

.ed-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ed-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.ed-live-dot.connected {
    background: var(--ed-green);
    box-shadow: 0 0 6px var(--ed-green);
    animation: live-pulse 2s ease-in-out infinite;
}

.ed-live-dot.connecting {
    background: var(--ed-yellow);
    animation: live-blink 0.6s ease-in-out infinite;
}

.ed-live-dot.offline {
    background: var(--ed-text-dim);
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--ed-green); }
    50% { opacity: 0.7; box-shadow: 0 0 12px var(--ed-green); }
}

@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ed-live-text {
    color: var(--ed-text-dim);
}

.ed-live-text.connected {
    color: var(--ed-green);
}

/* ================================================
   Buttons
   ================================================ */

.ed-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #f07b05;
    background: rgba(240, 123, 5, 0.15);
    color: #f07b05;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ed-btn:hover {
    background: rgba(240, 123, 5, 0.3);
    color: #fff;
}

.ed-btn-blue {
    border-color: var(--ed-blue);
    color: var(--ed-blue);
}

.ed-btn-blue:hover {
    background: rgba(10, 157, 255, 0.15);
    box-shadow: 0 0 10px var(--ed-blue-glow);
    color: var(--ed-blue);
}

/* ================================================
   Alerts
   ================================================ */

.ed-alert {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-left: 3px solid var(--ed-red);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.ed-alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: rgba(255, 170, 0, 0.3);
    border-left-color: var(--ed-yellow);
}

.ed-alert strong {
    color: var(--ed-red);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.ed-alert-warning strong {
    color: var(--ed-yellow);
}

/* ================================================
   Forms
   ================================================ */

.ed-input, .ed-select {
    background: var(--ed-bg-input);
    border: 1px solid var(--ed-border);
    color: var(--ed-text);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.ed-input:focus, .ed-select:focus {
    outline: none;
    border-color: var(--ed-orange);
    box-shadow: 0 0 10px var(--ed-orange-glow);
}

.ed-input::placeholder {
    color: var(--ed-text-dim);
}

.ed-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-text-dim);
    margin-bottom: 0.3rem;
}

/* ================================================
   Navigation
   ================================================ */

.ed-nav {
    background: var(--ed-bg-panel);
    border-right: 1px solid var(--ed-border);
}

.ed-nav-brand {
    padding: 1rem;
    border-bottom: 1px solid var(--ed-border);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.ed-nav-brand .ed {
    color: var(--ed-orange);
    font-weight: 600;
    text-shadow: 0 0 10px var(--ed-orange-glow);
}

.ed-nav-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--ed-text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.ed-nav-item:hover {
    color: var(--ed-text);
    background: rgba(255, 113, 0, 0.05);
    border-left-color: var(--ed-orange);
}

.ed-nav-item.active {
    color: var(--ed-orange);
    background: rgba(255, 113, 0, 0.1);
    border-left-color: var(--ed-orange);
}

.ed-nav-icon {
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* ================================================
   Layout Utilities
   ================================================ */

.ed-grid {
    display: grid;
    gap: 1rem;
}

.ed-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ed-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .ed-grid-2, .ed-grid-3 {
        grid-template-columns: 1fr;
    }
}

.ed-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ed-col {
    flex: 1;
}

/* ================================================
   Scrollbars
   ================================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--ed-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--ed-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ed-orange);
}

/* ================================================
   Loading
   ================================================ */

.ed-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.ed-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--ed-border);
    border-top-color: var(--ed-orange);
    border-radius: 50%;
    animation: ed-spin 1s linear infinite;
}

@keyframes ed-spin {
    to { transform: rotate(360deg); }
}

/* ================================================
   Pagination
   ================================================ */

.ed-pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

.ed-page-btn {
    padding: 0.4rem 0.7rem;
    background: transparent;
    border: 1px solid var(--ed-border);
    color: var(--ed-text-dim);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ed-page-btn:hover:not(:disabled) {
    border-color: var(--ed-orange);
    color: var(--ed-orange);
}

.ed-page-btn.active {
    background: var(--ed-orange);
    border-color: var(--ed-orange);
    color: #000;
}

.ed-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ================================================
   Text Utilities
   ================================================ */

.text-orange { color: #f07b05 !important; }
.text-blue { color: var(--ed-blue) !important; }
.text-green { color: #00ff88 !important; }
.text-red { color: #ff4444 !important; }
.text-yellow { color: #ffcc00 !important; }
.text-info { color: #3498db !important; }
.text-dim { color: var(--ed-text-dim) !important; }
.text-muted { color: var(--ed-text-muted) !important; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.mono { font-family: 'Consolas', 'Monaco', monospace; }

/* ================================================
   Scanline Effect (subtle)
   ================================================ */

.ed-scanlines::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ================================================
   Bootstrap Overrides
   ================================================ */

.btn-primary {
    background: var(--ed-orange);
    border-color: var(--ed-orange);
    color: #000;
}

.btn-primary:hover {
    background: var(--ed-orange-dim);
    border-color: var(--ed-orange-dim);
}

.btn-outline-primary {
    color: var(--ed-orange);
    border-color: var(--ed-orange);
    background: transparent;
}

.btn-outline-primary:hover {
    background: rgba(255, 113, 0, 0.15);
    border-color: var(--ed-orange);
    color: var(--ed-orange);
}

.btn-outline-danger {
    color: var(--ed-red);
    border-color: var(--ed-red);
}

.btn-sm {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card {
    background: var(--ed-bg-panel);
    border: 1px solid var(--ed-border);
    border-radius: 0;
}

.card-header {
    background: var(--ed-bg-header);
    border-bottom: 1px solid var(--ed-border);
    color: var(--ed-orange);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.6rem 1rem;
}

.table {
    color: var(--ed-text);
    margin-bottom: 0;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 113, 0, 0.1);
}

.table thead th {
    background: linear-gradient(90deg, rgba(255, 113, 0, 0.12) 0%, transparent 60%);
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f07b05;
    border-bottom: 1px solid var(--ed-border);
}

.table tbody tr {
    transition: background 0.2s;
    border-left: 2px solid transparent;
}

.table-hover tbody tr:hover {
    background: rgba(255, 113, 0, 0.08) !important;
    color: var(--ed-text-orange);
    border-left-color: #f07b05;
}

.form-control, .form-select {
    background: var(--ed-bg-input);
    border: 1px solid var(--ed-border);
    color: var(--ed-text);
    border-radius: 0;
}

.form-control:focus, .form-select:focus {
    background: var(--ed-bg-hover);
    border-color: var(--ed-orange);
    box-shadow: 0 0 0 2px var(--ed-orange-glow);
    color: var(--ed-text);
}

.form-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-text-dim);
}

.alert {
    border-radius: 0;
    border-left-width: 3px;
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: rgba(255, 170, 0, 0.3);
    border-left-color: var(--ed-yellow);
    color: var(--ed-text);
}

/* Global sharp edges for Bootstrap elements */
.btn {
    border-radius: 0;
}

.list-group-item {
    border-radius: 0;
}

.pagination .page-link {
    border-radius: 0;
    background: var(--ed-bg-surface);
    border-color: var(--ed-border);
    color: var(--ed-text-dim);
}

.pagination .page-link:hover {
    background: rgba(255, 113, 0, 0.15);
    border-color: var(--ed-orange);
    color: var(--ed-orange);
}

.pagination .page-item.active .page-link {
    background: var(--ed-orange);
    border-color: var(--ed-orange);
    color: #000;
}

.pagination .page-item.disabled .page-link {
    background: var(--ed-bg-panel);
    border-color: var(--ed-border);
    color: var(--ed-text-muted);
    opacity: 0.4;
}

.form-control-lg {
    border-radius: 0;
}

.input-group-text {
    border-radius: 0;
    background: var(--ed-bg-input);
    border-color: var(--ed-border);
    color: var(--ed-text-dim);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Breadcrumb dark theme */
.breadcrumb {
    --bs-breadcrumb-divider-color: var(--ed-text-muted);
    --bs-breadcrumb-item-active-color: var(--ed-text-secondary);
}

.breadcrumb-item a {
    color: var(--ed-text-muted);
}

.breadcrumb-item a:hover {
    color: var(--ed-orange);
}

.badge {
    font-weight: 400;
    border-radius: 0;
}

/* State badges */
.badge-state {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-sm {
    font-size: 0.6rem;
    padding: 1px 4px;
}

.badge-stronghold {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid #9b59b6;
}

.badge-fortified {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.badge-exploited {
    background: rgba(240, 123, 5, 0.2);
    color: #f07b05;
    border: 1px solid #f07b05;
}

.badge-contested {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.badge-turmoil {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.badge-unoccupied {
    background: rgba(160, 168, 176, 0.15);
    color: #a0a8b0;
    border: 1px solid #a0a8b0;
}

.badge-unknown {
    background: rgba(160, 168, 176, 0.15);
    color: #a0a8b0;
    border: 1px solid #a0a8b0;
}

/* Stat cards */
.stat-card {
    background: linear-gradient(180deg, rgba(255, 113, 0, 0.05) 0%, transparent 100%);
    border: 1px solid var(--ed-border);
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ed-orange), transparent);
    opacity: 0.5;
}

.stat-card:hover {
    background: linear-gradient(180deg, rgba(255, 113, 0, 0.1) 0%, transparent 100%);
    border-color: var(--ed-border-bright);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--ed-orange);
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 15px var(--ed-orange-glow);
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ed-text-dim);
}

/* Live status dot */
.live-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 0.75rem;
    vertical-align: middle;
    cursor: help;
}

.live-status-dot.live {
    background: var(--ed-green);
    box-shadow: 0 0 6px var(--ed-green);
    animation: live-pulse 2s ease-in-out infinite;
}

.live-status-dot.connecting {
    background: var(--ed-yellow);
    animation: live-blink 0.6s ease-in-out infinite;
}

.live-status-dot.offline {
    background: var(--ed-text-dim);
}

/* New data row animation */
.activity-new {
    animation: row-highlight 2s ease-out;
}

/* Content area */
.content {
    padding-top: 1rem;
}

/* Error boundary */
.blazor-error-boundary {
    background: var(--ed-red);
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--ed-green);
}

.invalid {
    outline: 1px solid var(--ed-red);
}

.validation-message {
    color: var(--ed-red);
    font-size: 0.8rem;
}

/* Cascade cards */
.cascade-card {
    background: var(--ed-bg-panel);
    border: 1px solid var(--ed-border);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.cascade-card:hover {
    border-color: var(--ed-border-bright);
}

.cascade-rank {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--ed-orange);
    min-width: 2.5rem;
    text-shadow: 0 0 10px var(--ed-orange-glow);
}

.dependent-count {
    font-size: 2rem;
    font-weight: 300;
    color: var(--ed-blue);
    text-shadow: 0 0 10px var(--ed-blue-glow);
}

/* Nav menu specifics */
.nav-badge {
    font-size: 0.6rem;
    padding: 0.15em 0.4em;
    margin-left: 0.5rem;
    background: var(--ed-red);
    color: white;
}

/* Vulnerable page specific */
.stat-card-red .stat-value {
    color: var(--ed-red);
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
}

.stat-card-yellow .stat-value {
    color: var(--ed-yellow);
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

.stat-card-green .stat-value {
    color: var(--ed-green);
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.table-header-red {
    background: rgba(255, 51, 51, 0.15) !important;
    border-bottom: 2px solid var(--ed-red) !important;
}

.table-header-yellow {
    background: rgba(255, 170, 0, 0.15) !important;
    border-bottom: 2px solid var(--ed-yellow) !important;
}

.alert-vulnerable {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-left: 3px solid var(--ed-red);
}

.alert-at-risk {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-left: 3px solid var(--ed-yellow);
}

/* Pulse animation for alerts */
.ed-pulse {
    animation: alert-pulse 2s ease-in-out infinite;
}

@keyframes alert-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ================================================
   Top Navigation Bar
   ================================================ */

.ed-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ed-topnav {
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98) 0%, rgba(13, 17, 23, 0.95) 100%);
    border-bottom: 1px solid var(--ed-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ed-topnav-inner {
    display: flex;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
}

.ed-brand {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--ed-text);
    text-decoration: none;
    margin-right: 2rem;
    text-shadow: 0 0 15px transparent;
    transition: text-shadow 0.2s;
    transform: translateZ(0);
}

.ed-brand:hover {
    text-shadow: 0 0 15px var(--ed-orange-glow);
}

.ed-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
    filter: brightness(0) invert(0.45) sepia(1) saturate(5) hue-rotate(10deg);
    transition: filter 0.2s;
}
.ed-brand:hover .ed-brand-logo {
    filter: brightness(0) invert(0.55) sepia(1) saturate(8) hue-rotate(10deg);
}
.ed-brand-ed {
    color: var(--ed-orange);
    font-weight: 600;
    text-shadow: 0 0 10px var(--ed-orange-glow);
}

.ed-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    transform: translateZ(0);
}

.ed-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-text-dim);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    position: relative;
}

.ed-nav-link:hover {
    color: var(--ed-text);
    background: rgba(255, 113, 0, 0.08);
    border-color: rgba(255, 113, 0, 0.2);
}

.ed-nav-link.active {
    color: var(--ed-orange);
    background: rgba(255, 113, 0, 0.12);
    border-color: var(--ed-border);
}

.ed-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ed-orange);
    box-shadow: 0 0 8px var(--ed-orange-glow);
}

.ed-nav-link-alert {
    color: var(--ed-red);
}

.ed-nav-link-alert:hover {
    color: var(--ed-red);
    background: rgba(255, 51, 51, 0.1);
    border-color: rgba(255, 51, 51, 0.3);
}

.ed-nav-link-alert.active {
    color: var(--ed-red);
    background: rgba(255, 51, 51, 0.15);
    border-color: rgba(255, 51, 51, 0.4);
}

.ed-nav-link-alert.active::after {
    background: var(--ed-red);
    box-shadow: 0 0 8px rgba(255, 51, 51, 0.5);
}

.ed-nav-badge {
    font-size: 0.6rem;
    padding: 0.15em 0.4em;
    background: var(--ed-red);
    color: white;
    font-weight: 500;
    min-width: 1.2em;
    text-align: center;
}

/* Cycle Countdown Timer */
.ed-cycle-timer {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ed-cycle-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-text-muted);
    white-space: nowrap;
}

.ed-cycle-countdown {
    display: flex;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.ed-cycle-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
    padding: 4px 6px 3px;
    background: rgba(255, 113, 0, 0.07);
    border: 1px solid rgba(255, 113, 0, 0.18);
    gap: 2px;
}

.ed-cycle-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ff9033;
    line-height: 1;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.ed-cycle-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e6edf3;
    line-height: 1;
}

/* ================================================
   Nav Search Dropdown
   ================================================ */

.ed-nav-search-container {
    margin-left: 0.75rem;
    position: relative;
}

.ed-search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--ed-bg-input);
    border: 1px solid var(--ed-border);
    padding: 0 0.6rem;
    height: 34px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ed-search-input-wrap:focus-within {
    border-color: var(--ed-orange);
    box-shadow: 0 0 8px var(--ed-orange-glow);
}

.ed-search-icon {
    color: var(--ed-text-muted);
    flex-shrink: 0;
    transition: color 0.2s;
}

.ed-search-input-wrap:focus-within .ed-search-icon {
    color: var(--ed-orange);
}

.ed-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--ed-text);
    font-size: 0.78rem;
    padding: 0 0.5rem;
    width: 180px;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.ed-search-input::placeholder {
    color: var(--ed-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.ed-search-clear {
    background: none;
    border: none;
    color: var(--ed-text-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.ed-search-clear:hover {
    color: var(--ed-orange);
}

.ed-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 280px;
    background: var(--ed-bg-surface);
    border: 1px solid var(--ed-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    max-height: 360px;
    overflow-y: auto;
}

.ed-search-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ed-orange), transparent);
    opacity: 0.5;
}

.ed-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    color: var(--ed-text);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.12s;
    cursor: pointer;
}

.ed-search-result:hover {
    background: rgba(255, 113, 0, 0.08);
    border-left-color: var(--ed-orange);
    color: var(--ed-text-orange);
}

.ed-search-result + .ed-search-result {
    border-top: 1px solid rgba(255, 113, 0, 0.06);
}

.ed-search-result-name {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.ed-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--ed-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ed-spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid var(--ed-border);
    border-top-color: var(--ed-orange);
    border-radius: 50%;
    animation: ed-spin 0.8s linear infinite;
}

.ed-search-empty {
    padding: 1rem;
    text-align: center;
    color: var(--ed-text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

/* Main Content Area */
.ed-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ed-content {
    flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ================================================
   Nav Power Badge
   ================================================ */

.ed-power-badge-container {
    position: relative;
    margin-left: 0.5rem;
}

.ed-power-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(240, 123, 5, 0.08);
    border: 1px solid rgba(240, 123, 5, 0.25);
    padding: 4px 10px 4px 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--ed-text-secondary);
    font-family: inherit;
    font-size: 0.75rem;
    white-space: nowrap;
}

.ed-power-badge:hover {
    border-color: var(--ed-orange);
    background: rgba(240, 123, 5, 0.15);
    color: var(--ed-orange);
}

.ed-power-badge-empty {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.ed-power-badge-empty:hover {
    border-color: var(--ed-orange);
    background: rgba(240, 123, 5, 0.08);
}

.ed-power-badge-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.ed-power-badge:hover .ed-power-badge-logo {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(240, 123, 5, 0.4));
}

.ed-power-badge-name {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ed-power-badge-chevron {
    color: var(--ed-text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ed-power-badge-chevron.open {
    transform: rotate(180deg);
}

.ed-power-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 200px;
    background: var(--ed-bg-surface);
    border: 1px solid rgba(240, 123, 5, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 123, 5, 0.3) transparent;
}

.ed-power-dropdown-header {
    padding: 8px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-text-muted);
    border-bottom: 1px solid rgba(240, 123, 5, 0.1);
}

.ed-power-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: var(--ed-text-secondary);
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.ed-power-dropdown-item:hover {
    background: rgba(240, 123, 5, 0.1);
    color: var(--ed-text);
}

.ed-power-dropdown-item.active {
    background: rgba(240, 123, 5, 0.12);
    color: var(--ed-orange);
}

.ed-power-dropdown-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    flex-shrink: 0;
}

.ed-power-dropdown-item:hover .ed-power-dropdown-logo,
.ed-power-dropdown-item.active .ed-power-dropdown-logo {
    opacity: 0.9;
}

.ed-power-dropdown-check {
    margin-left: auto;
    color: var(--ed-orange);
    flex-shrink: 0;
}

.ed-power-dropdown-sep {
    height: 1px;
    background: rgba(240, 123, 5, 0.1);
    margin: 2px 0;
}

.ed-power-dropdown-clear {
    color: var(--ed-text-muted);
    font-size: 0.72rem;
}

.ed-power-dropdown-clear:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.08);
}

/* ================================================
   Navigation Progress Bar
   ================================================ */
.nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.nav-progress.active {
    opacity: 1;
}

.nav-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, transparent, #f07b05, #ff9933, #f07b05, transparent);
    width: 40%;
    animation: nav-progress-slide 0.8s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(240, 123, 5, 0.6), 0 0 20px rgba(240, 123, 5, 0.3);
}

@keyframes nav-progress-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ================================================
   Staggered Page Animations
   ================================================ */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in-up 0.3s ease-out both;
}

.fade-in-d1 {
    animation: fade-in-up 0.3s ease-out 0.05s both;
}

.fade-in-d2 {
    animation: fade-in-up 0.3s ease-out 0.1s both;
}

.fade-in-d3 {
    animation: fade-in-up 0.3s ease-out 0.15s both;
}

.fade-in-d4 {
    animation: fade-in-up 0.3s ease-out 0.2s both;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .ed-topnav-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .ed-brand {
        margin-right: auto;
    }

    .ed-nav-links {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .ed-nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }

    .ed-nav-search-container {
        order: 2;
        margin-left: 0;
        width: 100%;
    }

    .ed-search-input {
        width: 100%;
    }

    .ed-search-dropdown {
        min-width: 100%;
    }

    .ed-cycle-timer {
        order: 1;
        margin-left: auto;
    }

    .ed-cycle-block {
        min-width: 30px;
        padding: 3px 4px 2px;
    }

    .ed-cycle-number {
        font-size: 0.95rem;
    }

    .ed-power-badge-container {
        order: 1;
        margin-left: 0;
    }

    .ed-power-badge-name {
        display: none;
    }

    .ed-power-badge {
        padding: 4px 6px;
    }

    .ed-power-dropdown {
        right: auto;
        left: 0;
    }

    .ed-content {
        padding: 1rem;
    }
}

/* Remove old sidebar styles */
.page, .sidebar, .top-row, .nav-scrollable {
    all: unset;
}

.navbar-toggler {
    display: none;
}

/* ================================================
   Shared: Loading / Empty / Error States
   ================================================ */

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--ed-bg-surface);
    border: 1px solid var(--ed-border-subtle);
    padding: 60px 20px;
    text-align: center;
    color: var(--ed-text-muted);
    gap: 8px;
}

.empty-state h4 {
    color: var(--ed-text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--ed-text-muted);
    margin: 0;
}

.empty-state small {
    color: var(--ed-text-muted);
    font-size: 0.8rem;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--ed-bg-surface);
    border: 1px solid var(--ed-border-subtle);
}

.error-state h4 {
    color: var(--ed-text-secondary);
    margin-bottom: 8px;
}

.error-state p {
    color: var(--ed-text-muted);
    margin-bottom: 16px;
}

.btn-retry {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #f07b05;
    color: #f07b05;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-retry:hover {
    background: rgba(240, 123, 5, 0.1);
}

.btn-back {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #f07b05;
    color: #f07b05;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-back:hover {
    background: rgba(240, 123, 5, 0.1);
}

/* ================================================
   Shared: Filter Panel
   ================================================ */

.filter-panel {
    background: var(--ed-bg-surface);
    border: 1px solid rgba(255, 113, 0, 0.15);
    padding: 16px;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ed-text-muted);
    font-weight: 600;
}

.filter-select {
    background: var(--ed-bg-input);
    border: 1px solid var(--ed-border-strong);
    color: var(--ed-text);
    font-size: 0.8rem;
    padding: 6px 10px;
    min-width: 140px;
}

.filter-select:focus {
    background: var(--ed-bg-input);
    border-color: #f07b05;
    box-shadow: none;
    color: #fff;
}

/* ================================================
   Shared: Stats Row + Stat Card
   ================================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, var(--ed-bg-surface) 0%, var(--ed-bg-elevated) 100%);
    border: 1px solid var(--ed-border-subtle);
    padding: 20px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f07b05;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--ed-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stat-card .stat-sublabel {
    font-size: 0.7rem;
    color: var(--ed-text-muted);
    margin-top: 4px;
}

/* ================================================
   Shared: Panel
   ================================================ */

.panel {
    background: var(--ed-bg-surface);
    border: 1px solid rgba(255, 113, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.panel::before,
.panel::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-style: solid;
    border-color: rgba(255, 113, 0, 0.3);
    border-width: 0;
    transition: all 0.25s;
    z-index: 2;
}

.panel::before {
    top: -1px; left: -1px;
    border-top-width: 2px; border-left-width: 2px;
}

.panel::after {
    bottom: -1px; right: -1px;
    border-bottom-width: 2px; border-right-width: 2px;
}

.panel:hover::before,
.panel:hover::after {
    border-color: #f07b05;
    width: 22px;
    height: 22px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(255, 113, 0, 0.12) 0%, transparent 60%);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f07b05;
    border-bottom: 2px solid rgba(255, 113, 0, 0.2);
}

.panel-body {
    padding: 16px;
    flex: 1;
    min-height: 0;
}

.panel-body.no-pad {
    padding: 0;
}

.panel-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(240, 123, 5, 0.15);
    color: #f07b05;
    text-transform: none;
}

.panel-badge.badge-red { background: rgba(255, 68, 68, 0.2); color: #ff4444; }
.panel-badge.badge-green { background: rgba(0, 255, 136, 0.2); color: #00ff88; }
.panel-badge.badge-yellow { background: rgba(255, 204, 0, 0.2); color: #ffcc00; }

.panel-compact {
    margin-bottom: 12px;
}

.panel-warning .panel-header {
    border-bottom-color: rgba(255, 204, 0, 0.3);
}

.panel-danger .panel-header {
    border-bottom-color: rgba(255, 68, 68, 0.3);
}

/* ================================================
   Shared: Stat Box
   ================================================ */

.stat-box {
    background: var(--ed-bg-surface);
    border: 1px solid rgba(255, 113, 0, 0.15);
    border-top: 2px solid #f07b05;
    padding: 16px;
    text-align: center;
    position: relative;
}

.stat-box .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ed-text);
    line-height: 1.2;
    font-family: 'Consolas', 'Monaco', monospace;
}

.stat-box .stat-label {
    font-size: 0.7rem;
    color: var(--ed-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stat-box .stat-sublabel {
    font-size: 0.6rem;
    color: var(--ed-text-faint);
    margin-top: 2px;
}

.stat-box.stat-green .stat-value { color: #00ff88; }
.stat-box.stat-red .stat-value { color: #ff4444; }
.stat-box.stat-conflict .stat-value { color: #ffcc00; }

/* ================================================
   Shared: Back Link
   ================================================ */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ed-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    margin-bottom: 12px;
    transition: color 0.15s;
}

.back-link:hover { color: #f07b05; }
.back-icon { font-size: 1rem; }

/* ================================================
   Shared: Detail Header + Grid
   ================================================ */

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.update-time {
    font-size: 0.75rem;
    color: var(--ed-text-muted);
}

/* ================================================
   Shared: Data Table
   ================================================ */

.ed-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8rem;
}

.ed-data-table thead {
    background-color: var(--ed-bg-elevated);
    background-image: linear-gradient(90deg, rgba(255, 113, 0, 0.12) 0%, transparent 60%);
}

.ed-data-table th {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f07b05;
    border-bottom: none;
    box-shadow: inset 0 -2px 0 #f07b05;
}

.ed-data-table td {
    padding: 6px 12px;
    color: var(--ed-text-secondary);
    border-bottom: 1px solid rgba(255, 113, 0, 0.06);
}

.ed-data-table tbody tr {
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.ed-data-table tbody tr:hover {
    background: rgba(240, 123, 5, 0.08);
    border-left-color: #f07b05;
}

.ed-data-table tbody tr:last-child td {
    border-bottom: none;
}

.ed-data-table thead.sticky {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* ================================================
   Shared: Live Badge
   ================================================ */

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-size: 0.65rem;
    font-weight: 600;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

/* ================================================
   Shared: Empty Message
   ================================================ */

.empty-message {
    padding: 16px;
    text-align: center;
    color: var(--ed-text-muted);
    font-size: 0.85rem;
}

/* ================================================
   Shared: ED Button Outline Variant
   ================================================ */

.ed-btn-outline {
    background: transparent;
    border-color: rgba(255, 113, 0, 0.3);
    color: var(--ed-text-secondary);
}

.ed-btn-outline:hover {
    border-color: #f07b05;
    color: #f07b05;
    background: rgba(240, 123, 5, 0.1);
}

/* ================================================
   Shared: Responsive Detail Layout
   ================================================ */

@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-header { flex-direction: column; }
}

/* ================================================
   Shared: Results Header
   ================================================ */

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--ed-text-secondary);
    font-size: 0.85rem;
}

.results-count strong {
    color: #f07b05;
}

/* ================================================
   Shared: Page Header
   ================================================ */

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    margin-bottom: 4px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--ed-text);
}

.page-subtitle {
    color: var(--ed-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ================================================
   Shared: Small Utilities
   ================================================ */

.clickable-row {
    cursor: pointer;
}

/* Copy Button */
.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    color: var(--ed-text-faint);
    cursor: pointer;
    transition: all 0.15s;
    vertical-align: middle;
    flex-shrink: 0;
}
.btn-copy:hover {
    color: #f07b05;
    border-color: rgba(240, 123, 5, 0.3);
    background: rgba(240, 123, 5, 0.1);
}
.btn-copy.copied {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.1);
}

/* ================================================
   Power Logos (from edassets.org)
   ================================================ */

.power-logo {
    display: inline-block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    transition: filter 0.15s;
}
.power-logo:hover,
.power-card:hover .power-logo {
    filter: brightness(0) invert(0.7) sepia(1) saturate(5) hue-rotate(350deg);
}
.power-logo-sm { width: 16px; height: 16px; }
.power-logo-md { width: 24px; height: 24px; }
.power-logo-lg { width: 32px; height: 32px; }
.power-logo-xl { width: 40px; height: 40px; }
