/* Image Convert - App-specific styles that work with sakura.css */

/* Hide file input */
.file-input {
    display: none;
}

/* Info box */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.info-box p {
    margin: 0;
}

/* Drop zone */
.drop-zone {
    border: 3px dashed #5b9bd5;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.drop-zone:hover, .drop-zone.dragover {
    background: #eef1ff;
    border-color: #4a7fc1;
    transform: translateY(-2px);
}

.drop-zone.dragover {
    background: #e0e5ff;
}

.drop-zone-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.drop-zone-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.drop-zone-hint {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Controls grid */
.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group .description {
    font-size: 1.5rem;
    opacity: 1.0;
    margin-bottom: 8px;
    font-weight: normal;
}

.quality-note {
    font-size: 0.8rem;
    margin-top: 6px;
    font-style: italic;
    line-height: 1.4;
    opacity: 0.9;
}

/* Slider container */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #5b9bd5;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #4a7fc1;
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #5b9bd5;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: #5b9bd5;
    font-size: 1.1rem;
}

/* Number input override */
input[type="number"] {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    width: 100%;
}

input[type="number"]:focus {
    outline: none;
    border-color: #5b9bd5;
}

/* Checkbox container */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #5b9bd5;
}

.checkbox-label {
    font-size: 1.4rem;
    cursor: pointer;
}

/* File list section */
.file-list-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.file-list-header h3 {
    margin: 0;
}

/* File item */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 4px solid #5b9bd5;
}

.file-item.processing {
    border-left-color: #ffc107;
}

.file-item.success {
    border-left-color: #28a745;
}

.file-item.error {
    border-left-color: #dc3545;
}

.file-name {
    font-weight: 500;
    word-break: break-all;
}

.file-status {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

/* Buttons - override sakura */
button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.2s;
    background-color: #6c757d;
    color: white;
}

button:hover {
    transform: translateY(-1px);
    background-color: #5a6268;
    border: none;
}

.btn-primary {
    background-color: #28a745;
}

.btn-primary:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

/* Progress container */
.progress-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5b9bd5, #4a7fc1);
    width: 0%;
    transition: width 0.3s ease;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .drop-zone {
        padding: 40px 20px;
    }

    .controls {
        grid-template-columns: 1fr;
    }

    .file-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
