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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #111111 url('background.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 17, 0.7);
    z-index: 0;
}

/* Logo */
.logo {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    z-index: 100;
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo:hover img {
    opacity: 0.8;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

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

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #97C022 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 4s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(151, 192, 34, 0.3);
}

@keyframes shine {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.subtitle {
    color: #aaaaaa;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Record Section */
.record-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.record-btn {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid rgba(151, 192, 34, 0.5);
    background: rgba(151, 192, 34, 0.1);
    box-shadow: 
        0 0 30px rgba(151, 192, 34, 0.3),
        0 0 60px rgba(151, 192, 34, 0.15),
        inset 0 0 20px rgba(151, 192, 34, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(151, 192, 34, 0.3),
            0 0 60px rgba(151, 192, 34, 0.15),
            inset 0 0 20px rgba(151, 192, 34, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(151, 192, 34, 0.5),
            0 0 80px rgba(151, 192, 34, 0.25),
            inset 0 0 30px rgba(151, 192, 34, 0.15);
    }
}

.record-btn:hover {
    transform: scale(1.05);
    border-color: rgba(151, 192, 34, 0.8);
    background: rgba(151, 192, 34, 0.2);
    box-shadow: 
        0 0 50px rgba(151, 192, 34, 0.5),
        0 0 100px rgba(151, 192, 34, 0.3),
        inset 0 0 30px rgba(151, 192, 34, 0.2);
    animation: none;
}

.record-btn.recording {
    border-color: rgba(239, 68, 68, 0.7);
    background: rgba(239, 68, 68, 0.15);
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 
        0 0 40px rgba(239, 68, 68, 0.4),
        0 0 80px rgba(239, 68, 68, 0.2),
        inset 0 0 20px rgba(239, 68, 68, 0.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(239, 68, 68, 0.4),
            0 0 80px rgba(239, 68, 68, 0.2),
            inset 0 0 20px rgba(239, 68, 68, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(239, 68, 68, 0.6),
            0 0 120px rgba(239, 68, 68, 0.3),
            inset 0 0 30px rgba(239, 68, 68, 0.15);
        transform: scale(1.03);
    }
}

.mic-icon {
    font-size: 2.5rem;
    filter: grayscale(20%);
}

.record-btn.recording .mic-icon {
    filter: none;
}

.btn-text {
    color: #999999;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record-btn.recording .btn-text {
    color: #fca5a5;
}

.status {
    font-size: 0.875rem;
    color: #97C022;
    font-weight: 500;
}

.status.error {
    color: #ef4444;
}

.timer {
    font-size: 1.25rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: #666666;
    font-weight: 500;
}

/* Transcript Section */
.transcript-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.transcript-header h2 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #97C022;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transcript-actions {
    display: flex;
    gap: 0.25rem;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #888888;
}

.action-btn:hover {
    background: rgba(151, 192, 34, 0.1);
    border-color: rgba(151, 192, 34, 0.3);
    color: #fff;
}

.transcript {
    flex: 1;
    overflow-y: auto;
    line-height: 1.7;
    font-size: 0.9375rem;
    min-height: 200px;
    max-height: 350px;
}

.transcript .placeholder {
    color: #666666;
    font-style: normal;
}

.transcript p:not(.placeholder) {
    margin-bottom: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 2px solid #97C022;
}

.transcript p .timestamp {
    color: #97C022;
    font-size: 0.75rem;
    margin-right: 0.75rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-weight: 500;
}

.interim {
    color: #666666;
    font-style: italic;
    padding: 0.75rem 0;
    min-height: 2rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 2.5rem;
    color: #555555;
    font-size: 0.8125rem;
}

/* Scrollbar */
.transcript::-webkit-scrollbar {
    width: 6px;
}

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

.transcript::-webkit-scrollbar-thumb {
    background: rgba(151, 192, 34, 0.3);
    border-radius: 3px;
}

.transcript::-webkit-scrollbar-thumb:hover {
    background: rgba(151, 192, 34, 0.5);
}

/* Responsive */
@media (max-width: 600px) {
    .logo {
        top: 1rem;
        left: 1.25rem;
        font-size: 1.2rem;
    }

    .container {
        padding: 3.5rem 1.25rem 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .record-btn {
        width: 120px;
        height: 120px;
    }

    .mic-icon {
        font-size: 2rem;
    }

    .btn-text {
        font-size: 0.7rem;
    }

    .transcript-section {
        padding: 1rem;
    }
}
