/* ---- FILE INPUT ---- */
.tool-box .tool-input[type="file"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 25px;
    box-sizing: border-box;
}

/* ---- SLIDER ---- */
.slider-wrapper {
    position: relative;
    margin-bottom: 30px;
    height: 50px;
}

.slider-range {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    opacity: 0.9;
    background: green;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #555;
    cursor: pointer;
    box-shadow: 0 0 5px #0003;
    position: relative;
    z-index: 2;
}

.slider-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #555;
    cursor: pointer;
    box-shadow: 0 0 5px #0003;
}

/* Tooltip */
.slider-tooltip {
    position: absolute;
    top: -35px;
    padding: 4px 10px;
    background: #fff;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 6px #0002;
    transform: translateX(-50%);
    pointer-events: none;
    transition: left 0.1s;
    color: #333;
    font-size: 14px;
}

/* ---- PREVIEW GRID ---- */
.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.preview-item {
    width: 200px;
    height: 200px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
}

.preview-item img {
    max-width: 100%;
    max-height: 100%;
}

/* ---- TABLE ---- */
.table-wrapper {
    overflow-x: auto;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    min-width: 600px;
}

.table-wrapper th,
.table-wrapper td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.table-wrapper th {
    background: #0a3d62;
    color: white;
}

.table-wrapper td img {
    max-width: 80px;
    border-radius: 4px;
}

/* ---- DOWNLOAD BUTTON ---- */
.download {
    text-align: right;
    margin-top: 20px;
    border-top: 1px solid #292929;
    padding-top: 20px;
}

.app {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 250px;
    gap: 10px;
    padding: 12px 22px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(135deg, #0a3d62, #07517d);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(78, 78, 78, 0.25);
}

.app .iconn {
    display: flex;
    align-items: center;
    transition: 0.35s ease;
}

.app:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #07517d, #0a3d62);
}

.app:hover .iconn {
    transform: translateX(6px);
}

.app:active {
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: 0.6s;
}

.app:hover::before {
    left: 120%;
}

/* RESPONSIVE */
@media (max-width: 500px) {
    .preview-item {
        width: 100%;
        height: 200px;
    }
}