/* ===============================
   Global Layout
================================*/

.tool-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

body {
    background: #f3f4f6;
}

element.style {
    display:flex;
}

/* ===============================
   Files List
================================*/

.files-list {
    margin: 20px auto;
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.file-item {
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.25s ease;
}

.file-item:hover {
    border-color: #6366f1;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.file-item span {
    font-size: 14px;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 75%;
}

.file-item button {
    border: none;
    background: #ef4444;
    color: white;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.file-item button:hover {
    background: #dc2626;
}

/* ===============================
   Add More Button
================================*/

.add-more-files {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.add-more-btn {
    border: 1px dashed #6366f1;
    background: #eef2ff;
    color: #4f46e5;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.25s;
}

.add-more-btn:hover {
    background: #e0e7ff;
    transform: scale(1.03);
}

/* ===============================
   Options Section
================================*/

.options-section {
    max-width: 700px;
    margin: 30px auto;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.options-title {
    grid-column: span 2;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* ===============================
   Inputs
================================*/

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group.full {
    grid-column: span 2;
}

.option-group label {
    font-size: 12.5px;
    margin-bottom: 6px;
    color: #6b7280;
    font-weight: 500;
}

.option-group input,
.option-group select {
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 13.5px;
    background: #f9fafb;
    transition: all 0.25s ease;
}

.option-group input:hover,
.option-group select:hover {
    border-color: #9ca3af;
}

.option-group input:focus,
.option-group select:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    outline: none;
}

/* ===============================
   Checkboxes
================================*/

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.checkbox-group input {
    accent-color: #6366f1;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

/* ===============================
   Action Buttons
================================*/

.action-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-success {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

/* ===============================
   Loading
================================*/

.loading {
    margin-top: 20px;
    text-align: center;
    color: #374151;
}

.loading-spinner {
    font-size: 22px;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===============================
   Toast
================================*/

.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #111827;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    font-size: 13px;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   Mobile
================================*/

@media (max-width: 640px) {

    .options-section {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .options-title {
        grid-column: span 1;
    }

    .file-item {
        max-width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}