/* License Radar - Performance Optimized Theme */

:root {
    /* Dark backgrounds - solid colors */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;

    /* Muted accent colors */
    --neon-cyan: #5ec8c8;
    --neon-magenta: #c77dba;
    --neon-pink: #d65a7c;
    --neon-purple: #8b5eab;
    --neon-blue: #6b82c9;
    --neon-green: #5fbf8f;
    --neon-yellow: #d4b85a;
    --neon-orange: #d97b5a;

    /* Soft accent backgrounds */
    --accent-cyan-soft: rgba(94, 200, 200, 0.15);
    --accent-pink-soft: rgba(214, 90, 124, 0.15);
    --accent-purple-soft: rgba(139, 94, 171, 0.15);

    /* Text colors */
    --text-primary: #e8e8f0;
    --text-secondary: #9090aa;
    --text-muted: #606075;

    /* Simple gradients for accents only */
    --gradient-pink-purple: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
    --gradient-cyan-purple: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Simple shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
}

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    letter-spacing: 0.01em;
}

h1 {
    font-size: 2.5rem;
    background: var(--gradient-cyan-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--neon-magenta);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-default);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-pink-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-pink-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    background: transparent;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    background: var(--accent-cyan-soft);
    border-color: rgba(94, 200, 200, 0.1);
}

.nav-links a.active {
    color: var(--neon-cyan);
    background: var(--accent-cyan-soft);
    border-color: rgba(94, 200, 200, 0.15);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-primary {
    background: var(--gradient-pink-purple);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: rgba(94, 200, 200, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(94, 200, 200, 0.25);
}

.btn-secondary:hover {
    background: rgba(94, 200, 200, 0.15);
    border-color: rgba(94, 200, 200, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--neon-cyan);
    background: rgba(94, 200, 200, 0.05);
}

.btn-danger {
    background: var(--neon-orange);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-default);
    padding: 1.75rem;
    transition: border-color var(--transition-fast);
}

.card:hover {
    border-color: var(--border-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border-default);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-cyan-purple);
}

.stat-card:hover {
    border-color: rgba(94, 200, 200, 0.15);
}

.stat-card.warning::before {
    background: var(--neon-yellow);
}

.stat-card.danger::before {
    background: var(--neon-orange);
}

.stat-card.success::before {
    background: var(--neon-green);
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--neon-cyan);
    line-height: 1;
    margin-bottom: 0.625rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.9375rem 1.125rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
}

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

.table th,
.table td {
    padding: 1.125rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.table th:first-child {
    border-radius: 8px 0 0 0;
}

.table th:last-child {
    border-radius: 0 8px 0 0;
}

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

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Progress bar */
.progress-bar {
    height: 8px;
    background: var(--bg-darker);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-cyan-purple);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.warning {
    background: var(--neon-yellow);
}

.progress-fill.danger {
    background: var(--neon-orange);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.badge-success {
    background: rgba(95, 191, 143, 0.12);
    color: var(--neon-green);
    border-color: rgba(95, 191, 143, 0.2);
}

.badge-warning {
    background: rgba(212, 184, 90, 0.12);
    color: var(--neon-yellow);
    border-color: rgba(212, 184, 90, 0.2);
}

.badge-danger {
    background: rgba(217, 123, 90, 0.12);
    color: var(--neon-orange);
    border-color: rgba(217, 123, 90, 0.2);
}

.badge-info {
    background: rgba(94, 200, 200, 0.12);
    color: var(--neon-cyan);
    border-color: rgba(94, 200, 200, 0.2);
}

/* Server cards */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-default);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.server-card:hover {
    border-color: var(--border-hover);
}

.server-header {
    padding: 1.375rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.server-name {
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.server-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-green);
}

.server-status.error {
    background: var(--neon-orange);
}

.server-body {
    padding: 1.375rem 1.5rem;
}

.license-list {
    list-style: none;
}

.license-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--transition-fast);
}

.license-item:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 6px;
}

