/* Audio Recorder Styles */

/* Recording Display */
.recording-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(5, 44, 101, 0.05) 0%, rgba(5, 44, 101, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(5, 44, 101, 0.2);
}

[data-bs-theme="dark"] .recording-display {
    background: linear-gradient(135deg, rgba(5, 44, 101, 0.15) 0%, rgba(5, 44, 101, 0.25) 100%);
    border-color: rgba(5, 44, 101, 0.4);
}

/* Recording Indicator */
.recording-indicator {
    position: relative;
    width: 100px;
    height: 100px;
}

.recording-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #6c757d;
    border: 4px solid #495057;
    transition: all 0.3s ease;
}

.recording-circle.recording {
    background-color: #dc3545;
    border-color: #dc3545;
    animation: pulse-recording 1.5s ease-in-out infinite;
}

.recording-circle.paused {
    background-color: #ffc107;
    border-color: #ffc107;
}

@keyframes pulse-recording {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(220, 53, 69, 0);
    }
}

/* Recording Time */
.recording-time {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--bs-primary-text-emphasis);
    text-align: center;
}

/* Compact Recording Display */
.recording-display-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(5, 44, 101, 0.03) 0%, rgba(5, 44, 101, 0.08) 100%);
    border-radius: 8px;
    border: 1px solid rgba(5, 44, 101, 0.15);
}

[data-bs-theme="dark"] .recording-display-compact {
    background: linear-gradient(135deg, rgba(5, 44, 101, 0.1) 0%, rgba(5, 44, 101, 0.2) 100%);
    border-color: rgba(5, 44, 101, 0.3);
}

/* Compact Recording Indicator */
.recording-indicator-compact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.recording-circle-compact {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #6c757d;
    border: 3px solid #495057;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.recording-circle-compact.recording {
    background-color: #dc3545;
    border-color: #dc3545;
    animation: pulse-recording-compact 1.5s ease-in-out infinite;
}

.recording-circle-compact.paused {
    background-color: #ffc107;
    border-color: #ffc107;
}

@keyframes pulse-recording-compact {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
}

/* Compact Recording Time */
.recording-time-compact {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--bs-primary-text-emphasis);
    letter-spacing: 2px;
}

/* Volume Meter */
.volume-meter {
    position: relative;
    width: 100%;
    height: 30px;
    background: linear-gradient(to right,
        #28a745 0%,
        #28a745 60%,
        #ffc107 60%,
        #ffc107 85%,
        #dc3545 85%,
        #dc3545 100%
    );
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .volume-meter {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.volume-meter-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    transition: width 0.1s linear;
    border-right: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
}

/* Audio Preview */
.audio-preview-wrapper {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .audio-preview-wrapper {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.audio-preview {
    width: 100%;
    outline: none;
}

/* Control Buttons */
.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .recording-display {
        padding: 30px 20px;
    }

    .recording-indicator {
        width: 80px;
        height: 80px;
    }

    .recording-circle {
        width: 80px;
        height: 80px;
    }

    .recording-time {
        font-size: 2.5rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* Compact display responsive */
    .recording-display-compact {
        padding: 15px;
    }

    .recording-indicator-compact {
        gap: 10px;
    }

    .recording-circle-compact {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .recording-time-compact {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}
