.transcriber-container {
    --primary-color: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 300px;
    color: #fff;
    position: relative;
}

.transcriber-container * {
    box-sizing: border-box;
}

.transcriber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.transcriber-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.idle { background: #6c757d; }
.status-dot.connecting { background: #ffc107; animation: pulse-dot 0.8s ease-in-out infinite; }
.status-dot.connected { background: #28a745; animation: pulse-dot 1.5s ease-in-out infinite; }
.status-dot.recording { background: #dc3545; animation: pulse-dot 0.5s ease-in-out infinite; }
.status-dot.error { background: #ff6b6b; animation: pulse-dot 0.3s ease-in-out infinite; }

.status-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.transcriber-info {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.lang-badge, .smart-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.lang-badge {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

.smart-badge {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(108, 99, 255, 0.3);
}

.transcriber-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.transcriber-controls button {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.transcriber-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-start {
    background: #28a745;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-start:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.btn-stop {
    background: #dc3545;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-stop:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

.btn-clear, .btn-copy, .btn-download {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.05);
}

.btn-clear:hover, .btn-copy:hover, .btn-download:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.transcriber-display {
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 25px;
    min-height: 150px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.text-area {
    font-size: 20px;
    line-height: 1.8;
    color: #fff;
    min-height: 100px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.placeholder {
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

.text-stats {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.transcriber-visualizer {
    margin: 15px 0 20px 0;
    padding: 10px 0;
}

.wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 50px;
}

.wave-bar {
    width: 5px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: height 0.1s ease, opacity 0.1s ease;
    opacity: 0.3;
}

.transcriber-history {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.8);
}

.history-count {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.5;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.history-list li {
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 6px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid var(--primary-color);
    color: rgba(255,255,255,0.9);
}

.history-list .time {
    font-size: 11px;
    opacity: 0.4;
    flex-shrink: 0;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.transcriber-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes pulse-dot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .transcriber-container {
        padding: 20px;
        border-radius: 16px;
    }
    
    .transcriber-controls {
        flex-direction: column;
    }
    
    .transcriber-controls button {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
    
    .text-area {
        font-size: 17px;
    }
    
    .transcriber-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .transcriber-status {
        justify-content: center;
    }
    
    .transcriber-info {
        justify-content: center;
    }
}