.license-item:last-child {
    border-bottom: none;
}

.license-name {
    font-weight: 500;
}

.license-version {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.license-count {
    text-align: right;
}

.license-usage {
    font-size: 1.125rem;
    font-weight: 600;
}

.license-usage .in-use {
    color: var(--neon-cyan);
}

.license-usage .total {
    color: var(--text-muted);
}

.server-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.server-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Auth pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    font-size: 2rem;
    margin-top: 0.5rem;
}

.auth-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.auth-title p {
    color: var(--text-secondary);
    margin-top: 0.625rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Dashboard layout */
.dashboard {
    padding: 2.5rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section {
    margin-bottom: 3.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

/* Alert messages */
.alert {
    padding: 1.125rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(217, 123, 90, 0.12);
    border: 1px solid rgba(217, 123, 90, 0.25);
    color: var(--neon-orange);
}

.alert-success {
    background: rgba(95, 191, 143, 0.12);
    border: 1px solid rgba(95, 191, 143, 0.25);
    color: var(--neon-green);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.1);
}

/* Utility classes */
.text-gradient {
    background: var(--gradient-cyan-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

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

    .server-grid {
        grid-template-columns: 1fr;
    }

    .navbar-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .card {
        padding: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .auth-card {
        padding: 2rem;
    }

    h1 {
        font-size: 2rem;
    }
}

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

    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Focus States */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
}

.btn-primary:focus-visible {
    outline-color: var(--neon-pink);
}

.form-input:focus-visible {
    outline: none;
    border-color: var(--neon-cyan);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
    background: var(--accent-cyan-soft);
}

a:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Custom Checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-default);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}

input[type="checkbox"]:hover {
    border-color: rgba(94, 200, 200, 0.35);
}

input[type="checkbox"]:checked {
    background: var(--gradient-cyan-purple);
    border-color: transparent;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* Custom Radio */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-default);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}

input[type="radio"]:hover {
    border-color: rgba(94, 200, 200, 0.35);
}

input[type="radio"]:checked {
    border-color: var(--neon-cyan);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--gradient-cyan-purple);
    border-radius: 50%;
}

input[type="radio"]:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.form-check-label {
    color: var(--text-primary);
    font-size: 0.9375rem;
    cursor: pointer;
    user-select: none;
}

/* Form Validation */
.form-input:valid:not(:placeholder-shown) {
    border-color: rgba(95, 191, 143, 0.35);
}

.form-input:user-invalid,
.form-input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: rgba(217, 123, 90, 0.4);
}

.form-validation-message {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.form-validation-message.error {
    color: var(--neon-orange);
}

.form-validation-message.success {
    color: var(--neon-green);
}

/* Enhanced Tables */
.table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 10, 15, 0.98);
}

.table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.01);
}

.table code,
code {
    background: rgba(94, 200, 200, 0.08);
    color: var(--neon-cyan);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875em;
    border: 1px solid rgba(94, 200, 200, 0.12);
}

/* Button Loading States */
.btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-right-color: currentColor;
    border-radius: 50%;
    animation: btn-spinner 0.6s linear infinite;
}

.btn-primary.loading::after {
    border-top-color: white;
    border-right-color: white;
}

.btn-secondary.loading::after {
    border-top-color: var(--neon-cyan);
    border-right-color: var(--neon-cyan);
}

@keyframes btn-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast-success::before {
    background: var(--neon-green);
}

.toast-error::before {
    background: var(--neon-orange);
}

.toast-warning::before {
    background: var(--neon-yellow);
}

