/* Copyright (c) 2025-2026 William Chesher | MIT License */
/* fleet.css - Fleet management styles (miniverses.html, miniverse.html) */

/* ============================================
   Shared: Fleet/Dashboard Headers
   ============================================ */

.fleet-header,
.dashboard-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent-bg), transparent);
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
}

.fleet-header {
    justify-content: space-between;
}

.dashboard-header {
    gap: 1.25rem;
}

html.dark-theme .fleet-header,
html.dark-theme .dashboard-header {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), rgba(31, 41, 64, 0.8));
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.fleet-header .title-block h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

html.dark-theme .fleet-header .title-block h1 {
    color: #fff;
}

.fleet-header .title-block h1 i {
    color: var(--accent);
    width: 32px;
    height: 32px;
}

.fleet-header .title-block .subtitle {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
}

.dashboard-header .miniverse-icon {
    width: 56px;
    height: 56px;
    color: var(--accent, #7c6fae);
    flex-shrink: 0;
}

.dashboard-header .title-block {
    flex: 1;
    min-width: 0;
}

.dashboard-header .mininame {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.dark-theme .dashboard-header .mininame {
    color: #fff;
}

.dashboard-header .miniid-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

/* Larger health badge in dashboard header */
.dashboard-header .health-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
}

.dashboard-header .health-badge.online .health-dot,
.dashboard-header .health-badge.online .dot {
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.dashboard-header .health-badge.offline .health-dot,
.dashboard-header .health-badge.offline .dot {
    box-shadow: 0 0 4px rgba(158, 158, 158, 0.4);
}

.dashboard-header .miniid {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #666;
}

html.dark-theme .dashboard-header .miniid {
    color: #aaa;
}

/* ============================================
   Shared: Stats Cards
   ============================================ */

.stats-cards {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

@media (max-width: 500px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stat-color, var(--accent)), transparent);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.stat-card:hover {
    border-color: var(--stat-color, var(--accent));
    box-shadow: 0 4px 16px color-mix(in srgb, var(--stat-color, var(--accent)) 15%, transparent);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

html.dark-theme .stat-card {
    background: #1f2940;
    border-color: #2a3a55;
}

html.dark-theme .stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* miniverses.html stat card layout */
.stat-card .stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    opacity: 0.8;
}

.stat-card .stat-content {
    flex: 1;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

html.dark-theme .stat-card .stat-value {
    color: #fff;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* miniverse.html stat card layout */
.stat-card .stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stat-card .stat-sub {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 0.25rem;
}

/* Stat card color variants */
.stat-card.online  { --stat-color: #4caf50; }
.stat-card.devices { --stat-color: #2196f3; }
.stat-card.virtual { --stat-color: #9c27b0; }

.stat-card.online .stat-icon  { color: #4caf50; }
.stat-card.devices .stat-icon { color: #2196f3; }
.stat-card.virtual .stat-icon { color: #9c27b0; }

/* Per-position color coding for miniverse.html stat cards (5-col grid) */
.stats-cards .stat-card:nth-child(1) { --stat-color: #2196f3; }   /* devices - blue */
.stats-cards .stat-card:nth-child(2) { --stat-color: #9c27b0; }   /* fingerprints - purple */
.stats-cards .stat-card:nth-child(3) { --stat-color: #ff9800; }   /* nfc badges - amber */
.stats-cards .stat-card:nth-child(4) { --stat-color: #4caf50; }   /* zones - green */
.stats-cards .stat-card:nth-child(5) { --stat-color: #e91e63; }   /* sensors - pink */

.stats-cards .stat-card:nth-child(1) .stat-icon { color: #2196f3; }
.stats-cards .stat-card:nth-child(2) .stat-icon { color: #9c27b0; }
.stats-cards .stat-card:nth-child(3) .stat-icon { color: #ff9800; }
.stats-cards .stat-card:nth-child(4) .stat-icon { color: #4caf50; }
.stats-cards .stat-card:nth-child(5) .stat-icon { color: #e91e63; }

/* ============================================
   Shared: Tab System
   ============================================ */

.tab-container {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

html.dark-theme .tab-container {
    border: 1px solid #2a3a55;
}

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid #eee;
}

html.dark-theme .tab-header {
    border-color: #2a3a55;
}

.tab-nav {
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn::after {
    height: 2px;
}

.tab-search {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.tab-search input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    width: 200px;
    background: #f8f8f8;
    transition: all 0.2s;
}

.tab-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    width: 250px;
}

html.dark-theme .tab-search input {
    background: #16213e;
    border-color: #3a4a65;
    color: #eee;
}

html.dark-theme .tab-search input:focus {
    background: #1f2940;
    border-color: var(--accent);
}

.tab-content {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* ============================================
   Miniverse Grid & Cards (miniverses.html)
   ============================================ */

.miniverse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

@media (max-width: 700px) {
    .miniverse-grid {
        grid-template-columns: 1fr;
    }
}

.miniverse-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid transparent;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.miniverse-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.miniverse-card.highlight {
    animation: highlight-pulse 2s ease-out;
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 50%, transparent); }
    100% { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
}

html.dark-theme .miniverse-card {
    background: rgba(15, 15, 35, 0.85);
    border: 1px solid rgba(124, 255, 220, 0.15);
}

html.dark-theme .miniverse-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.miniverse-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.miniverse-card .miniverse-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    flex-shrink: 0;
}

.miniverse-card .card-identity {
    flex: 1;
    min-width: 0;
}

.miniverse-card .miniid {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.dark-theme .miniverse-card .miniid {
    color: #fff;
}

.miniverse-card .mininame {
    font-size: 0.85rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.dark-theme .miniverse-card .mininame {
    color: #aaa;
}

.miniverse-card .health-badge {
    flex-shrink: 0;
}

.miniverse-card .card-stats {
    display: flex;
    padding: 0 1.25rem 1rem;
    gap: 1.5rem;
}

.miniverse-card .card-stat {
    display: flex;
    flex-direction: column;
}

.miniverse-card .card-stat .value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

html.dark-theme .miniverse-card .card-stat .value {
    color: #fff;
}

.miniverse-card .card-stat .label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.miniverse-card .card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border-top: 1px solid #eee;
}

html.dark-theme .miniverse-card .card-actions {
    background: transparent;
    border-color: rgba(124, 255, 220, 0.1);
}

.miniverse-card .card-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.miniverse-card .card-action-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.miniverse-card .card-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.miniverse-card .card-action-btn.danger:hover:not(:disabled) {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

html.dark-theme .miniverse-card .card-action-btn {
    border-color: #3a4a65;
    color: #aaa;
}

/* ============================================
   Shared: Activity Timeline
   ============================================ */

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 400px;
    overflow-y: auto;
    padding-left: 1.25rem;
    border-left: 2px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    border: 1px solid #eee;
    border-left: none;
    margin-bottom: 0.5rem;
    margin-left: -1.25rem;
    padding-left: 1.25rem;
    position: relative;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary, #fff);
}

html.dark-theme .activity-item {
    background: #16213e;
    border-color: #2a3a55;
}

html.dark-theme .activity-item::before {
    border-color: #16213e;
}

.activity-item .activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-item .activity-content {
    flex: 1;
    min-width: 0;
}

.activity-item .activity-title,
.activity-item .activity-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

html.dark-theme .activity-item .activity-title,
html.dark-theme .activity-item .activity-text {
    color: #eee;
}

.activity-item .activity-meta,
.activity-item .activity-time {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

/* ============================================
   Device Table (miniverses.html)
   ============================================ */

.device-table {
    width: 100%;
    border-collapse: collapse;
}

.device-table th,
.device-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

html.dark-theme .device-table th,
html.dark-theme .device-table td {
    border-color: #2a3a55;
}

.device-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
}

html.dark-theme .device-table th {
    background: #16213e;
}

.device-table td {
    font-size: 0.9rem;
    color: #333;
}

html.dark-theme .device-table td {
    color: #eee;
}

.device-table .device-id {
    font-family: 'Roboto Mono', monospace;
}

.device-table .miniverse-link {
    color: var(--accent);
    text-decoration: none;
}

.device-table .miniverse-link:hover {
    text-decoration: underline;
}

/* ============================================
   Shared: Status Indicators
   ============================================ */

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

.status-dot.offline {
    background: #9e9e9e;
}

/* ============================================
   Content Sections (miniverse.html)
   ============================================ */

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.content-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 3px solid color-mix(in srgb, var(--accent) 40%, transparent);
    transition: border-color 0.2s;
}

.content-section:hover {
    border-left-color: var(--accent);
}

html.dark-theme .content-section {
    background: #16213e;
    border-left-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

html.dark-theme .content-section:hover {
    border-left-color: var(--accent);
}

.content-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section h3 i {
    color: var(--accent);
}

html.dark-theme .content-section h3 {
    color: #aaa;
}

/* ============================================
   Quick Actions (miniverse.html)
   ============================================ */

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.75rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    color: #555;
}

.quick-action-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 15%, transparent);
}

.quick-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-action-btn i {
    font-size: 1.25rem;
    color: var(--accent);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.quick-action-btn:hover:not(:disabled) i {
    opacity: 1;
}

html.dark-theme .quick-action-btn {
    background: #1f2940;
    border-color: #3a4a65;
    color: #aaa;
}

/* ============================================
   Device List (miniverse.html)
   ============================================ */

.device-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.device-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.device-row:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

html.dark-theme .device-row {
    background: #1f2940;
    border-color: #2a3a55;
}

.device-row .device-id {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #333;
}

html.dark-theme .device-row .device-id {
    color: #eee;
}

.device-row .device-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #888;
}

/* ============================================
   Identity Tags (miniverse.html)
   ============================================ */

.identity-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.identity-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #444;
    transition: all 0.2s;
}

.identity-tag:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

html.dark-theme .identity-tag {
    background: #2a3a55;
    border-color: #3a4a65;
    color: #ccc;
}

.identity-tag .tag-meta {
    font-size: 0.7rem;
    color: #888;
    font-family: 'Roboto Mono', monospace;
}

/* ============================================
   Info Grid (miniverse.html)
   ============================================ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item .label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 0.9rem;
    color: #333;
}

html.dark-theme .info-item .value {
    color: #eee;
}

/* ============================================
   Settings Controls (miniverse.html)
   ============================================ */

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.setting-row:last-child {
    border-bottom: none;
}

html.dark-theme .setting-row {
    border-color: #2a3a55;
}

.setting-row .setting-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.setting-row .setting-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

html.dark-theme .setting-row .setting-name {
    color: #eee;
}

.setting-row .setting-hint {
    font-size: 0.75rem;
    color: #888;
}

.setting-row select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 150px;
}

html.dark-theme .setting-row select {
    background: #16213e;
    border-color: #3a4a65;
    color: #eee;
}

/* ============================================
   Token Status (miniverse.html)
   ============================================ */

.token-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.token-status.configured {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.token-status.not-set {
    background: rgba(158, 158, 158, 0.15);
    color: #757575;
}

html.dark-theme .token-status.configured {
    background: rgba(76, 175, 80, 0.25);
    color: #81c784;
}

html.dark-theme .token-status.not-set {
    background: rgba(158, 158, 158, 0.25);
    color: #9e9e9e;
}

/* ============================================
   Danger Zone & Emergency Controls
   ============================================ */

.danger-zone,
.emergency-controls {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
}

html.dark-theme .danger-zone,
html.dark-theme .emergency-controls {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.danger-zone h3,
.emergency-controls h3 {
    color: #e74c3c !important;
    margin-bottom: 1rem;
}

.emergency-controls h3 {
    margin-bottom: 0.5rem;
}

.danger-zone .danger-btn {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.danger-zone .danger-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.emergency-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.emergency-controls .suspend-btn,
.emergency-controls .resume-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.emergency-controls .suspend-btn {
    background: #e74c3c;
}

.emergency-controls .suspend-btn:hover {
    background: #c0392b;
    transform: scale(1.02);
}

.emergency-controls .resume-btn {
    background: #27ae60;
}

.emergency-controls .resume-btn:hover {
    background: #1e8449;
    transform: scale(1.02);
}

/* ============================================
   Command Output (miniverse.html)
   ============================================ */

.command-output {
    margin-top: 1rem;
    background: #1a1a1a;
    border-radius: 6px;
    padding: 1rem;
    display: none;
}

.command-output.show {
    display: block;
}

.command-output pre {
    margin: 0;
    color: #4caf50;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}

/* ============================================
   Shared: Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #888;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--accent);
}

.empty-state h3 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

html.dark-theme .empty-state h3 {
    color: #ccc;
}

.empty-state p {
    font-size: 0.9rem;
}

.empty-state .button {
    margin-top: 1rem;
}

/* ============================================
   Shared: Loading Skeleton
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

html.dark-theme .skeleton {
    background: linear-gradient(90deg, #2a3a55 25%, #3a4a65 50%, #2a3a55 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Misc: Manage Links, Full Width
   ============================================ */

.manage-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.manage-link:hover {
    background: var(--accent);
    color: #fff;
}

.full-width {
    grid-column: 1 / -1;
}
