#tumbler-wrap-tool {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    background: #fff;
}

input, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background: #5d5e5d;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #919696;
}

/* General form styling */
#tumbler-wrap-tool {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

#upload-form {
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 10px;
}

.input-group input[type="number"],
.input-group button {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* Drop zone styling */
.dropzone {
    width: 100%;
    height: 150px;
    border: 2px dashed #aaa;
    text-align: center;
    line-height: 150px;
    cursor: pointer;
    box-sizing: border-box;
}

/* Progress container styling */
#progress-container {
    display: none; /* Shown when needed via JS */
    position: relative;
    width: 100%;
    height: 30px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

#progress-container progress {
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: none;
}

#progress-container progress::-webkit-progress-bar {
    background-color: #ccc;
}

#progress-container progress::-webkit-progress-value {
    background: linear-gradient(to right, #888, #aaa);
}

#progress-container progress::-moz-progress-bar {
    background: linear-gradient(to right, #888, #aaa);
}

#progress-container #progress-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    line-height: 30px;
    color: #333;
    font-weight: bold;
    pointer-events: none;
}

/* Modal popup styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Black with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#processed-image {
    display: none;
    max-width: 100%;
    border: 1px solid #ccc;
    margin-top: 10px;
}

#download-image {
    display: none;
    padding: 10px;
    background: #919696;
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 10px;
    border-radius: 5px;
}
