/* static/css/style.css */

.progress-container {
    margin-bottom: 15px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

.progress-bar {
    transition: width 0.5s ease;
}

.progress-label {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

/* Privacy policy checkbox styling */
.privacy-policy-checkbox {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.privacy-policy-checkbox .form-check {
    margin-bottom: 10px;
}

.privacy-policy-link {
    color: #0d6efd;
    text-decoration: underline;
    cursor: pointer;
}

/* Modal styling for privacy policy */
.privacy-policy-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* Disabled download button styling */
.btn-download-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.download-options {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.download-options .form-check {
    margin-bottom: 10px;
}

.download-options .form-check-label {
    font-weight: normal;
    color: #212529;
}

.download-options .checkbox-info {
    font-size: 0.85em;
    color: #6c757d;
    margin-left: 25px;
    margin-top: 2px;
}

/* Make checkboxes more visible */
.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

/* Custom styling for the user-only checkbox */
#userOnly:checked {
    background-color: #28a745;
    border-color: #28a745;
}

/* Responsive styling */
@media (max-width: 768px) {
    .download-options {
        padding: 10px;
    }
}

.text-fallback-container {
    margin-top: 15px;
    width: 100%;
}

.text-fallback-container .input-group {
    margin-bottom: 5px;
}

.audio-loading {
    display: inline-block;
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 8px;
}

.error-message {
    border-left: 3px solid #f44336;
}

.retry-btn {
    margin-top: 8px;
    font-size: 0.8em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-fallback-container {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

body {
    background-color: #f5f7fa;
}

.chat-container {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-bubble {
    border-radius: 18px;
    padding: 10px 15px;
    margin-bottom: 15px;
    max-width: 80%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
}

.user-message {
    background-color: #e3f2fd;
    color: #0d47a1;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-message {
    background-color: #f5f5f5;
    color: #424242;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.recording-indicator {
    color: #f44336;
    display: none;
    animation: blink 1s infinite;
    margin-right: 5px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.steps-container {
    margin-bottom: 30px;
}

.step {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.active-step {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4caf50;
}

.inactive-step {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
}

.hidden {
    display: none;
}

.app-header {
    background-color-old: #3f51b5;
    background-color: #cff4fc;
    colorold: white;
    color: #0dcaf0;
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-title {
    font-weight: 700;
    letter-spacing: 1px;
}

#startRecordingBtn {
    position: relative;
    min-width: 150px;
    transition: all 0.3s ease;
}

#startRecordingBtn.btn-danger {
    animation: pulse 1.5s infinite;
}

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

.form-check-input:checked {
    background-color: #4caf50;
    border-color: #4caf50;
}

.info-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Toast customization */
.toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* For better mobile experience */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chat-bubble {
        max-width: 90%;
    }
    
    #startRecordingBtn {
        min-height: 60px;
    }
}
