/**
 * Voice Transcription - Modern UI Styles
 * Beautiful, contemporary design for medical voice recording
 */

/* ===== VOLUME METER ===== */

.volume-meter {
    display: flex;
    align-items: center;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    width: 100px;
    margin-left: 10px;
}

.meter-segment {
    flex-grow: 1;
    height: 100%;
    background-color: transparent;
    margin: 0 1px;
    border-radius: 2px;
}

.meter-segment.active {
    background-color: #4CAF50; /* Green */
}

/* ===== MODERN VOICE RECORDER WIDGET ===== */

.ennu-modern-recorder {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.voice-recorder-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-recorder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* ===== START STATE ===== */

.recorder-start-state {
    text-align: center;
    padding: 20px 0;
}

.recorder-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.pulse-ring,
.pulse-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 3px solid #667eea;
    border-radius: 50%;
    opacity: 0;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-ring-2 {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.btn-start-recording {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 24px rgba(102, 126, 234, 0.4),
        0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

.btn-start-recording:hover {
    transform: scale(1.08);
    box-shadow:
        0 12px 32px rgba(102, 126, 234, 0.5),
        0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-start-recording:active {
    transform: scale(0.95);
}

.microphone-icon {
    width: 42px;
    height: 42px;
}

.recorder-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.recorder-subtitle {
    font-size: 15px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

/* ===== RECORDING INTERFACE ===== */

.recording-interface {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.recording-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f6 100%);
    border-radius: 16px;
}

.device-meter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    align-items: flex-end;
}

.device-selector,
.input-meter-wrapper {
    flex: 1 1 260px;
    min-width: 220px;
}

.device-label,
.meter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-select-wrapper {
    position: relative;
}

.voice-device-select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid #e6e9f2;
    background: white;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    appearance: none;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.08);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.voice-device-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.16);
}

.input-meter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.input-meter-bar {
    position: relative;
    flex: 1;
    height: 14px;
    border-radius: 999px;
    background: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.input-meter-level {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #27ae60 0%, #f1c40f 50%, #e74c3c 100%);
    transition: width 0.15s ease-out;
}

.input-meter-value {
    min-width: 48px;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mic-track-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mic-track-meta::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.5);
    transition: background 0.2s ease;
}

.mic-track-meta[data-state="muted"]::before {
    background: #e74c3c;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
}

.mic-track-meta[data-state="disabled"]::before {
    background: #f1c40f;
}

.mic-track-meta[data-state="checking"]::before {
    background: #f1c40f;
}

.silence-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid rgba(231, 76, 60, 0.2);
    background: rgba(231, 76, 60, 0.08);
    color: #c0392b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.silence-warning svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.recording-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e74c3c;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
}

