/* ================= Container ================= */
.container {
    width: 80%;
    margin: 0 auto;
}

/* ================= Drop Zone ================= */
#drop-zone {
    border: 3px dashed #4CAF50;
    background-color: #f7f7f7;
    text-align: center;
    margin: 20px 0;
    min-height: 200px;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

#drop-zone:hover {
    background-color: #e0e0e0;
    border: 2px solid gray;
    color: #333;
    transform: scale(1.01);
}

#drop-zone p {
    margin: 0;
    color: #999;
}

#choose-btn {
    pointer-events: none;
}

#image-upload {
    display: none;
}

/* ================= Image Preview ================= */
.image-preview-container {
    display: inline-block;
    position: relative;
    margin: 5px;
    padding: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.image-preview {
    max-width: 100px;
    max-height: 100px;
}

.image-name,
.file-info {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* ================= Remove Icon ================= */
.remove-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.remove-icon::before,
.remove-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: white;
}

.remove-icon::before { transform: rotate(45deg); }
.remove-icon::after  { transform: rotate(-45deg); }

/* ================= Utilities ================= */
.hidden { display: none; }

.center { text-align: center; }

/* ================= Form ================= */
.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
}

input[type="number"],
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    max-width: 150px;
}

.custom-select {
    max-width: 80px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

/* ================= Buttons ================= */
.btn {
    background-color: #4CAF50;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #95D332;
}

.clear-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.clear-btn:hover {
    background: #ff5252;
}

/* ================= Centered Image ================= */
.centered-image {
    max-width: 80%;
    max-height: 80%;
    margin: 20px auto;
}

/* ================= Progress Bar ================= */
#progressBarContainer {
    display: none;
    margin: 20px 0;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.circular-progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    width: 100%;
    height: 100%;
}

.progress-ring-circle {
    stroke: #4CAF50;
    transition: stroke-dashoffset 0.3s, stroke 0.3s;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text .percentage {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.progress-text .status {
    font-size: 12px;
    color: #666;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
