/* Modal Styles */
.ifc-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    /* Increased z-index */
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.ifc-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: inherit;
}

.ifc-close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}

.ifc-close-modal:hover,
.ifc-close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.ifc-modal h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

.ifc-modal p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Ensure modal is flex when displayed */
.ifc-modal[style*="display: block"] {
    display: flex !important;
}

/* Button Icon Styling */
.ifc-btn-primary .dashicons,
.ifc-btn-secondary .dashicons {
    vertical-align: middle;
    margin-right: 0.35rem;
    font-size: 18px;
    line-height: 1;
}

/* Ensure dashicons display inline with button text */
button .dashicons {
    display: inline-block;
}