/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    width: 100%;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header Styles */
header {
    background: linear-gradient(to right, #4a6fa5, #6a93cb);
    color: white;
    padding: 30px;
    text-align: center;
    border-bottom: 5px solid #3a5a8c;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Card Styles */
.card {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    margin: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.card h2 {
    color: #4a6fa5;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language Selector */
.language-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-selector label {
    font-weight: 600;
    color: #555;
}

.language-selector select {
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: all 0.3s;
    cursor: pointer;
}

.language-selector select:focus {
    border-color: #4a6fa5;
    outline: none;
    background-color: #fff;
}

/* Source Selector */
.source-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.source-btn {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
    background-color: #f9f9f9;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.source-btn:hover {
    background-color: #eef2f7;
    border-color: #b8c7d9;
}

.source-btn.active {
    background-color: #4a6fa5;
    color: white;
    border-color: #3a5a8c;
}

/* Disabled File Source Button */
.source-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.source-btn.disabled:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
}

/* Source Sections */
.source-section {
    display: none;
}

.source-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Recording Controls */
.recording-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.btn {
    padding: 15px 25px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background-color: #4a6fa5;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #3a5a8c;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #7f8c8d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #636e72;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Voice Activity Indicator */
.activity-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eaeaea;
}

.indicator-label {
    font-weight: 600;
    color: #555;
}

.activity-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #7f8c8d;
    transition: background-color 0.3s;
}

.activity-dot.active {
    background-color: #2ecc71;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* File Upload Section - BLOCKED OVERLAY */
.file-upload-section {
    position: relative;
}

.file-upload-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    border-radius: 10px;
}

.file-upload-section::after {
    content: "🔒 Audio File Transcription Not Available";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 25px 35px;
    border-radius: 15px;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    z-index: 11;
    box-shadow: 0 10px 25px rgba(238, 90, 82, 0.3);
    max-width: 80%;
    line-height: 1.5;
    border: 3px solid #ff8e8e;
}

.file-upload-section .file-upload-area,
.file-upload-section .audio-player {
    opacity: 0.3;
    pointer-events: none;
    filter: blur(2px);
}

/* Coming Soon Message */
.coming-soon-message {
    background: linear-gradient(135deg, #4a6fa5, #6a93cb);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: center;
    border-left: 5px solid #2ecc71;
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.2);
}

.coming-soon-message h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.coming-soon-message p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.coming-soon-badge {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 10px;
    animation: pulse 2s infinite;
}

/* Transcript Sections */
.transcript-section {
    margin-bottom: 30px;
}

.transcript-section h3 {
    color: #4a6fa5;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transcript-box {
    padding: 20px;
    border-radius: 10px;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.transcript-box.live {
    background-color: #f0f8ff;
    border: 2px solid #c3d9ff;
}

.transcript-box.final {
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
}

.transcript-box p {
    min-height: 50px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Status Card */
.status-card {
    background-color: #f8f9fa;
    border-left: 5px solid #4a6fa5;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
}

.status-card h3 {
    color: #4a6fa5;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#status-message {
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    font-weight: 500;
}

/* Warning Card */
.warning-card {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    display: none;
}

.warning-card h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    color: #666;
    font-size: 0.9rem;
}

.footer-note {
    font-style: italic;
    margin-top: 10px;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        border-radius: 10px;
    }
    
    header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .recording-controls {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .source-selector {
        flex-direction: column;
    }
    
    .file-upload-section::after {
        font-size: 1.1rem;
        padding: 20px;
        max-width: 90%;
    }
}
/* Language Note */
.language-note {
    margin-top: 10px;
    padding: 10px;
    background-color: #e8f4f8;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #31708f;
    border-left: 3px solid #5bc0de;
}

.language-note i {
    color: #5bc0de;
    margin-right: 5px;
}

/* Tips Section */
.tips {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4a6fa5;
}

.tips h4 {
    color: #4a6fa5;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips ul {
    list-style-type: none;
    padding-left: 10px;
}

.tips li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}
/* =========================================
   11. FOOTER SHARE BUTTONS
   ========================================= */

.footer-content {
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.footer-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px 0; /* Add margin for spacing on mobile */
}

.share-label {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #4b5563; /* Dark gray border */
    color: #d1d5db; /* Light gray icon */
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s ease;
}

/* Hover Effects */
.share-btn.facebook:hover {
    background-color: #1877F2;
    color: white;
    border-color: #1877F2;
}

.share-btn.whatsapp:hover {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.share-btn.telegram:hover {
    background-color: #2AABEE;
    color: white;
    border-color: #2AABEE;
}

.share-btn.copy-link:hover {
    background-color: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* Make sure Font Awesome solid and brands are loaded for these icons */