/* ============================
   Restart Modal (Custom)
============================ */

.restart-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #d9534f;
    /* semi-red */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.restart-btn:hover {
    background-color: #c9302c;
    transform: scale(1.03);
}

.restart-btn i {
    font-size: 16px;
}


#restart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 21, 25, 0.7);
    /* darker tint for your theme */
    display: none;
    /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
    transition: opacity 0.25s ease-in-out;
}

#restart-overlay.show {
    display: flex;
    animation: fadeInRestart 0.25s ease-in-out forwards;
}

@keyframes fadeInRestart {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Main box */
.restart-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 30px 25px;
    width: 380px;
    max-width: 90vw;
    text-align: center;
    animation: scaleUpRestart 0.25s ease-in-out forwards;
}

@keyframes scaleUpRestart {
    from {
        transform: scale(0.95);
        opacity: 0.5;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header */
.restart-modal h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #d9534f;
    font-size: 22px;
    font-weight: 600;
}

/* Description text */
.restart-modal p {
    font-size: 15px;
    color: var(--dark);
    margin: 0 0 25px 0;
    line-height: 1.5;
}

/* Buttons row */
.restart-modal .restart-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Yes button */
.restart-modal button.confirm {
    background: linear-gradient(90deg, #d9534f 0%, #ff746c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
}

.restart-modal button.confirm:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Cancel button */
.restart-modal button.cancel {
    background: var(--grey);
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
}

.restart-modal button.cancel:hover {
    transform: scale(1.05);
    background: #bfbfbf;
}

/* Slight fade-in animation */
@keyframes fadeOutRestart {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}