.translator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0 3rem 0;
}

@media (max-width: 768px) {
    .translator-container {
        padding: 1rem 0 2rem 0;
    }
}

.form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    margin-bottom: 2rem;
}

.form-card .card-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 1.5rem;
}

.form-card .card-body {
    padding: 2rem;
}

.video-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.video-preview.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.video-thumbnail {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.video-info h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.language-selector {
    position: relative;
}

.language-selector .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.language-selector .form-select:focus {
    border-color: #333;
    box-shadow: 0 0 0 0.2rem rgba(51, 51, 51, 0.25);
}

.btn-translate {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 1px solid #333;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

.btn-translate:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 51, 51, 0.3);
    color: white;
}

.btn-translate:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.btn-theme-outline {
    border: 1px solid #333;
    color: #333;
    background: transparent;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-theme-outline:hover {
    background: #333;
    border-color: #333;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(51, 51, 51, 0.3);
}

.btn-theme-outline.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.progress-container {
    display: none;
    margin-top: 1.5rem;
}

.progress-container.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #333 0%, #6c757d 100%);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    animation: fadeIn 0.5s ease-in-out;
}

.recent-sessions {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
}

.recent-sessions .card-header {
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 1.5rem;
}

.session-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.session-item:hover {
    background-color: #f8f9fa;
}

.session-item:last-child {
    border-bottom: none;
}

.session-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-processing {
    background-color: #fff3cd;
    color: #856404;
}

.feature-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.feature-highlight h1 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.feature-highlight p {
    color: #6c757d;
    text-align: left;
    line-height: 1.6;
}

.feature-highlight .lead {
    font-size: 1.1rem;
}

.error-alert {
    border-radius: 10px;
    border: none;
    display: none;
}

.error-alert.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Update button styles for consistency */
.btn-view-video {
    background: #333;
    border: 1px solid #333;
    color: white;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-view-video:hover {
    background: #212529;
    border-color: #212529;
    color: white;
}

/* Stats card styling for hero section */
.stats-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stats-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stats-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #ff4b4b 0%, #dc3545 100%);
    color: white;
    padding: 6rem 0 4rem;
    margin: -76px 0 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" fill="none"><path d="m0,0v46.29c47.79,22.2 103.59,32.17 171,32.17 160,0 292-40 375-40 40,0 88,5 110,23v-61.46z" fill="%23ffffff" opacity="0.1"/></svg>') no-repeat center bottom;
    background-size: cover;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-item {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0 3rem;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
}

/* Modern Form Styling */
.form-floating > label {
    color: #6c757d;
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label {
    color: #dc3545;
}

.form-floating > .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-floating > .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Feature cards */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-card .feature-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.feature-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* CTA Button */
.btn-cta {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
}