/* ═══════════════════════════════════════════════════
   Afriland — Premium Light Theme
   ═══════════════════════════════════════════════════ */

:root {
    --primary: #238636;
    --primary-hover: #2ea043;
    --bg: #fdfdfd;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666666;
    --border: #eeeeee;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --input-focus: #388bfd;
    --danger: #da3633;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.input-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fcfcfc;
    transition: all 0.2s;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: var(--input-focus);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(56, 139, 253, 0.1);
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.2);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--danger);
    color: white;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-indicator {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.status-indicator.online .dot {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.status-indicator.calling .dot {
    background: var(--danger);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Subtle Footer & Debug */
.subtle-footer {
    margin-top: 3rem;
    text-align: center;
}

.btn-text {
    background: none;
    border: none;
    color: #bbb;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

.debug-panel {
    display: none;
    margin-top: 1rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 12px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.debug-panel.visible {
    display: block;
}

.log-entry { margin-bottom: 0.2rem; }
.time { color: #aaa; margin-right: 0.5rem; }
.tag { font-weight: 600; }
.tag-info { color: #388bfd; }
.tag-recv { color: var(--primary); }
.tag-err { color: var(--danger); }
