:root {
    --bg-color: #0f111a;
    --text-main: #f8f9fa;
    --text-muted: #8b949e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-pink: #ec4899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.background-aurora {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    z-index: -1;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Base Layout */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand i {
    font-size: 28px;
    color: var(--text-main);
}

.brand h1 {
    font-size: 24px;
    font-weight: 700;
}

.highlight {
    background: linear-gradient(135deg, white, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.os-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.os-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.data-value {
    color: var(--text-main);
    font-weight: 500;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulsing 2s infinite;
}

@keyframes pulsing {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Quick Links */
.quick-links {
    margin-bottom: 40px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.link-card i {
    font-size: 32px;
}

.link-card.orange i {
    color: var(--accent-orange);
}

.link-card.green i {
    color: var(--accent-green);
}

.link-card.purple i {
    color: var(--accent-purple);
}

.link-card.pink i {
    color: var(--accent-pink);
}

.link-card.blue i {
    color: var(--accent-blue);
}

.link-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.link-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.icon-wrapper.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.icon-wrapper.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.icon-wrapper.orange {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
}

.icon-wrapper.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.metric-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-subtext {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.blue-grad {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.purple-grad {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.orange-grad {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.green-grad {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* Containers Section */
.containers-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

/* Table */
.table-container {
    overflow-x: auto;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
}

th {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.2);
}

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

td {
    font-size: 14px;
}

/* Table Status */
.ct-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.status-running {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-exited {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.ct-name {
    font-weight: 600;
}

.ct-image {
    color: var(--text-muted);
    font-size: 12px;
}

.ct-ports {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

/* Auth & Modal Overlays */
.auth-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(15, 17, 26, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 24px;
}

.input-group {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 16px;
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: var(--accent-blue);
}

.input-group i {
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-main);
    padding: 12px 14px;
    outline: none;
    font-size: 14px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-blue);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #2563eb;
}

.login-error {
    color: #ef4444;
    margin-top: 12px;
    font-size: 14px;
    height: 16px;
}

/* Table Actions & Logs */
.ct-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.btn-action.play:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.btn-action.stop:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.btn-action.restart:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.btn-action.logs:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.logs-box {
    width: 90%;
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

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

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

.close-btn:hover {
    color: white;
}

.logs-content {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
    color: #a78bfa;
    white-space: pre-wrap;
    word-break: break-all;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .os-info {
        align-items: flex-start;
        text-align: left;
    }
}