/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 85, 99, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    z-index: 1000;
}

/* Modal container */
.modal-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    width: 100%;
    max-width: 600px;
    box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Modal icon */
.modal-icon {
    width: 60px;
    height: 60px;
    background-color: #fee2e2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.modal-icon i {
    color: #ef4444;
    font-size: 20px;
}

/* Modal actions */
.modal-actions, .delete-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Button styles */
.modal-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cancel-button, .cancel-button-2 {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
}

.cancel-button:hover, .cancel-button-2:hover {
    background-color: #f3f4f6;
}

.confirm-button {
    background-color: #ef4444;
    border: none;
    color: #ffffff;
}

.confirm-button:hover {
    background-color: #dc2626;
}

/* Close button */
.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    color: #374151;
}

.close-button i {
    font-size: 20px;
}

/* Focus styles for accessibility */
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Responsive styles */
@media (max-width: 991px) {
    .modal-container {
        max-width: 360px;
        margin: 0 16px;
    }
}

@media (max-width: 640px) {
    .modal-container {
        max-width: 320px;
        padding: 20px;
    }

    .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .modal-button {
        width: 100%;
    }
}

.modal-content {
    border: none;
    border-radius: 0;
}


.modal-row {
    display: flex;
    align-items: center;
    gap: 12px; /* Adjust spacing between icon and text */
}

.modal-icon img {
    width: 72px; 
    height: 72px;
}

.modal-text {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.modal-description {
    font-size: 14px;
    color: #666;
    margin: 2px 0 0;
}
.btn-won {
    background-color: #28a745; /* Bootstrap green */
    color: white;
    border: none;
}

    .btn-won:hover,
    .btn-won:focus,
    .btn-won:active {
        background-color: #28a745;
        color: white;
        border: none;
        box-shadow: none; /* optional: remove Bootstrap's default focus ring */
    }

.modal-close-button {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

    .modal-close-button:hover {
        color: #000;
    }

