:root {
    --primary-color: #d24726;
    --secondary-color: #f36c3d;
    --accent-color: #ff9a3d;
    --light-color: #f8f9fa;
    --dark-color: #2d3436;
    --gray-color: #636e72;
    --border-color: #dfe6e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7ff;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

.converter-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.drop-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.drop-area.highlight {
    border-color: var(--primary-color);
    background-color: rgba(210, 71, 38, 0.05);
}

.drop-area i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.file-types {
    font-size: 14px;
    color: var(--gray-color);
    margin-top: 15px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.file-preview {
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview i {
    font-size: 28px;
    color: var(--primary-color);
}

.file-details {
    flex: 1;
}

.file-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.file-details p {
    color: var(--gray-color);
    font-size: 14px;
}

.change-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    font-size: 14px;
}

.change-btn:hover {
    background-color: rgba(210, 71, 38, 0.05);
}

.options-section {
    margin-top: 30px;
}

.options-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.option-group select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

.extract-btn {
    width: 100%;
    margin-top: 20px;
}

.progress-section {
    margin-top: 30px;
    text-align: center;
}

.progress-bar {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.results-section {
    margin-top: 30px;
    text-align: center;
}

.success-message {
    margin-bottom: 20px;
}

.success-message i {
    font-size: 60px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.success-message p {
    color: var(--gray-color);
    font-size: 16px;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: #f8f9fa;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-preview .download-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-preview:hover .download-btn {
    opacity: 1;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.download-all-btn {
    background-color: var(--accent-color);
}

.download-all-btn:hover {
    background-color: #ff8c1a;
}

.new-extraction-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.new-extraction-btn:hover {
    background-color: rgba(210, 71, 38, 0.05);
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h4 {
    margin-bottom: 10px;
}

.feature p {
    color: var(--gray-color);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .converter-box {
        padding: 20px;
    }
    
    .drop-area {
        padding: 30px 20px;
    }
    
    .features {
        flex-direction: column;
    }
    
    .download-options {
        flex-direction: column;
    }
    
    .download-options .btn {
        width: 100%;
    }
}