/* General popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darkened overlay */
    display: flex;
    justify-content: center; /* Center the popup horizontally */
    align-items: center; /* Center the popup vertically */
    z-index: 1000;
}

/* Popup content styling (acts like a card component) */
.popup-content {
    background-color: #fff;
    width: 100%;
    max-width: 450px; /* Limit maximum width */
    padding: 0; /* Remove padding to control padding inside components */
    border-radius: 12px; /* Slightly larger rounded corners */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Stronger shadow for a floating effect */
    position: relative;
    overflow: hidden; /* Ensure content does not overflow the corners */
}

/* Popup header */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Proper padding around header */
    background-color: #f5f5f5; /* Light background for header */
    border-bottom: 1px solid #ddd; /* Subtle border for header */
    font-size: 18px;
    font-weight: bold;
    height: 55px;
}

    .popup-header h3 {
        font-weight: bolder;
    }

/* Close button */
.popup-close {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

    .popup-close:hover {
        color: #ff0000;
    }

/* Popup body (main content area) */
.popup-body {
    padding: 20px; /* Add padding for body content */
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    text-align: left;
    background-color: #fff;
}

/* Popup footer */
.popup-footer {
    display: flex;
    justify-content: flex-end;
    padding: 5px 20px; /* Add padding for footer */
    background-color: #f5f5f5; /* Matching footer with header */
    border-top: 1px solid #ddd; /* Subtle border for footer */
    height: 55px;
    align-items: center
}

    /* Buttons in footer */
    .popup-footer button {
        margin-left: 10px;
        padding: 0px 10px;
        font-size: 14px;
        cursor: pointer;
        border: none;
        border-radius: 4px;
        background-color: #007bff;
        color: white;
        transition: background-color 0.3s ease;
        height: 35px;
        width: auto;
    }

    .popup-footer .btn-cancel {
        background-color: #f36e6b; /* red button style */
    }
    .popup-footer .btn-save {
        background-color: #5cb85c; /* green button style */
    }



.btn-close {
    background-color: #dc3545 !important;
    color: white !important;
}



/* Ensure responsiveness */
@media (max-width: 600px) {
    .popup-content {
        max-width: 90%; /* Adjust width for smaller screens */
    }
}