/* assets/style.css */
:root {
    --bg: #050914;
    --card: #0d1624;
    --accent: #3b82f6;
    --accent-soft: rgba(59,130,246,0.1);
    --accent-danger: #ef4444;
    --text: #f9fafb;
    --muted: #9ca3af;
    --border: rgba(148,163,184,0.2);
    --radius: 12px;
    --shadow: 0 18px 35px rgba(0,0,0,0.35);
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 24px;
}

.card {
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(17,24,39,0.98));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 24px 28px;
}

.card-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
}

@media (max-width: 800px) {
    .card-split {
        grid-template-columns: 1fr;
    }
}

h1, h2, h3 {
    margin: 0 0 8px;
}

.subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.input-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--muted);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #020617;
    color: var(--text);
    outline: none;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.5);
    background: #020617;
}

button {
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    font-size: 0.75rem;
    color: #bfdbfe;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-available { background: rgba(34,197,94,0.12); color: #bbf7d0; }
.status-offline   { background: rgba(148,163,184,0.12); color: #e5e7eb; }
.status-waiting   { background: rgba(234,179,8,0.12); color: #facc15; }
.status-ringing   { background: rgba(59,130,246,0.12); color: #93c5fd; }
.status-in-call   { background: rgba(34,197,94,0.12); color: #bbf7d0; }
.status-ended     { background: rgba(148,163,184,0.12); color: #e5e7eb; }

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.table th,
.table td {
    padding: 8px 6px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(15,23,42,0.8);
}

.table th {
    text-align: left;
    color: var(--muted);
    font-weight: 500;
}

.table tr:hover td {
    background: rgba(15,23,42,0.7);
}

.call-panel {
    border-radius: 10px;
    border: 1px dashed var(--border);
    padding: 16px;
    background: rgba(15,23,42,0.6);
    margin-top: 12px;
}

.small {
    font-size: 0.8rem;
    color: var(--muted);
}

.error {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(239,68,68,0.12);
    color: #fecaca;
    font-size: 0.85rem;
}
