.snappymail-iframe-container {
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 500px;
    overflow: hidden;
}

.snappymail-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Modal styling */
.snappymail-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    outline: 0;
}

.snappymail-modal.show {
    display: block;
}

.snappymail-modal-dialog {
    position: relative;
    width: 70%;
    height: 80%;
    margin: 50px auto;
    pointer-events: none;
}

.snappymail-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.snappymail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.snappymail-modal-title {
    margin: 0;
    line-height: 1.5;
}

.snappymail-modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 0;
    overflow: hidden;
}

.snappymail-close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.snappymail-close:hover {
    opacity: 0.75;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .snappymail-modal-dialog {
        width: 95%;
        height: 90%;
        margin: 20px auto;
    }
}

/* Navbar icon */
#snappymail-icon-container .nav-link {
    position: relative;
}

#snappymail-notification-badge {
    position: absolute;
    top: 0px;
    right: -5px;
    font-size: 10px;
    padding: 2px 5px;
    min-width: 18px;
    height: 18px;
    line-height: 14px;
    text-align: center;
}