:root {
    --accent: #34d399;
    --accent-dark: #059669;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

body {
    font-family: 'DM Sans', sans-serif;
}

.card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(30, 41, 59, 0.9);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.4);
}

.input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 12px;
    color: #e2e8f0;
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
}

.btn-primary {
    background: var(--accent);
    color: #0f172a;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 12px;
    color: #cbd5f5;
    background: transparent;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: rgba(30, 41, 59, 0.8);
}

.badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: capitalize;
}

.badge-blue { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.badge-green { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.badge-red { background: rgba(239, 68, 68, 0.2); color: #fecaca; }
.badge-yellow { background: rgba(234, 179, 8, 0.2); color: #fde68a; }
.badge-purple { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }

.terminal-shell {
    height: 420px;
    background: #0b1120;
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    padding: 8px;
    overflow: hidden;
}

.terminal-shell-ws {
    height: calc(100vh - 260px);
    min-height: 400px;
    background: #0b1120;
    padding: 0;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .terminal-shell-ws {
        height: calc(100vh - 200px);
        min-height: 300px;
    }
}

@media (max-width: 639px) {
    .terminal-shell-ws {
        height: calc(100vh - 180px);
        min-height: 250px;
    }

    .card {
        padding: 16px;
        border-radius: 12px;
    }
}

.terminal-shell .xterm,
.terminal-shell-ws .xterm {
    height: 100%;
    padding: 8px;
}

.terminal-shell .xterm-viewport,
.terminal-shell-ws .xterm-viewport {
    overflow-y: auto !important;
}

.kbd {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
}
