/* Image Converter Styles - Enhanced 3D Design */
.converter-upload-area {
    border: 3px dashed #007bff;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.converter-upload-area:hover {
    border-color: #0056b3;
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    transform: translateY(-2px);
}

.converter-upload-area.dragover {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.converter-upload-content {
    pointer-events: none;
}

.converter-upload-content i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
    display: block;
}

.converter-upload-content h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.converter-upload-content p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 16px;
}

/* 3D Volume Button */
.upload-btn-3d {
    background: linear-gradient(145deg, #007bff, #0056b3);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 15px rgba(0, 123, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.upload-btn-3d:hover {
    background: linear-gradient(145deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(0, 123, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.upload-btn-3d:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 10px rgba(0, 123, 255, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.upload-btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.upload-btn-3d:hover::before {
    left: 100%;
}

#upload-count {
    margin-top: 10px;
    font-size: 14px;
    color: #28a745;
    font-weight: 500;
    pointer-events: none;
}

/* Compact Image List - Horizontal Layout */
.uploaded-images-container {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.uploaded-images-container h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 0;
}

.simple-image-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.simple-image-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.image-row {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.image-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #dee2e6;
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-info {
    flex: 1;
    min-width: 0;
}

.image-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-info p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.image-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Conversion Settings - Enhanced Design */
.conversion-settings {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.conversion-settings h4 {
    margin-bottom: 20px;
    color: #495057;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.settings-container {
    display: grid;
    gap: 20px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.setting-group select,
.setting-group input[type="range"],
.setting-group input[type="number"] {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.setting-group select:focus,
.setting-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.size-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.size-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.size-options label:hover {
    background: #e9ecef;
}

.size-controls {
    margin-top: 10px;
}

.percent-input,
.pixel-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ratio-btn {
    padding: 8px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ratio-btn:hover,
.ratio-btn.active {
    background: #007bff;
    transform: scale(1.05);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn:active {
    transform: translateY(0);
}

.action-buttons .btn.btn-success {
    background: linear-gradient(145deg, #28a745, #20c997);
}

.action-buttons .btn.btn-info {
    background: linear-gradient(145deg, #17a2b8, #007bff);
}

/* Responsive Design */
@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .image-row {
        padding: 10px;
        gap: 10px;
    }
    
    .image-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .size-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}