/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    font-size: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header styles */
.container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1565C0;
    letter-spacing: -0.5px;
}

/* Upload container styles */
.upload-container {
    border: 3px dashed #64B5F6;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    margin: 40px 0;
    background: linear-gradient(to bottom, #F5F9FF, #E3F2FD);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.upload-container:hover {
    border-color: #2196F3;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.15);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.upload-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.upload-container:hover .upload-icon {
    transform: scale(1.1);
}

.browse-text {
    color: #1565C0;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    background-color: rgba(33, 150, 243, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.browse-text:hover {
    background-color: rgba(33, 150, 243, 0.2);
    color: #0D47A1;
}

/* Format selection styles */
.format-selection {
    margin: 30px 0;
    text-align: center;
}

.format-selection label {
    font-weight: 600;
    margin-right: 12px;
    color: #424242;
}

.format-selection select {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #E0E0E0;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-selection select:hover {
    border-color: #90CAF9;
}

/* Button styles */
.convert-btn, .download-all-btn {
    display: block;
    margin: 30px auto;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background-color: #1565C0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(21, 101, 192, 0.2);
}

.convert-btn:hover, .download-all-btn:hover {
    background-color: #0D47A1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 71, 161, 0.25);
}

/* Image gallery styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
    padding: 15px;
}

.image-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.image-item p {
    margin: 12px;
    font-size: 15px;
    color: #424242;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-btn {
    width: 100%;
    padding: 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #1976D2;
}

/* FAQ section styles */
.faq-section {
    margin: 60px 0;
    padding: 30px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1565C0;
    font-size: 2rem;
    font-weight: 700;
}

.faq-item {
    margin-bottom: 25px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #90CAF9;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.faq-item summary {
    padding: 22px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    color: #424242;
    list-style: none;
    position: relative;
    transition: all 0.3s ease;
}

.faq-item summary:hover {
    background-color: #F5F9FF;
    color: #1565C0;
}

.faq-content {
    padding: 5px 25px 25px;
    line-height: 1.7;
}

.faq-content ul, .faq-content ol {
    padding-left: 25px;
    margin: 15px 0;
}

.faq-content li {
    margin: 10px 0;
    color: #424242;
}

.faq-content p {
    margin: 15px 0;
    color: #424242;
}

/* Marketing content styles */
.marketing-content {
    margin: 60px 0;
    padding: 0 20px;
}

.marketing-content h1, .marketing-content h2 {
    color: #1565C0;
    margin: 40px 0 20px;
    font-weight: 700;
}

.marketing-content h1 {
    font-size: 2.2rem;
    text-align: center;
}

.marketing-content h2 {
    font-size: 1.8rem;
}

.marketing-content h3 {
    color: #424242;
    font-size: 1.4rem;
    margin: 30px 0 15px;
    font-weight: 600;
}

.marketing-content p {
    margin: 20px 0;
    color: #424242;
    line-height: 1.7;
}

.marketing-content .tagline {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.marketing-content hr {
    margin: 50px 0;
    border: none;
    border-top: 1px solid #E0E0E0;
}

/* Progress bar styles */
.conversion-status {
    margin: 30px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E3F2FD;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #2196F3;
    transition: width 0.3s ease;
}

#statusText {
    text-align: center;
    margin-top: 10px;
    color: #424242;
    font-weight: 500;
}

#imagePreviewContainer {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    margin: 20px 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

#imagePreviewContainer img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}