:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #00e5ff;
    --danger-color: #ef4444;
    --success-color: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.status-badge {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.status-badge.connected {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.timer-ring {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s linear;
}

.time-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 10;
}

.timer-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.interaction-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.bot-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #1f2937;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bot-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    z-index: 10;
}

.waves {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    z-index: 1;
}

.waves.active {
    animation: wave 1.5s infinite ease-out;
}

@keyframes wave {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}

.notification-area {
    width: 100%;
    min-height: 60px;
    text-align: center;
}

.notification {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease-out;
}

.notification.escalation {
    border-left-color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.05);
}

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

.controls {
    width: 100%;
}

#phoneInputArea {
    margin-bottom: 12px;
}

#phoneInput {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: #f1f5f9;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

#phoneInput::placeholder { color: #64748b; }
#phoneInput:focus { border-color: #00e5ff; }

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

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

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

.btn.primary:hover:not(:disabled) {
    background-color: #00b8cc;
}

.btn.record {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.btn.record:hover:not(:disabled) {
    background-color: rgba(239, 68, 68, 0.2);
}

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

.btn.record:active .record-icon {
    background-color: white;
}

.record-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--danger-color);
    display: inline-block;
}

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

.btn.danger:hover:not(:disabled) {
    background-color: #dc2626;
}