.toast-info::before {
    background: var(--neon-cyan);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.toast-success .toast-icon { color: var(--neon-green); }
.toast-error .toast-icon { color: var(--neon-orange); }
.toast-warning .toast-icon { color: var(--neon-yellow); }
.toast-info .toast-icon { color: var(--neon-cyan); }

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

.toast-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    margin: -0.25rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Skeleton Loading - simple fade */
.skeleton {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-text-sm {
    height: 0.75em;
}

.skeleton-text-lg {
    height: 1.5em;
}

.skeleton-stat {
    height: 2.75rem;
    width: 80px;
    margin-bottom: 0.625rem;
}

.skeleton-card {
    min-height: 200px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-avatar-lg {
    width: 64px;
    height: 64px;
}

.skeleton-btn {
    height: 42px;
    width: 120px;
    border-radius: 8px;
}

/* Touch-Friendly */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .btn-sm {
        min-height: 38px;
        padding: 0.5rem 1rem;
    }

    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    input[type="checkbox"],
    input[type="radio"] {
        width: 24px;
        height: 24px;
    }

    input[type="checkbox"]:checked::after {
        left: 8px;
        top: 4px;
        width: 6px;
        height: 12px;
    }

    input[type="radio"]:checked::after {
        width: 12px;
        height: 12px;
    }

    .form-input {
        font-size: 16px;
        min-height: 48px;
    }

    .toast-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    :root {
        --border-default: rgba(255, 255, 255, 0.3);
        --border-hover: rgba(255, 255, 255, 0.5);
        --text-secondary: #b0b0c0;
        --text-muted: #808090;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .form-input {
        border-width: 2px;
    }
}

/* Safe Area Insets */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .toast-container {
        top: max(1.5rem, env(safe-area-inset-top));
        right: max(1.5rem, env(safe-area-inset-right));
    }

    .container {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-cyan);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Focus Within for Form Groups */
.form-group:focus-within .form-label {
    color: var(--neon-cyan);
}

/* Mobile-specific Toasts */
@media (max-width: 768px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .toast {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 1rem;
        left: 0.75rem;
        right: 0.75rem;
    }

    .toast {
        padding: 0.875rem 1rem;
    }

    .skip-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Charts & Drill-Down */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--neon-cyan);
}

.breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

.chart-container {
    position: relative;
    height: 180px;
    width: 100%;
    margin-top: 1rem;
}

.chart-container-lg {
    height: 280px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.product-card {
    padding: 1.5rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-name-link {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.product-name-link:hover {
    color: var(--neon-cyan);
}

.product-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.product-usage {
    text-align: right;
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
}

.product-usage .in-use {
    color: var(--neon-cyan);
}

.product-usage .total {
    color: var(--text-muted);
}

.product-expiry {
    margin-top: 1rem;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
}

.product-expiry.critical {
    background: rgba(217, 123, 90, 0.12);
    color: var(--neon-orange);
    border: 1px solid rgba(217, 123, 90, 0.25);
}

.product-expiry.warning {
    background: rgba(212, 184, 90, 0.12);
    color: var(--neon-yellow);
    border: 1px solid rgba(212, 184, 90, 0.25);
}

.product-expiry.notice {
    background: rgba(94, 200, 200, 0.12);
    color: var(--neon-cyan);
    border: 1px solid rgba(94, 200, 200, 0.25);
}

.expiry-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.expiry-row.critical td:first-child {
    border-left: 3px solid var(--neon-orange);
}

.expiry-row.warning td:first-child {
    border-left: 3px solid var(--neon-yellow);
}

.expiry-row.notice td:first-child {
    border-left: 3px solid var(--neon-cyan);
}

/* Clickable Cards */
.server-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.server-card-link .server-card {
    cursor: pointer;
}

.server-card-link:hover .server-card {
    border-color: rgba(94, 200, 200, 0.3);
}

.server-card-link:hover .server-name {
    color: var(--neon-cyan);
}

.license-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.license-item-link:hover .license-name {
    color: var(--neon-cyan);
}

.license-item-link .license-item {
    cursor: pointer;
}

.product-link,
.server-link {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.product-link:hover,
.server-link:hover {
    color: var(--neon-cyan);
}

.time-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-selector select {
    min-width: 120px;
}

.stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.stat-card-link .stat-card {
    cursor: pointer;
}

.stat-card-link:hover .stat-card {
    border-color: rgba(94, 200, 200, 0.2);
}

.clickable-indicator {
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    margin-left: 0.5rem;
}

.server-card:hover .clickable-indicator,
.stat-card:hover .clickable-indicator,
.license-item:hover .clickable-indicator {
    opacity: 0.7;
}

/* Responsive Charts */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 150px;
    }

    .chart-container-lg {
        height: 220px;
    }

    .product-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-usage {
        text-align: left;
    }

    .time-selector {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8125rem;
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Vendor Display */
.product-vendor {
    font-size: 0.8125rem;
    color: var(--neon-purple);
    margin-top: 0.25rem;
}

.license-vendor {
    font-size: 0.8125rem;
    color: var(--neon-purple);
    margin-top: 0.125rem;
}

/* ============================================
   COMPACT DASHBOARD MODE
   ============================================ */

.compact-navbar {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-default);
    height: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.compact-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
    max-width: 100%;
}

.compact-logo {
    display: flex;
    align-items: center;
}

.compact-logo .logo-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-pink-purple);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-kpis {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.compact-kpi {
    white-space: nowrap;
}

.compact-kpi strong {
    color: var(--text-primary);
    font-weight: 600;
}

.compact-kpi.available strong {
    color: var(--neon-green);
}

.compact-kpi.warning strong {
    color: var(--neon-yellow);
}

.compact-kpi-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

.compact-nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compact-user-email {
    color: var(--text-muted);
    font-size: 0.75rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-menu-wrapper {
    position: relative;
}

.compact-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.compact-menu-btn:hover {
    color: var(--neon-cyan);
    background: rgba(94, 200, 200, 0.1);
}

.compact-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 140px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 200;
}

.compact-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.compact-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.compact-dropdown-item:hover {
    color: var(--neon-cyan);
    background: rgba(94, 200, 200, 0.1);
}

.compact-dropdown-sep {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 0.375rem 0;
}

.compact-container {
    height: calc(100vh - 40px);
    padding: 0.75rem;
    overflow: hidden;
}

.compact-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0.75rem;
    height: 100%;
}

.compact-right-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}

.compact-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.compact-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.compact-panel-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin: 0;
}

.compact-view-all {
    font-size: 0.6875rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compact-refresh-btn {
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.compact-refresh-btn:hover {
    background: rgba(94, 200, 200, 0.1);
}

.compact-refresh-btn.spinning svg {
    animation: btn-spinner 1s linear infinite;
}

.compact-servers-panel {
    flex: 1;
    min-height: 0;
}

.compact-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
    padding: 0.625rem;
    overflow-y: auto;
    flex: 1;
}

.compact-server-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.625rem;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.compact-server-card:hover {
    border-color: rgba(94, 200, 200, 0.3);
    background: rgba(94, 200, 200, 0.05);
}

.compact-server-card.error {
    border-color: rgba(217, 123, 90, 0.3);
}

.compact-server-name {
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-server-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    flex-shrink: 0;
}

.compact-server-status.error {
    background: var(--neon-orange);
}

.compact-server-usage {
    text-align: center;
}

.compact-usage-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neon-cyan);
}

