/* Styling for the multi-step modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 80%;
    width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    padding: 70px 50px 50px 50px; /* Updated to 50px padding */
}

.modal-close-btn {
    position: absolute;
display: flex;
    top: 20px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Segmented Progress Bar */
.progress-bar-container {
position: absolute;
display: flex;
top: 10px;
    left: 10px;
Right: 10px;
    gap: 0.5rem;
    width: 95%;
    margin-bottom: 2.5rem;
}

.progress-bar-segment {
    flex: 1;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    transition: background-color 0.3s ease-in-out;
}

.progress-bar-segment.active {
    background-color: #25c2e3;
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
}

.modal-input {
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    color: #fff;
    margin-bottom: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-button {
    background-color: #1b8ba0; /* Base "empty" color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure text is above the animation layer */
}

.modal-button:hover {
    background-color: #166e80;
}

/* Draining animation for the timed close button */
.draining-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #25c2e3; /* Bright "full" color */
    z-index: -1;
    transform: translateX(0);
}

.draining-button.animating::after {
    animation: drain 5s linear forwards;
}

@keyframes drain {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
