/* ===== Tool Container ===== */

.tool-container {
    max-width: 1000px;
    margin: auto;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Remove body styling (important) */
/* DO NOT use body flex layout now */

/* ===== Heading ===== */
.tool-container h1,
.tool-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary);
}

/* ===== Upload Area ===== */
.upload-area {
    border: 2px dashed var(--primary);
    padding: 50px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: 0.3s ease;
    background: rgba(115,71,158,0.05);
}

.upload-area:hover {
    background: rgba(115,71,158,0.1);
}

/* ===== Controls ===== */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.controls select,
.controls input,
.controls button {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.controls select:focus,
.controls input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(var(--primary-rgb),0.3);
}

/* Button Styling */
.controls button {
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: 0.3s ease;
}

.controls button:hover {
    background: var(--primary-dark);
}

/* ===== Progress Bar ===== */
#progressBar {
    height: 6px;
    background: var(--secondary);
    width: 0%;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* ===== Image Card ===== */
.image-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.image-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.image-info img {
    width: 70px;
    border-radius: 6px;
}

.size-text {
    font-size: 12px;
    color: #666;
}

/* ===== Buttons Inside Card ===== */
/*.buttons {
    display: flex;
    gap: 10px;
}

.remove-btn {
    background: #ff4d4d;
    color: #fff;
    padding: 6px 10px !important;
    border-radius: 5px;
    border: none;
}*/

.download-btn {
    background: #28a745;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    border: none;
}

/*.remove-btn:hover {
    background: #e63939;
}*/

.download-btn:hover {
    background: #1e7e34;
}
.clear-btn {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.clear-btn:hover {
    background: #e63939;
}
