/* Transcrever ByDiex - Modern Dark Glassmorphism Styling */

:root {
    --bg-dark: #090D16;
    --bg-card: rgba(17, 24, 39, 0.85);
    --bg-card-hover: rgba(31, 41, 55, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #6366F1;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --secondary: #10B981;
    --danger: #EF4444;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-modal {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Microphone Pulse & Animation */
.mic-btn-recording {
    position: relative;
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6) !important;
    animation: mic-pulse 1.8s infinite;
}

@keyframes mic-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 25px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.mic-btn-idle {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mic-btn-idle:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

/* Audio Visualizer Canvas */
#visualizerCanvas {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* Live Textarea */
.live-transcript-box {
    background: rgba(10, 15, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #F3F4F6;
    font-family: inherit;
    font-size: 1.05rem;
    line-height: 1.75;
    transition: border-color 0.2s;
    outline: none;
}

.live-transcript-box:focus {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Toast Notifications */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100vw - 48px);
}

.toast {
    animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slide-in {
    from {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Badge animations */
.badge-ping {
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Mobile responsive enhancements */
@media (max-width: 640px) {
    .mic-button-wrapper {
        padding: 1rem 0;
    }
    .live-transcript-box {
        font-size: 0.95rem;
        min-height: 220px;
    }
}
