/* public/assets/css/image/img-converter.css */
.img-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #3b82f6; --p-text: #0f172a; width: 100%; max-width: 800px; margin: 0 auto; background: var(--p-bg); border-radius: 24px; padding: 32px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); border: 1px solid var(--p-border); }
.img-header { font-size: 1.5rem; font-weight: 600; color: var(--p-text); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.img-badge { background: #dbeafe; color: #1e40af; padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 500; }
.img-subtitle { color: #64748b; font-size: 0.95rem; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; margin-bottom: 24px; }

@media(max-width: 768px) { 
    .img-tool-wrapper { padding: 20px; border-radius: 16px; }
    .img-controls { grid-template-columns: 1fr !important; }
}

.img-upload-area { border: 2px dashed #cbd5e1; border-radius: 16px; padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.2s; background: #f8fafc; margin-bottom: 24px; }
.img-upload-area.drag-over { border-color: var(--p-primary); background: #eff6ff; }

.img-editor-panel { display: none; background: #f8fafc; border: 1px solid var(--p-border); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.img-preview-container { text-align: center; margin-bottom: 24px; background: #e2e8f0; border-radius: 12px; padding: 12px; max-height: 250px; overflow: hidden; display: flex; justify-content: center; align-items: center;}
.img-preview-container img { max-width: 100%; max-height: 226px; object-fit: contain; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.img-file-info { font-size: 0.9rem; color: #475569; font-weight: 500; text-align: center; margin-top: 12px; }

.img-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.img-control-group { display: flex; flex-direction: column; gap: 8px; }
.img-control-group label { font-weight: 500; color: #334155; font-size: 0.95rem; }
.img-select { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; outline: none; background: white; font-size: 0.95rem; }
.img-select:focus { border-color: var(--p-primary); }

.img-quality-slider { width: 100%; accent-color: var(--p-primary); cursor: pointer; }
.img-quality-val { font-size: 0.85rem; color: #64748b; text-align: right; }

.img-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.img-btn { padding: 12px 24px; border-radius: 30px; font-weight: 500; cursor: pointer; border: none; background: var(--p-primary); color: white; transition: 0.2s;}
.img-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.img-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

[data-theme="dark"] .img-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .img-upload-area { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .img-editor-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .img-preview-container { background: #1e293b; }
[data-theme="dark"] .img-file-info, [data-theme="dark"] .img-control-group label, [data-theme="dark"] .img-quality-val { color: #cbd5e1; }
[data-theme="dark"] .img-select { background: #1e293b; border-color: #475569; color: #f8fafc; }