/* ========== Fast File Deleter — 100% Flat MIDI Pro design (prefix-changed from ncnkar- to ffd-) ========== */

/* Scope reset & container (same as .fmp-frontend) */
.ffd-app,
.ffd-app *,
.ffd-app *::before,
.ffd-app *::after {
    box-sizing: border-box !important;
    font-size: 1rem !important;
}
.ffd-app.ffd-frontend {
    width: 100% !important;
    max-width: 920px;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 13px;
    overflow: hidden;
}

/* Card = .fmp-card */
.ffd-card {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 13px;
    padding: 18px 22px;
    margin: 0 0 8px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    line-height: 1.5;
}
.ffd-card h2 {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #646970;
    font-weight: 600;
}

/* Added for spacing above section heading */
.ffd-section-spaced {
    margin-top: 24px !important;
}

/* Dropzone = .fmp-dropzone */
.ffd-dropzone {
    display: block;
    border: 2px dashed #c3c4c7;
    border-radius: 13px;
    padding: 30px 20px;
    text-align: center;
    color: #50575e;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #f6f7f7;
    box-sizing: border-box;
    margin: 0;
    font-weight: 400;
}
.ffd-dropzone p { margin: 0 0 4px; }
.ffd-dropzone.dragover {
    border-color: #d63638;
    background: #fef7f7;
}
.ffd-dropzone .ffd-link {
    color: #2271b1;
    text-decoration: underline;
    font-weight: 600;
}
.ffd-dropzone .ffd-hint {
    color: #8c8f94;
    margin: 6px 0 0;
}

/* Visually hide native file input button */
.ffd-fileinput {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
}

/* Tabs = .fmp-mode-option */
.ffd-tabs-card {
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ffd-tab {
    flex: 1 1 200px;
    position: relative;
}
.ffd-tab button {
    display: block;
    width: 100%;
    cursor: pointer;
    padding: 14px 16px;
    border: 2px solid #dcdcde;
    border-radius: 13px;
    background: #fff;
    text-align: left;
    font: inherit;
    color: #1d2327;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ffd-tab button:hover { border-color: #b3d4ea; }
.ffd-tab.is-active button {
    border-color: #2271b1;
    background: #f0f6fc;
}
.ffd-tab-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
}
.ffd-tab-radio {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #8c8f94;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ffd-tab.is-active .ffd-tab-radio {
    border-color: #2271b1;
    background: #2271b1;
    box-shadow: inset 0 0 0 3px #fff;
}
.ffd-tab-desc {
    display: block;
    margin: 5px 0 0 25px;
    color: #646970;
}

/* Options = .fmp-mode-option */
.ffd-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ffd-option-card {
    flex: 1 1 200px;
    position: relative;
}
.ffd-option-card input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}
.ffd-option-card label {
    display: block;
    cursor: pointer;
    padding: 14px 16px;
    border: 2px solid #dcdcde;
    border-radius: 13px;
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ffd-option-card label:hover { border-color: #b3d4ea; }
.ffd-option-card input[type="checkbox"]:checked + label {
    border-color: #2271b1;
    background: #f0f6fc;
}
.ffd-option-title {
    display: block;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 4px;
}
.ffd-option-desc {
    display: block;
    color: #646970;
}
.ffd-number-input {
    margin-top: 8px;
    width: 6em;
    padding: 6px 10px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    color: #1d2327;
    font: inherit;
    font-weight: 600;
    box-sizing: border-box;
}
.ffd-number-input:focus {
    border-color: #2271b1;
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

/* Actions = .fmp-actions */
.ffd-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 22px;
}

/* Progress = .fmp-progress-card */
.ffd-progress-bar {
    height: 22px;
    background: #f0f0f1;
    border-radius: 13px;
    overflow: hidden;
    margin-bottom: 10px;
}
.ffd-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2271b1, #d63638);
    transition: width .2s ease;
}
.ffd-status {
    margin: 0;
    font-weight: 600;
    color: #2271b1;
}
.ffd-status.ok      { color: #00a32a; }
.ffd-status.warn    { color: #dba617; }
.ffd-status.error   { color: #d63638; }

/* Result = .fmp-result-card */
.ffd-result-card {}
.ffd-result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 10px 0 16px;
}
.ffd-stat {
    background: #f6f7f7;
    padding: 10px 14px;
    border-radius: 13px;
    text-align: center;
}
.ffd-stat .num { font-weight: 700; display: block; color: #1d2327; }
.ffd-stat .lbl { text-transform: uppercase; color: #646970; letter-spacing: .03em; }
.ffd-stat.ok .num    { color: #00a32a; }
.ffd-stat.fail .num  { color: #d63638; }

/* Log = .fmp-log */
.ffd-log summary {
    cursor: pointer;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #646970;
    font-weight: 600;
    list-style: none;
    margin: 0;
    padding: 0;
    outline: none;
}
.ffd-log summary::-webkit-details-marker { display: none; }
.ffd-log summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    color: #8c8f94;
    transition: transform .15s ease;
}
.ffd-log[open] summary::before { transform: rotate(90deg); }
.ffd-log pre {
    margin: 12px 0 0;
    padding: 10px 14px;
    background: #1d2327;
    color: #50c878;
    font-family: Menlo, Consolas, monospace;
    line-height: 1.5;
    border-radius: 13px;
    max-height: 220px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Mobile responsive (matches flat-midi-pro) */
@media screen and (max-width: 600px) {
    .ffd-app .ffd-card { padding: 14px 16px; }
    .ffd-tabs-card { display: block !important; }
    .ffd-tab { display: block !important; flex: none !important; margin: 0 0 6px !important; }
    .ffd-tab:last-child { margin-bottom: 0 !important; }
    .ffd-options { display: block !important; }
    .ffd-option-card { display: block !important; margin: 0 0 6px !important; }
    .ffd-option-card:last-child { margin-bottom: 0 !important; }
    .ffd-actions { flex-direction: column; align-items: stretch; }
    .ffd-actions > * { width: 100%; text-align: center; }
    .ffd-dropzone { padding: 24px 14px; }
}
