.tool-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header-section {
    text-align: center;
    margin-bottom: 2rem;
}

.header-section h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.header-section .subtitle {
    color: #666;
    font-size: 1.1rem;
}

.converter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.upload-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    margin-bottom: 60px;
}

.upload-area.highlight {
    border-color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.1);
}

.upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-prompt i {
    font-size: 3rem;
    color: var(--primary-color);
}

.upload-prompt h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.upload-prompt p {
    color: #666;
    margin: 0;
}

.upload-btn {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.upload-btn i {
    display: none;
}

/* .upload-btn:hover {
    background: var(--primary-color-dark);
} */

.file-info {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-info i {
    display: none;
}

.preview-content {
    width: 100%;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-header h3 {
    margin: 0;
    color: #333;
}

.add-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-more-btn i {
    display: none;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    padding: 0.5rem;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
}

.remove-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.format-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.format-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.format-dropdown label {
    font-weight: 500;
    color: #333;
}

.format-dropdown select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
}

.progress-container {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    margin-top: 0.5rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.convert-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.convert-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.quality-dropdown {
    display: none;
}

@media (max-width: 768px) {
    .tool-main {
        padding: 1rem;
    }

    .header-section h1 {
        font-size: 2rem;
    }

    .converter-container {
        padding: 1rem;
    }

    .upload-area {
        padding: 2rem;
    }

    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .header-section h1 {
        font-size: 1.8rem;
    }

    .upload-area {
        padding: 1.5rem;
    }

    .upload-prompt i {
        font-size: 2.5rem;
    }

    .upload-prompt h3 {
        font-size: 1.2rem;
    }

    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
} 