﻿/* shared-modal.css */
.shared-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(4px); /* Blur the entire screen */
    background: rgba(0, 0, 0, 0.4);
}

/* We can remove the separate overlay since shared-modal now handles that */
.modal-overlay {
    display: none; /* No longer needed */
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    border-radius: 8px;
    min-width: 300px;
    max-height: calc(100vh - 40px);
    padding: 20px;
    overflow-y: auto;
    /* Optional: add a subtle animation */
    animation: modalFadeIn 0.2s ease-out;
    background: #fff;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: fit-content;
    padding: 0 10px;
}

/* Add animation keyframes */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: thin solid #ccc;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 500;
        color: #333;
        
    }

.modal-close {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}

.modal-body {
    text-align: center;
    margin-bottom: 24px;
    color: #555;
}

.modal-footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
    padding: 15px;
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: thin solid #ddd;
    cursor: pointer;
    font-size: 14px;

}

    .modal-btn.secondary {
        background: #f5f5f5;
        color: #eee;
    }

    .modal-btn.danger {
        background: #dc3545;
        color: white;
        border-color: #dc3545;
    }

    .modal-btn:hover {
        opacity: 0.9;
        color: #eee;
    }

@media (max-width: 768px) {

    .modal-container {
        width: 100%;
        
    }

}

