/* Settings Panel */
.settings-panel {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.setting-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-color);
}

.setting-group select,
.setting-group input[type="range"] {
    width: 100%;
    padding: 0.5rem;
    background: #ffffff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
}

.setting-group select:focus {
    border-color: var(--primary-color, #0ea5e9);
}

.setting-group small {
    color: var(--text-muted, #94a3b8);
    font-size: 0.8rem;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary-color, #0ea5e9);
    background: #f0f9ff;
}

.drop-content {
    pointer-events: none;
}

.drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Action Panel & List */
.action-panel {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.action-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#status-text {
    flex-grow: 1;
    font-weight: bold;
    color: var(--primary-color, #0ea5e9);
}

.progress-container {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item .file-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.file-item .file-thumb.heic-thumb {
    font-size: 0.8rem;
    font-weight: bold;
}

.file-item .file-info {
    flex-grow: 1;
    overflow: hidden;
}

.file-item .file-name {
    font-weight: bold;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.file-item .file-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-item .file-status {
    min-width: 80px;
    text-align: right;
    font-size: 0.9rem;
}

.status-waiting { color: var(--text-muted); }
.status-converting { color: #f59e0b; }
.status-done { color: #10b981; }
.status-error { color: #ef4444; }

/* Buttons */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color, #0ea5e9);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
    background: #0284c7;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: #e2e8f0;
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #cbd5e1;
}
