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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #050508;
    color: #f0f0f5;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.wrapper {
    padding: 20px 30px;
    max-width: 1500px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header img {
    height: 36px;
}

.header-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    color: #a78bfa;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #8B5CF6;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    flex: 1;
    overflow: hidden;
}

.panel {
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.9) 0%, rgba(15, 15, 22, 0.95) 100%);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.left-panel {
    display: flex;
    flex-direction: column;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #6b6b80;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h3 {
    margin: 24px 0 16px 0;
    color: #6b6b80;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.start-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #7c3aed 50%, #6d28d9 100%);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.start-btn:hover::before {
    left: 100%;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.start-btn:disabled {
    background: #1a1a24;
    color: #4a4a5a;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.end-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.end-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.visualizer {
    height: 70px;
    background: rgba(10, 10, 15, 0.6);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 15px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.visualizer-bar {
    width: 3px;
    background: linear-gradient(to top, #8B5CF6, #c4b5fd, #ffffff);
    border-radius: 3px;
    transition: height 0.08s ease-out;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.status {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 13px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.status.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.transcript {
    flex: 1;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 18px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
}

.transcript-entry {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    animation: fadeIn 0.3s ease-out;
}

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

.transcript-entry.ai {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-left: 3px solid #8B5CF6;
}

.transcript-entry.user {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #4a4a5a;
}

.transcript-entry strong {
    color: #a78bfa;
    font-weight: 600;
}

/* Thinking animation */
.thinking-entry {
    background: transparent !important;
    border-left: none !important;
    padding: 8px 12px;
}

.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thinking-text {
    color: #6b6b80;
    font-size: 13px;
    font-style: italic;
}

.thinking-dots {
    display: flex;
    gap: 4px;
}

.thinking-dots .dot {
    width: 6px;
    height: 6px;
    background: #8B5CF6;
    border-radius: 50%;
    animation: thinkingPulse 1.4s ease-in-out infinite;
}

.thinking-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinkingPulse {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    30% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.form-section {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 14px;
    color: #8888a0;
    font-size: 12px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 13px;
    margin-top: 6px;
    background: rgba(10, 10, 15, 0.8);
    color: #f0f0f5;
    transition: all 0.2s;
}

input:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

input::placeholder {
    color: #4a4a5a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

.footer {
    text-align: center;
    padding: 15px;
    color: #4a4a5a;
    font-size: 11px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Glow effects */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.5); }
}

.status.active {
    animation: pulse 2s infinite;
}
