/* 1. Basic Modal Styling - Hidden by Default */
#bkmrk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Initially hidden via JS, but we also set it to hide to avoid flashing */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* 2. Modal Content Container */
.bkmrk-modal-content {
    background: #333;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: white; /* Ensure text is readable */
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

/* 3. Modal Visible State (Managed by JavaScript) */
#bkmrk-modal.visible {
    visibility: visible;
    opacity: 1;
}

#bkmrk-modal.visible .bkmrk-modal-content {
    transform: scale(1);
}

/* 4. Button/Link Styling */
.bkmrk-modal-close, .switch-btn {
    cursor: pointer;
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.bkmrk-modal-close {
    background-color: #f44336;
    margin-bottom: 10px;
}

.switch-btn {
    background-color: #007bff;
}