/* Image Converter Plugin Styles v2.1.0 */

.image-converter-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.converter-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.converter-card h2 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-size: 28px;
}

.subtitle {
    color: #666;
    margin: 0 0 30px 0;
}

/* Drag and Drop Area */
.drag-drop-area {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    background: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-area:hover {
    border-color: #4CAF50;
    background: #f0fff4;
}

.drag-drop-area.drag-over {
    border-color: #4CAF50;
    background: #e6f7e6;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
    font-weight: 500;
}

.upload-subtext {
    color: #999;
    font-size: 14px;
    margin: 5px 0 15px 0;
}

.btn-browse {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-browse:hover {
    background: #45a049;
}

/* File Preview List */
.file-preview-list {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.file-preview-item {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background: #fafafa;
}

.file-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-preview-name {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-size {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.remove-file:hover {
    background: #d32f2f;
}

/* Settings Section */
.settings-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.settings-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input[type='number'],
.form-group input[type='range'],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input[type='range'] {
    padding: 0;
    height: 8px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.resize-note {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #e3f2fd;
    border-left: 3px solid #2196F3;
    color: #1565C0;
    border-radius: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Button Group */
.button-group {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: center;
}

.btn-reset {
    padding: 15px 25px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-reset:hover {
    background: #f57c00;
}

.btn-convert,
.btn-download-all {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}

.btn-convert:hover,
.btn-download-all:hover {
    background: #45a049;
}

.btn-convert:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.btn-download-all {
    margin-top: 20px;
    background: #2196F3;
}

.btn-download-all:hover {
    background: #1976D2;
}

/* Results Section */
#results-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

#results-container h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.result-details {
    font-size: 13px;
    color: #666;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.btn-download-single {
    padding: 8px 20px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-download-single:hover {
    background: #45a049;
}

/* Error Message */
.error-message {
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .converter-card {
        padding: 20px;
    }
    
    .form-row,
    .button-group {
        grid-template-columns: 1fr;
    }
    
    .file-preview-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}