* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a2f4e 50%, #0d2137 100%);
    min-height: 100vh;
    color: #ffffff;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 30px 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 2.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #4fc3f7, #00e676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: #90caf9;
    font-size: 1rem;
    opacity: 0.8;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 16px 0;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    transition: all 0.3s;
}

.status-dot.connecting {
    background: #ffa726;
    animation: pulse 1s infinite;
}

.status-dot.connected {
    background: #00e676;
    animation: pulse 2s infinite;
}

.status-dot.error {
    background: #ef5350;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.video-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: rgba(0,0,0,0.4);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(79, 195, 247, 0.3);
    margin: 16px 0;
}

#videoPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #90caf9;
    font-size: 1.2rem;
    text-align: center;
}

.video-overlay.hidden {
    display: none;
}

.transcript {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    height: 200px;
    overflow-y: auto;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transcript-message {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
}

.transcript-message.assistant {
    background: rgba(79, 195, 247, 0.15);
    border-left: 3px solid #4fc3f7;
    align-self: flex-start;
}

.transcript-message.user {
    background: rgba(0, 230, 118, 0.15);
    border-left: 3px solid #00e676;
    align-self: flex-end;
}

.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 16px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #4fc3f7, #0288d1);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.4);
}

.btn-camera {
    background: linear-gradient(135deg, #ab47bc, #7b1fa2);
    color: white;
}

.btn-camera:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(171, 71, 188, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef5350, #c62828);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 83, 80, 0.4);
}

.text-input-container {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.text-input-container input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s;
}

.text-input-container input:focus {
    border-color: #4fc3f7;
}

.text-input-container input::placeholder {
    color: rgba(255,255,255,0.4);
}

.text-input-container button {
    padding: 14px 24px;
    background: linear-gradient(135deg, #00e676, #00897b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.text-input-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.4);
}

footer {
    text-align: center;
    padding: 20px 0 30px;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.4);
    border-radius: 3px;
}