:root {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn.active {
    background-color: #ef4444;
    /* Red for stop */
}

.btn.active:hover {
    background-color: #dc2626;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.status-badge {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background-color: var(--surface-color);
    color: var(--text-muted);
}

.status-badge.connected {
    color: #4ade80;
    /* Green */
    background-color: rgba(74, 222, 128, 0.1);
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.transcript-container {
    background-color: var(--surface-color);
    border-radius: 1rem;
    padding: 1.5rem;
    min-height: 100px;
    max-height: 150px;
    overflow-y: auto;
    text-align: left;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transcript-box p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.placeholder {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.7;
}

/* Scrollbar styling */
.transcript-container::-webkit-scrollbar {
    width: 8px;
}

.transcript-container::-webkit-scrollbar-track {
    background: transparent;
}

.transcript-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Visualizer (Simple CSS animation for now) */
.visualization {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.visualization.active {
    opacity: 1;
}

.bar {
    width: 4px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: bounce 1s infinite ease-in-out;
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
}

.bar:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes bounce {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 30px;
    }
}

/* Bible Verse Card */
.verse-container {
    margin-bottom: 2rem;
    min-height: 20px;
}

.verse-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
    animation: slideIn 0.5s ease-out;
    border-left: 4px solid #60a5fa;
    text-align: left;
}

.verse-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.verse-text {
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #f1f5f9;
    font-style: italic;
    margin-bottom: 1rem;
}

.verse-reference {
    text-align: right;
    font-weight: 700;
    color: #94a3b8;
    font-size: 1rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verse-card.error {
    border-color: #ef4444;
    /* Red */
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #450a0a 0%, #171717 100%);
}

.verse-card.error .verse-header {
    color: #ef4444;
}

.verse-card.error .verse-text {
    color: #fca5a5;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .verse-card {
        padding: 1rem;
    }

    .verse-text {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}