.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(4, 10, 16, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modalContent {
    margin-top: 0;
    width: min(1080px, 100%);
    max-width: 100%;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    color: #e8edf3;
    background: linear-gradient(180deg, rgba(10, 19, 29, 0.98) 0%, rgba(8, 15, 23, 0.98) 100%);
    border: 1px solid rgba(173, 187, 201, 0.14);
    border-radius: 22px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px 16px;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(18, 31, 44, 0.98) 0%, rgba(11, 23, 34, 0.98) 100%);
    border-bottom: 1px solid rgba(213, 179, 109, 0.18);
}

.modalTitle {
    font-size: 1.25em;
    font-weight: 700;
    color: #f0f4f8;
}

.closeModal {
    font-size: 1.5em;
    scale: 1.2;
    cursor: pointer;
    color: #f0f4f8;
}

.modalBody {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modalBodyContent {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    color: #dbe5ed;
    background: linear-gradient(180deg, rgba(10, 18, 27, 0.92) 0%, rgba(8, 15, 23, 0.92) 100%);
    scrollbar-width: thin; /* Scrollbar width (auto, thin, none) */
    scrollbar-color: var(--scrollbar-1) var(--scrollbar-2); /* Scrollbar and background color */

}
.modalBodyContent > * {
    max-width: 100%;
}
.modalBodyContent::-webkit-scrollbar {
    width: 8px; /* Scrollbar width */
    height: 8px; /* Horizontal scrollbar height (if applicable) */
}

.modalBodyContent::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-1); /* Scrollbar color */
    border-radius: 4px; /* Rounded corners */
}

.modalBodyContent::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-1); /* Color on hover */
}

.modalBodyContent::-webkit-scrollbar-track {
    background-color: var(--scrollbar-1); /* Scrollbar track background */
    border-radius: 4px; /* Rounded corners */
}


.modalFooter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 16px 24px 22px;
    margin-top: 0;
    flex-shrink: 0;
    background: rgba(8, 15, 23, 0.98);
    border-top: 1px solid rgba(173, 187, 201, 0.12);
}

.modalButton {
    padding: 10px 20px;
    border: 1px solid rgba(173, 187, 201, 0.16);
    cursor: pointer;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.04);
    color: #e8edf3;
    text-align: center;
    white-space: nowrap;
    min-width: 100px;
}
.modalButton:hover {
    color: #f5f8fb;
    background-color: rgba(255, 255, 255, 0.08);
}

.modal .headerGrid {
    width: 100% !important;
}

.modal .grid{
    width: 100% !important;
}

.modalNoticeContainer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100%;
    height: 100dvh;
    padding: 24px;
    box-sizing: border-box;
    background-color: rgba(4, 12, 18, 0.76);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modalNotice {
    position: relative;
    width: min(960px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--body-bg);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    border: 1px solid var(--border);
}

.modalNoticeHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px 14px;
    background: linear-gradient(135deg, rgba(28, 44, 60, 0.98) 0%, rgba(15, 27, 38, 0.98) 100%);
    border-bottom: 1px solid rgba(213, 179, 109, 0.18);
}

.modalNoticeTitle {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text);
}

.modalNoticeClose {
    scale: 1.5;
    cursor: pointer;
    color: var(--text);
}

.modalNoticeMessage {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
    color: #dce5ec;
    background: linear-gradient(180deg, rgba(9, 17, 26, 0.96) 0%, rgba(7, 14, 22, 0.96) 100%);
}

.modalNoticeMessage > * {
    max-width: 100%;
    min-width: 0;
}

.modalNoticeFooter {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px 20px;
    background-color: var(--body-bg);
    border-top: 1px solid var(--border);
}

.modalNoticeButton {
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.04);
}
.btn-cancel {
    background-color: rgba(255, 255, 255, 0.02);
    color: #f08b8b;
    border: 1px solid rgba(240, 139, 139, 0.38);
}

.btn-cancel:hover {
    background-color: rgba(240, 139, 139, 0.14);
    box-shadow: 0 10px 20px rgba(240, 139, 139, 0.12);
    color: #ffd0d0;
}
.btn-save {
    background-color: rgba(255, 255, 255, 0.02);
    color: #86d8ab;
    border: 1px solid rgba(134, 216, 171, 0.34);
}
.btn-save:hover {
    background-color: rgba(134, 216, 171, 0.14);
    box-shadow: 0 10px 20px rgba(134, 216, 171, 0.12);
    color: #d7ffea;
}

@media (max-width: 720px) {
    .modal {
        padding: 12px;
    }

    .modalContent {
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }

    .modalHeader,
    .modalBodyContent,
    .modalFooter {
        padding-left: 16px;
        padding-right: 16px;
    }

    .modalNoticeContainer {
        padding: 12px;
    }

    .modalNotice {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 14px;
    }

    .modalNoticeHeader,
    .modalNoticeMessage,
    .modalNoticeFooter {
        padding-left: 14px;
        padding-right: 14px;
    }

    .modalNoticeFooter {
        justify-content: stretch;
    }

    .modalNoticeButton {
        flex: 1 1 100%;
        text-align: center;
    }
}