.compact-usage-count.muted {
    color: var(--text-muted);
}

.compact-expiring-panel {
    flex: 0 0 auto;
    max-height: 50%;
}

.compact-expiring-list {
    padding: 0.5rem;
    overflow-y: auto;
    flex: 1;
}

.compact-alert-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    transition: background var(--transition-fast);
}

.compact-alert-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.compact-alert-row.critical {
    color: var(--neon-orange);
}

.compact-alert-row.critical .compact-alert-icon {
    color: var(--neon-orange);
}

.compact-alert-row.warning {
    color: var(--neon-yellow);
}

.compact-alert-row.warning .compact-alert-icon {
    color: var(--neon-yellow);
}

.compact-alert-row.notice {
    color: var(--neon-cyan);
}

.compact-alert-row.notice .compact-alert-icon {
    color: var(--neon-cyan);
}

.compact-alert-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.compact-alert-product {
    flex: 1;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-alert-product:hover {
    color: var(--neon-cyan);
}

.compact-alert-days {
    font-weight: 600;
    font-size: 0.75rem;
    min-width: 28px;
    text-align: right;
}

.compact-email-btn {
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.compact-email-btn:hover {
    color: var(--neon-cyan);
    background: rgba(94, 200, 200, 0.1);
}

.compact-products-panel {
    flex: 1;
    min-height: 0;
}

.compact-products-list {
    padding: 0.5rem;
    overflow-y: auto;
    flex: 1;
}

.compact-product-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.compact-product-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.compact-product-row:hover .compact-product-name {
    color: var(--neon-cyan);
}

.compact-product-name {
    width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.compact-product-bar-wrapper {
    flex: 1;
    min-width: 0;
}

.compact-product-bar {
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
}

.compact-product-bar-fill {
    height: 100%;
    background: var(--gradient-cyan-purple);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.compact-product-bar-fill.warning {
    background: var(--neon-yellow);
}

.compact-product-bar-fill.danger {
    background: var(--neon-orange);
}

.compact-product-count {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 42px;
    text-align: right;
}

.compact-empty {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: center;
    padding: 1.5rem;
}

.compact-more-indicator {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.375rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.375rem;
}

/* 3-Column Compact Layout */
.compact-grid-3col {
    display: grid;
    grid-template-columns: 180px 1fr 240px;
    gap: 0.75rem;
    height: 100%;
}

.compact-servers-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    overflow-y: auto;
    flex: 1;
}

.compact-server-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.compact-server-row:hover {
    background: rgba(94, 200, 200, 0.08);
}

.compact-server-row.error {
    background: rgba(217, 123, 90, 0.08);
}

.compact-server-row .compact-server-name {
    flex: 1;
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-server-row .compact-server-count {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    font-weight: 600;
}

.compact-main-panel {
    display: flex;
    flex-direction: column;
}

.compact-overview {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.compact-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.compact-stat {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.compact-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.compact-stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compact-stat.available .compact-stat-value {
    color: var(--neon-green);
}

.compact-stat.in-use .compact-stat-value {
    color: var(--neon-cyan);
}

.compact-stat.warning .compact-stat-value {
    color: var(--neon-yellow);
}

.compact-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.compact-usage-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compact-usage-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compact-usage-name {
    width: 120px;
    font-size: 0.8125rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.compact-usage-name:hover {
    color: var(--neon-cyan);
}

.compact-usage-bar-wrapper {
    flex: 1;
    min-width: 0;
}

.compact-usage-bar {
    height: 8px;
    background: var(--bg-darker);
    border-radius: 4px;
    overflow: hidden;
}

.compact-usage-bar-fill {
    height: 100%;
    background: var(--gradient-cyan-purple);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.compact-usage-bar-fill.warning {
    background: var(--neon-yellow);
}

.compact-usage-bar-fill.danger {
    background: var(--neon-orange);
}

.compact-usage-pct {
    width: 36px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
    flex-shrink: 0;
}

.compact-alerts-panel {
    display: flex;
    flex-direction: column;
}

.compact-alerts-panel .compact-expiring-list {
    flex: 1;
    overflow-y: auto;
}

/* Compact Responsive */
@media (max-width: 1000px) {
    .compact-grid-3col {
        grid-template-columns: 160px 1fr 200px;
    }

    .compact-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .compact-usage-name {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .compact-grid-3col {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .compact-servers-panel {
        max-height: 150px;
    }

    .compact-servers-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .compact-server-row {
        flex: 0 0 auto;
    }

    .compact-alerts-panel {
        max-height: 200px;
    }

    .compact-kpis {
        display: none;
    }
}

@media (min-width: 1400px) {
    .compact-grid-3col {
        grid-template-columns: 220px 1fr 280px;
    }

    .compact-usage-name {
        width: 150px;
    }
}

/* Glass classes - now simplified to solid backgrounds */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
}

.glass-strong {
    background: var(--bg-card);
}

/* Animation classes - kept for JS compatibility but simplified */
.animate-pulse {
    /* No animation - static display */
}

.animate-glow {
    /* No animation - static display */
}

.animate-in {
    /* No animation - immediate display */
}

/* Glow text - simplified */
.glow-text {
    color: var(--neon-cyan);
}

.glow-text-pink {
    color: var(--neon-pink);
}

/* Hover lift - simplified */
.hover-lift {
    transition: border-color var(--transition-fast);
}

.hover-lift:hover {
    border-color: var(--border-hover);
}

/* ============================================
   ENHANCED COMPACT DASHBOARD - NEW COMPONENTS
   ============================================ */

/* Overall Utilization Score in Navbar */
.compact-util-score {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
}

.compact-util-value {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.compact-util-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compact-util-score.util-green {
    border-color: rgba(95, 191, 143, 0.3);
    background: rgba(95, 191, 143, 0.1);
}

.compact-util-score.util-green .compact-util-value {
    color: var(--neon-green);
}

.compact-util-score.util-yellow {
    border-color: rgba(212, 184, 90, 0.3);
    background: rgba(212, 184, 90, 0.1);
}

.compact-util-score.util-yellow .compact-util-value {
    color: var(--neon-yellow);
}

.compact-util-score.util-orange {
    border-color: rgba(217, 123, 90, 0.3);
    background: rgba(217, 123, 90, 0.1);
}

.compact-util-score.util-orange .compact-util-value {
    color: var(--neon-orange);
}

/* Live Clock in Navbar */
.compact-clock {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    cursor: default;
}

.compact-clock svg {
    opacity: 0.7;
}

#clock-time {
    min-width: 60px;
}

/* Server Poll Time Display */
.compact-server-poll-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
    min-width: 28px;
    text-align: right;
}

.compact-server-poll-time.stale {
    color: var(--neon-yellow);
}

/* Server Row Stale State */
.compact-server-row.stale {
    background: rgba(212, 184, 90, 0.05);
}

.compact-server-status.stale {
    background: var(--neon-yellow);
}

/* Auto-Refresh Controls */
.compact-auto-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
}

.compact-auto-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
}

.compact-auto-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.compact-toggle-label {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compact-interval-select {
    background: var(--bg-darker);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 0.25rem 0.375rem;
    cursor: pointer;
}

.compact-interval-select:focus {
    outline: none;
    border-color: var(--neon-cyan);
}

.compact-countdown {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan);
    min-width: 32px;
    text-align: right;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* High Utilization Alerts Banner */
.compact-high-util-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(217, 123, 90, 0.1);
    border-bottom: 1px solid rgba(217, 123, 90, 0.2);
    flex-wrap: wrap;
}

.compact-high-util-icon {
    color: var(--neon-orange);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.compact-high-util-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.compact-high-util-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}

.compact-high-util-item {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.compact-high-util-item:hover {
    color: var(--neon-cyan);
}

.compact-high-util-more {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Adjustments for Server Row with Poll Time */
.compact-server-row {
    display: grid;
    grid-template-columns: 6px 1fr auto auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.compact-server-row:hover {
    background: rgba(94, 200, 200, 0.08);
}

.compact-server-row.error {
    background: rgba(217, 123, 90, 0.08);
}

.compact-server-row .compact-server-name {
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-server-row .compact-server-count {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Responsive adjustments for enhanced compact */
@media (max-width: 1100px) {
    .compact-util-score {
        padding: 0.25rem 0.5rem;
    }

    .compact-util-value {
        font-size: 0.875rem;
    }

    .compact-clock {
        display: none;
    }
}

@media (max-width: 900px) {
    .compact-util-score {
        display: none;
    }

    .compact-high-util-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 768px) {
    .compact-auto-refresh {
        flex-wrap: wrap;
        justify-content: center;
    }
}
