/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen reader only - for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 0;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 40px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.upload-section {
    display: flex;
    justify-content: center;
}

.upload-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.upload-icon {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.upload-description {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* File Input Styles */
.file-input-container {
    margin-bottom: 30px;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 30px 40px;
    border: 3px dashed #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    background: #fafafa;
    position: relative;
}

.file-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.file-label.drag-over {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.02);
}

.file-label i {
    font-size: 40px;
    color: #667eea;
    display: block;
    margin-bottom: 15px;
}

.file-label-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.file-label-subtext {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

/* File Info Styles */
.file-info {
    margin-bottom: 30px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
    border: 1px solid #e0e7ff;
}

.file-details i {
    font-size: 24px;
    color: #10b981;
}

.file-text {
    flex: 1;
    text-align: left;
}

.file-name {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.file-size {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.remove-file {
    background: #ef4444;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-file:hover {
    background: #dc2626;
}

/* Upload Button */
.upload-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.upload-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.upload-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.upload-button:active {
    transform: translateY(0);
}

/* Progress Bar */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Results */
.result-container {
    margin-top: 20px;
}

.result-success,
.result-error {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.result-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.result-success i {
    font-size: 50px;
    color: #10b981;
    margin-bottom: 15px;
}

.result-success h3 {
    color: #065f46;
    margin-bottom: 10px;
}

.result-success p {
    color: #047857;
    margin-bottom: 25px;
}

.result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.result-error i {
    font-size: 50px;
    color: #ef4444;
    margin-bottom: 15px;
}

.result-error h3 {
    color: #991b1b;
    margin-bottom: 10px;
}

.result-error p {
    color: #dc2626;
    margin-bottom: 25px;
}

/* Buttons */
.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Info Section */
.info-section {
    margin-top: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #fbbf24;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    opacity: 0.9;
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .upload-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .upload-card h2 {
        font-size: 1.5rem;
    }
    
    .file-label {
        padding: 20px;
    }
    
    .file-label i {
        font-size: 30px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 0;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .upload-card {
        padding: 25px 15px;
    }
    
    .file-label {
        padding: 15px;
    }
    
    .upload-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Buy Me a Coffee / Tip Jar Styles */
.tip-jar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #6f4e37, #8b4513);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.3);
    transition: all 0.3s ease;
    animation: tipJarBounce 2s ease-in-out infinite;
}

.tip-jar:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(111, 78, 55, 0.4);
    background: linear-gradient(135deg, #8b4513, #6f4e37);
}

.tip-jar-icon {
    font-size: 1.2em;
    animation: coffeesteam 2s ease-in-out infinite;
}

@keyframes tipJarBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@keyframes coffeesteam {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.header-tip-button {
    background: linear-gradient(135deg, #6f4e37, #8b4513);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: absolute;
    top: 20px;
    right: 20px;
}

.header-tip-button:hover {
    background: linear-gradient(135deg, #8b4513, #6f4e37);
    transform: translateY(-1px);
}

.footer-tip-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    margin-top: 30px;
}

.footer-tip-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-tip-content p {
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-tip-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tip-option {
    background: linear-gradient(135deg, #6f4e37, #8b4513);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: center;
}

.tip-option:hover {
    background: linear-gradient(135deg, #8b4513, #6f4e37);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 78, 55, 0.3);
}

.tip-option.popular {
    background: linear-gradient(135deg, #28a745, #20c997);
    position: relative;
    overflow: hidden;
}

.tip-option.popular::before {
    content: "⭐ Popular";
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ffc107;
    color: #000;
    padding: 2px 6px;
    border-radius: 0 25px 0 10px;
    font-size: 0.7em;
    font-weight: 700;
}

.tip-option.popular:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
}

.footer-tip-message {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 10px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .tip-jar {
        bottom: 15px;
        left: 15px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .header-tip-button {
        top: 15px;
        right: 15px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .footer-tip-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tip-option {
        width: 100%;
        max-width: 250px;
    }
    
    .footer-tip-section {
        padding: 20px;
    }
} 

/* Header Layout for Index Page */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    margin-left: 10px;
}

.language-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 30px 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 20 20'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 12px;
    transition: all 0.3s ease;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.language-select option {
    background: #495057;
    color: white;
    padding: 4px 8px;
}

/* Language switcher for results page */
.header-actions .language-switcher .language-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* Mobile adjustments for language switcher */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: 0;
    }
    
    .language-select {
        font-size: 0.75rem;
        padding: 5px 25px 5px 8px;
    }
}

/* Instructions Section with Carousel */
.instructions-section {
    background: rgba(255, 255, 255, 0.95);
    margin: 40px 0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.instructions-content h2 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.instructions-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Carousel Container */
.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: white;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 1200%; /* 12 slides × 100% */
}

.carousel-slide {
    width: 8.333%; /* 100% / 12 slides */
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    min-height: 400px;
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.slide-text {
    flex: 1;
    padding-left: 20px;
}

.slide-text h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.slide-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Slides without images (steps 9 and 10) */
.slide-content-no-image {
    justify-content: center;
    text-align: center;
}

.slide-content-no-image .slide-text {
    max-width: 600px;
    padding-left: 0;
}

.slide-content-no-image .slide-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.slide-content-no-image .slide-text p {
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.carousel-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.carousel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.carousel-btn i {
    font-size: 1.2rem;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: #bbb;
}

.carousel-indicator.active:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Carousel Progress */
.carousel-progress {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar-carousel {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-carousel {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 10%; /* Start at 10% for step 1 */
}

.step-counter {
    color: #666;
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .instructions-section {
        margin: 20px 0;
        padding: 30px 20px;
    }
    
    .instructions-content h2 {
        font-size: 2rem;
    }
    
    .instructions-subtitle {
        font-size: 1rem;
    }
    
    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        min-height: auto;
    }
    
    .slide-image {
        margin-bottom: 20px;
    }
    
    .slide-image img {
        max-height: 250px;
    }
    
    .slide-text {
        padding-left: 0;
    }
    
    .slide-text h3 {
        font-size: 1.5rem;
    }
    
    .slide-text p {
        font-size: 1rem;
    }
    
    .carousel-controls {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-indicators {
        order: 1;
        width: 100%;
        margin: 10px 0;
    }
    
    .carousel-progress {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .instructions-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content {
        padding: 20px 15px;
    }
    
    .slide-text h3 {
        font-size: 1.3rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn i {
        font-size: 1rem;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
} 