/* ── Reset navbar ── */
.navbar { display: none !important; }

.dashboard {
    display: flex; min-height: 100vh;
    background: #fafafb;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Sidebar (shared) ── */
.sidebar {
    width: 220px; background: #fff;
    border-right: 1.5px solid #e6ebf1;
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 100;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1.5px solid #e6ebf1; }
.sidebar-logo { width: 32px; height: 32px; background: #1890ff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #1c1917; flex-shrink: 0; }
.sidebar-brand-name { font-size: 14px; font-weight: 700; color: #1c1917; }
.sidebar-nav { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 4px; font-size: 13.5px; font-weight: 500; color: #6b7280; cursor: pointer; transition: all 0.15s; border: none; background: none; text-align: left; width: 100%; text-decoration: none; font-family: inherit; }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: #f5f6f7; color: #1c1917; }
.nav-item.active { background: #e6f4ff; color: #1890ff; font-weight: 600; }
.sidebar-footer { padding: 12px 10px; border-top: 1.5px solid #e6ebf1; }
.btn-logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 4px; border: none; background: none; font-size: 13.5px; font-weight: 500; color: #ef4444; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.btn-logout:hover { background: #fff4f4; }
.btn-logout svg { width: 15px; height: 15px; }

/* ── Main Content ── */
.main-content { margin-left: 220px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.view-header { background: #fff; border-bottom: 1.5px solid #e6ebf1; padding: 14px 24px; display: flex; align-items: center; gap: 12px; }
.view-header h1 { font-size: 16px; font-weight: 700; color: #1c1917; }
.view-body { padding: 16px 24px; flex: 1; display: flex; align-items: flex-start; justify-content: center; }

/* ── Call Card ── */
.call-container { width: 100%; max-width: 400px; }

.card {
    background: #fff;
    border: 1.5px solid #e6ebf1;
    border-radius: 4px;
    padding: 20px 22px;
    margin-bottom: 12px;
}

.card-title { font-size: 13px; font-weight: 700; color: #1c1917; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #f3f4f6; }

/* ── Forms ── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.form-group input, .form-group select {
    width: 100%; padding: 9px 12px;
    background: #fafafb; border: 1.5px solid #e6ebf1;
    border-radius: 4px; font-size: 13.5px; color: #1c1917;
    font-family: inherit; transition: border-color 0.15s; box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: #e6ebf1; background: #fff; }

/* ── Buttons ── */
.btn-call {
    display: block; width: 100%; padding: 11px 20px;
    background: #e6ebf1; color: #1c1917;
    border: 1.5px solid #e6ebf1; border-radius: 4px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
    text-align: center;
}
.btn-call:hover { background: #bfbfbf; border-color: #bfbfbf; }

.btn-hangup {
    display: block; width: 100%; padding: 11px 20px;
    background: #fff4f4; color: #b91c1c;
    border: 1.5px solid #fca5a5; border-radius: 4px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
    text-align: center;
}
.btn-hangup:hover { background: #fee2e2; }

/* ── Status Sections ── */
.status-section { text-align: center; padding: 20px 0; }
.status-icon { font-size: 40px; margin-bottom: 12px; }
.status-text { font-size: 16px; font-weight: 600; color: #1c1917; margin-bottom: 6px; }
.status-detail { font-size: 13px; color: #6b7280; }
.status-calling .status-icon { animation: blink 1.2s infinite; }
.status-connected .status-text { color: #16a34a; }

.timer {
    font-size: 28px; font-weight: 300;
    color: #1c1917; margin: 14px 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.info-text { text-align: center; color: #9ca3af; font-size: 12px; margin-top: 12px; }

/* ── Error Message ── */
.error-message {
    background: #fff4f4; border: 1px solid #fca5a5;
    color: #b91c1c; padding: 10px 14px;
    border-radius: 4px; font-size: 13px; font-weight: 500;
    margin-bottom: 12px;
}

/* ── Utilities ── */
.hidden { display: none !important; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

@media (max-width: 768px) {
    .sidebar { width: 190px; }
    .main-content { margin-left: 190px; }
    .view-body { padding: 12px 14px; }
}
