/* === Call Captcha Dashboard === */

:root {
    --cc-dark: #0f172a;
    --cc-sidebar: #1e293b;
    --cc-accent: #6366f1;
    --cc-accent-hover: #818cf8;
    --cc-success: #10b981;
    --cc-warning: #f59e0b;
    --cc-danger: #ef4444;
    --cc-info: #3b82f6;
    --cc-muted: #94a3b8;
    --cc-bg: #f1f5f9;
    --cc-card: #ffffff;
}

body {
    background: var(--cc-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: var(--cc-dark);
    padding: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand h5 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.sidebar-brand .business-name {
    color: var(--cc-muted);
    font-size: 0.75rem;
    margin-top: 2px;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    color: var(--cc-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.sidebar-nav a.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
    border-left-color: var(--cc-accent);
}

.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-section {
    padding: 0.5rem 1.5rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 0.5rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer a {
    color: var(--cc-muted);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-footer a:hover {
    color: #fff;
}

/* Main content */
.main-content {
    margin-left: 240px;
    padding: 2rem;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--cc-dark);
    margin: 0;
}

.page-header .subtitle {
    color: var(--cc-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Metric cards */
.metric-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.15s, box-shadow 0.15s;
    border-left: 4px solid var(--cc-accent);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.metric-card .metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cc-dark);
    line-height: 1;
}

.metric-card .metric-label {
    color: var(--cc-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.metric-card.success { border-left-color: var(--cc-success); }
.metric-card.info { border-left-color: var(--cc-info); }
.metric-card.warning { border-left-color: var(--cc-warning); }

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.card-header-clean {
    padding: 1rem 1.25rem;
    background: none;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-clean h5 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    color: var(--cc-dark);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cc-muted);
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
    border-color: #f1f5f9;
}

.table-hover tbody tr:hover {
    background: #f8fafc;
}

/* Badges */
.badge-booked { background-color: var(--cc-success); }
.badge-lead { background-color: var(--cc-info); }
.badge-fallback { background-color: var(--cc-danger); }
.badge-faq { background-color: #64748b; }
.badge-unknown { background-color: #cbd5e1; color: #475569; }

.badge {
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Buttons */
.btn-accent {
    background: var(--cc-accent);
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-accent:hover {
    background: var(--cc-accent-hover);
    color: #fff;
}

/* Transcript */
.transcript-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.875rem;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

/* List groups */
.list-group-item {
    border-color: #f1f5f9;
    padding: 0.75rem 1rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 0.875rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    font-size: 0.875rem;
    border: none;
    color: var(--cc-dark);
}

.pagination .page-item.active .page-link {
    background: var(--cc-accent);
    color: #fff;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cc-dark) 0%, #334155 100%);
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-card h4 {
    font-weight: 800;
    color: var(--cc-dark);
}

.login-card .btn-dark {
    background: var(--cc-accent);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1rem;
}

.login-card .btn-dark:hover {
    background: var(--cc-accent-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
}
