/* =========================================
   TOOL UI (CLEAN & FINAL)
   ========================================= */

/* ===== HEADER ===== */
.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111827;
}

.tool-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* =========================================
   DROPZONE
   ========================================= */

.dropzone-box {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    border-radius: 20px;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.dropzone-box:hover {
    background: #e0f2f1;
    transform: scale(1.02);
}

/* Drag active */
.dropzone-box.dragging {
    background: #d1f3f6;
    border-style: solid;
}

/* ICON */
.drop-icon-circle {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BUTTON */
.btn-select {
    background: var(--primary);
    color: #fff;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-select:hover {
    background: var(--primary-dark);
}

/* TEXT */
.drop-hint {
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================================
   FILE LIST
   ========================================= */

.file-list-card {
    width: 100%;
    max-width: 750px;
    margin: 20px auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

/* ROW */
.file-row {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
}

.file-row:last-child {
    border-bottom: none;
}

/* DRAG */
.drag-handle {
    font-size: 20px;
    cursor: grab;
    color: #475569;
}

/* THUMB */
.file-thumb {
    width: 45px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFO */
.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ACTIONS */
.row-actions {
    display: flex;
    gap: 8px;
}

.action-icon-btn {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.action-icon-btn:hover {
    transform: scale(1.05);
}

.action-icon-btn.delete:hover {
    color: red;
}

/* =========================================
   BUTTON
   ========================================= */

.btn-finish {
    width: 100%;
    max-width: 750px;
    margin: 20px auto;
    display: block;
    padding: 16px;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-finish:hover {
    background: var(--primary-dark);
}

/* =========================================
   LOADING / DONE
   ========================================= */

.loader-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.success-icon {
    font-size: 50px;
}

/* TIP */
.smart-tip {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.smart-tip.blue {
    color: #3b82f6;
}