/* Main styles for Audio Translator application */

.microphone-icon {
    font-size: 2.5rem;
    color: white;
}

.copy-success {
    color: green;
    font-weight: bold;
}

.spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animated-fade {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.recording-section {
    padding: 20px 0;
}

#recordBtn {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#recordBtn i {
    font-size: 2rem;
}

#recordBtn.recording {
    background-color: #198754;
    animation: pulse 1.5s infinite;
}

.timer {
    font-size: 1.8rem;
    font-weight: bold;
    color: #6c757d;
}

.translation-text {
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

#copyBtn:hover {
    background-color: #0d6efd;
    color: white;
}

#loadingSpinner {
    margin: 20px 0;
}

/* Animation for recording button */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #recordBtn {
        width: 70px;
        height: 70px;
    }
    
    #recordBtn i {
        font-size: 1.6rem;
    }
    
    .timer {
        font-size: 1.5rem;
    }
}

/* Fixed recording button at bottom */
.fixed-bottom-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: rgba(248, 249, 250, 0.9);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #dee2e6;
}

.record-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.record-btn:hover {
    transform: scale(1.05);
    background-color: #c82333;
}

.record-btn.recording {
    animation: pulse 1.5s infinite;
    background-color: #198754;
}

/* Add padding to the bottom of the content to prevent overlap with fixed button */
.content-padding-bottom {
    padding-bottom: 140px;
} 