.status-text {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.recording-timer {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

/* ===== LIVE TRANSCRIPT DISPLAY ===== */

.live-transcript-container {
    margin: 20px 0 30px 0;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.live-transcript-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.live-icon {
    width: 20px;
    height: 20px;
    animation: liveIndicator 2s ease-in-out infinite;
}

@keyframes liveIndicator {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.live-transcript-text {
    padding: 25px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    background: #f8f9fc;
}

.live-transcript-text:empty::before {
    content: 'Start speaking...';
    color: #adb5bd;
    font-style: italic;
}

/* Typing indicator for interim results */
.live-transcript-text .interim {
    color: #7f8c8d;
    font-style: italic;
}

.live-transcript-text .final {
    color: #2c3e50;
}

/* Scrollbar for live transcript */
.live-transcript-text::-webkit-scrollbar {
    width: 8px;
}

.live-transcript-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.live-transcript-text::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.live-transcript-text::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* ===== AUDIO VISUALIZER ===== */

.audio-visualizer-modern {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

#audioCanvas {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .device-meter-row {
        gap: 16px;
    }

    .device-selector,
    .input-meter-wrapper {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* ===== RECORDING CONTROLS ===== */

.recording-controls-modern {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.control-btn svg {
    width: 28px;
    height: 28px;
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
    color: #667eea;
}

.control-btn-danger:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fff5f5;
}

.control-btn:active {
    transform: translateY(-1px);
}

/* ===== TRANSCRIPTION RESULT ===== */

.transcription-result {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.transcription-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

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

.check-icon {
    width: 28px;
    height: 28px;
    color: #27ae60;
    animation: checkPop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes checkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.transcription-header-modern h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.confidence-badge::before {
    content: '✓';
    font-size: 16px;
}

/* ===== TRANSCRIPTION TEXT ===== */

.transcription-content {
    margin: 25px 0;
}

.transcription-text-modern {
    padding: 25px;
    background: #f8f9fc;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    min-height: 120px;
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

.transcription-text-modern:empty::before {
    content: 'Transcription will appear here...';
    color: #adb5bd;
    font-style: italic;
}

.transcript-editor {
    width: 100%;
    min-height: 120px;
    padding: 25px;
    border: 2px solid #667eea;
    background: white;
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.8;
    color: #2c3e50;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.2);
}

.transcript-editor:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* ===== AUDIO PLAYBACK ===== */

.audio-playback-modern {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f6 100%);
    border-radius: 16px;
}

.audio-playback-modern audio {
    width: 100%;
    border-radius: 12px;
    outline: none;
}

/* ===== ACTION BUTTONS ===== */

.transcription-actions-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.action-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn-secondary {
    background: white;
    color: #495057;
    border-color: #dee2e6;
}

.action-btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.action-btn-danger {
    background: white;
    color: #e74c3c;
    border-color: #fadbd8;
}

.action-btn-danger:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

/* ===== PROCESSING OVERLAY ===== */

.processing-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    z-index: 100;
}

.processing-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spinner-rotate 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #764ba2;
    animation-delay: -0.5s;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #f093fb;
    animation-delay: -1s;
}

@keyframes spinner-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.microphone-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    color: #667eea;
    animation: pulse-scale 2s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
}

.processing-text {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.processing-subtext {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* ===== VOICE NOTES LIST ===== */

.ennu-voice-notes-list {
    max-width: 100%;
    margin: 20px 0;
}

.voice-notes-search {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-search {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.voice-notes-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.voice-notes-filters select {
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-notes-filters select:hover {
    border-color: #667eea;
}

.voice-notes-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.voice-notes-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    min-height: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.voice-note-item {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    border: 2px solid #e9ecef;
    border-radius: 14px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-note-item:hover {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.voice-note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
}

.voice-note-transcript {
    padding: 18px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    line-height: 1.7;
    color: #2c3e50;
    font-size: 15px;
    border-left: 4px solid #667eea;
}

.voice-note-audio audio {
    width: 100%;
    margin-bottom: 15px;
}

.voice-note-actions {
    display: flex;
    gap: 10px;
}

.voice-note-actions button {
    padding: 10px 18px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-delete {
    background: white;
    color: #e74c3c;
    border-color: #fadbd8;
}

.btn-delete:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.voice-notes-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f6 100%);
    border-radius: 14px;
}

.voice-notes-pagination button {
    padding: 10px 24px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-notes-pagination button:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.voice-notes-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #495057;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #adb5bd;
}

.loading-spinner {
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner .spinner {
    display: inline-block;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .voice-recorder-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .btn-start-recording {
        width: 90px;
        height: 90px;
    }

    .microphone-icon {
        width: 38px;
        height: 38px;
    }

    .recorder-title {
        font-size: 22px;
    }

    .recording-timer {
        font-size: 28px;
    }

    .recording-controls-modern {
        flex-direction: column;
    }

    .control-btn {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }

    .transcription-actions-modern {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        min-width: auto;
    }

    .voice-note-header {
        flex-direction: column;
        gap: 8px;
    }

    .transcription-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ===== DARK MODE SUPPORT ===== */

@media (prefers-color-scheme: dark) {
    .voice-recorder-card {
        background: linear-gradient(135deg, #1a1d2e 0%, #16213e 100%);
    }

    .recorder-title {
        color: #e9ecef;
    }

    .recorder-subtitle,
    .status-text,
    .processing-text {
        color: #adb5bd;
    }

    .transcription-text-modern {
        background: #212529;
        border-color: #343a40;
        color: #e9ecef;
    }

    .recording-header {
        background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    }

    .control-btn,
    .action-btn-secondary {
        background: #212529;
        border-color: #343a40;
        color: #e9ecef;
    }
}

/* ===== ANIMATIONS & EFFECTS ===== */

.voice-recorder-card:hover {
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Smooth transitions for all interactive elements */
.ennu-voice-recorder * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success state animations */
@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
}

.transcription-result {
    animation: fadeInScale 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Loading skeleton for voice notes list */
.voice-notes-items:empty::before {
    content: 'Loading voice notes...';
    display: block;
    text-align: center;
    padding: 40px;
    color: #adb5bd;
    font-style: italic;
}

/* Glassmorphism effect for modern look */
.audio-visualizer-modern {
    backdrop-filter: blur(20px);
    position: relative;
}

.audio-visualizer-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    pointer-events: none;
}
