:root {
    --primary-color: #008080;
    /*#416353*/
    --primary-hover-color: #03a1a1;
    /*#5f9179*/
    --secondary-color: #757575;
    --background-color: #F5F5F5;
    --text-color: #212121;
    --border-color: #E0E0E0;
    --hover-color: #616161;
    --accent-color: #BDBDBD;
    --new-button-color: #0056b3;
    --new-button-hover-color: #007bff;
    --select-color: #806d00;
    --select-hover-color: #806d00d7;
    --analyze-button-color: #3084bd;
    --analyze-button-hover-color: #4f94c2;
    --ai-analyze-button-color: #6c5ce7;
    --ai-analyze-button-hover-color: #80a1e4;
    --search-button-color: #008080;
    --search-button-hover-color: #03a1a1;
    --save-button-color: #0056b3;
    --save-button-hover-color: #007bff;
    --cancel-button-color: #495057;
    --cancel-button-hover-color: #6c757d;
    --important-button-color: #385879;
    --important-button-hover-color: #4c7cac;
    --generate-button-color: #5783db;
    --generate-button-hover-color: #80a1e4;
    --check-button-color: #c04d01;
    --check-button-hover-color: #ca8252;
    --delete-button-color: #424242;
    --delete-button-hover-color: #616161;
    --stop-button-color: #770000;
    --stop-button-hover-color: #bd0505;
    --expiry-info-color: #8B0000;
    --template-info-color: #0d6369;
    --title-color: #546270;
    --sub-text-color: #546270;
    --preview-color: #008080;
    --preview-hover-color: #03a1a1;
    --nav-menu-hover-color: #0d6369;
    --nav-menu-color: #717474f6;
    --footer-color: #717474f6;
    --refresh-button-color: #c04d01;
    --refresh-button-hover-color: #ca8252;
    --init-button-color: #9b9e01;
    --init-button-hover-color: #bcbe2a;
    --desktop-breakpoint: 1300px;
    --desktop-breakpoint-narrow: 768px;
    /* Z-index levels - each level is clearly higher than the previous */
    --z-level0: 1;
    /* Base overlays, simple dropdowns */
    --z-level1: 10;
    /* Sticky headers, floating buttons */
    --z-level2: 100;
    /* Dropdowns, select menus, autocomplete */
    --z-level3: 1000;
    /* Modal backdrops */
    --z-level4: 1100;
    /* Modal content */
    --z-level5: 1200;
    /* Priority/supervisor modals */
    --z-level6: 2000;
    /* Notifications */
    --z-level7: 3000;
    /* Tooltips (highest priority) */
    --z-level8: 4000;
    /* Tooltips (highest priority) */
    --z-level9: 10000;
    /* Tooltips (highest priority) */
}

/*
padding {
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
}
*/

test {
    color: #be0d00;
    align-self: right;
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-top: 20px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0px 20px 0px 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    word-break: keep-all;
}

.container {
    max-width: 97%;
    width: 96%;
    margin: auto;
    margin-top: 20px;
    background: white;
    padding: 10px 20px 20px 20px;
    /* Add left padding of 20px */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1 0 auto;
    /* This will make the container take up available space */
}

.mermaid {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

#progressContainer {
    margin-top: 20px;
}

.progress-wrapper {
    margin-bottom: 10px;
    opacity: 1;
    transition: opacity 1s ease;
}

.file-name {
    color: white;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
}

.progress-wrapper.fade-out {
    opacity: 0;
}

.upper-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.upper-progress-step {
    color: var(--text-color);
    padding: 5px 10px;
    margin: 5px;
    border-radius: 15px;
    background-color: var(--border-color);
    transition: background-color 0.3s ease;
}

.upper-progress-step.active {
    color: white;
    background-color: var(--primary-color);
    font-weight: bold;
}

.progress {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.file-progress {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0;
    transition: width 0.5s ease;
}

.upload-area {
    border: 2px dashed var(--secondary-color);
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.upload-area:hover {
    background-color: rgba(117, 117, 117, 0.1);
}


#previewContent table,
#filePreviewContent table,
#templatePreviewContent table,
#jobHistoryContent table,
#backupHistoryModal table {
    width: 100%;
    border-collapse: collapse;
}

#termDictionaryContent table,
#wordDictionaryContent table,
#domainDictionaryContent table,
#tableDocumentContent table,
#columnDocumentContent table {
    width: 100%;
    border-collapse: collapse;
}


#previewContent th,
#previewContent td,
#filePreviewContent th,
#filePreviewContent td,
#templatePreviewContent th,
#templatePreviewContent td,
#jobHistoryContent th,
#jobHistoryContent td,
#termDictionaryContent th,
#termDictionaryContent td,
#wordDictionaryContent th,
#wordDictionaryContent td,
#domainDictionaryContent th,
#domainDictionaryContent td,
#tableDocumentContent th,
#tableDocumentContent td,
#columnDocumentContent th,
#columnDocumentContent td,
#backupHistoryModal th,
#backupHistoryModal td {
    padding: 8px;
    text-align: left;
}

#previewContent th,
#filePreviewContent th,
#templatePreviewContent th,
#jobHistoryContent th,
#termDictionaryContent th,
#wordDictionaryContent th,
#domainDictionaryContent th,
#tableDocumentContent th,
#columnDocumentContent th,
#backupHistoryModal th {
    background-color: var(--secondary-color);
    color: white;
}

.button-container {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.preview-section {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.toggle-preview {
    font-size: 18px;
}

#previewContainer {
    margin-top: 10px;
    margin-bottom: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item span:first-child {
    flex-grow: 1;
    margin-right: 10px;
}

.file-item span:nth-child(2) {
    margin-right: 10px;
}

.drag-drop-text {
    font-style: italic;
    color: #888888;
}

.preview-header {
    color: white;
    padding: 10px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.preview-header .file-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

.preview-header .file-name {
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.preview-header .file-size {
    margin-right: auto;
    white-space: nowrap;
    opacity: 0.8;
}

.preview-header .file-details {
    white-space: nowrap;
    font-size: 0.9em;
    color: #e0e0e0;
}

.preview-header .delete-btn {
    margin-right: 0px;
}

.preview-header .delete-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.preview-header .toggle-preview {
    font-size: 18px;
    position: relative;
    cursor: pointer;
}

.preview-header .toggle-preview:hover::before,
.preview-header .toggle-preview:hover::after {
    content: attr(value);
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    background-color: var(--text-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: var(--z-level0);
    margin-right: 10px;
}

#previewSection {
    margin-top: 20px;
    min-width: 750px;
}

#previewHeader {
    margin-bottom: 10px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#totalFileCount,
.modalTotalFileCount,
#totalUserCount,
#totalNoticeCount,
#totalNoticeCountHome {
    margin-right: 10px;
    font-weight: bold;
    color: var(--sub-text-color);
    font-size: 14px;
}

.chartLabel {
    text-align: center;
    font-weight: bold;
    color: var(--sub-text-color);
    font-size: 20px;
}

.preview-header .total-rows {
    margin-right: 5px;
}

.preview-header {
    display: flex;
    align-items: center;
}


.preview-controls {
    display: flex;
    align-items: center;
    gap: 0px;
    position: relative;
    overflow: visible;
}


.preview-controls .btn {
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    flex-shrink: 0;
}

.preview-controls .ai-model-select-wrapper {
    height: 30px;
    line-height: 30px;
    padding: 0 5px;
    flex-shrink: 0;
}

.preview-controls .dict-level-select-wrapper,
.preview-controls .system-schema-select-wrapper,
.preview-controls .code-classifier-select-wrapper,
.preview-controls .target-select-wrapper,
.preview-controls .standard-select-wrapper {
    height: 30px;
    line-height: 30px;
    padding: 0 5px 0 0px;
    flex-shrink: 0;
}

.preview-controls .btn-toggle {
    margin-right: 10px;
    cursor: pointer;
    user-select: none;
}

.preview-title,
.processed-title {
    font-size: 11pt;
    color: var(--preview-color);
    font-weight: bolder;
    margin-top: 10px;
    margin-left: 8px;
}

.preview-content,
.processed-content {
    padding: 10px;
    overflow-x: auto;
}

.preview-content table,
.processed-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.preview-content th,
.preview-content td,
.processed-content th,
.processed-content td {
    padding: 8px;
    text-align: left;
    max-width: 100px;
    overflow: hidden;
    white-space: pre-line;
}

@keyframes blink2s {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes show4hide1 {

    0%,
    80% {
        opacity: 1;
    }

    81%,
    100% {
        opacity: 0;
    }
}

@keyframes show3hide1 {

    0%,
    75% {
        opacity: 1;
    }

    76%,
    100% {
        opacity: 0;
    }
}

.blinking-text {
    animation: blink2s 2s step-end infinite;
    font-weight: bold;
    margin-right: 10px;
    color: rgb(255, 255, 255);
}

.margin-top-10 {
    margin-top: 10px;
}

.expiry-info {
    font-size: 0.9em;
    color: var(--expiry-info-color);
    font-weight: bold;
    margin-top: 10px;
}

.templateInfo,
#previewFileName {
    font-size: 13pt;
    color: var(--template-info-color);
    font-weight: bold;
    margin-top: 10px;
}

#previewTitle {
    font-size: 13pt;
    color: var(--template-info-color);
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

@keyframes blink-button {

    0%,
    49% {
        background-color: var(--important-button-color);
    }

    50%,
    100% {
        background-color: var(--important-button-hover-color);
    }
}

.preview-section:nth-child(odd) .preview-header,
.preview-section:nth-child(even) .preview-header {
    background-color: #3a4438bb;
    /*#546351bb;*/
}

.ai-model-select-wrapper,
.sheet-selector-container,
.merge-option-container,
.dict-level-select-wrapper,
.code-classifier-select-wrapper,
.target-select-wrapper,
.standard-select-wrapper,
.system-schema-select-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.ai-model-select-wrapper::after,
.sheet-selector-container::after,
.merge-option-container::after,
.dict-level-select-wrapper::after,
.code-classifier-select-wrapper::after,
.target-select-wrapper::after,
.standard-select-wrapper::after,
.system-schema-select-wrapper::after {
    content: '\25BC';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    padding-right: 5px;
    color: white;
}

.ai-model-select,
.sheet-selector,
.merge-option,
.dict-level-select,
.code-classifier-select,
.target-select,
.standard-select,
.system-schema-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #424242;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: 30px;
    line-height: 1;
    padding: 0 15px;
    font-size: 14px;
    border: 1px solid rgba(226, 209, 209, 0.9);
    width: auto;
    /* Make width adapt to content */
    padding-right: 45px;
    /* 30px for arrow + 15px buffer */

}

.ai-model-select:hover,
.sheet-selector:hover,
.merge-option:hover,
.dict-level-select:hover,
.code-classifier-select:hover,
.target-select:hover,
.standard-select:hover {
    background-color: #616161;
}

.ai-model-select:focus,
.sheet-selector:focus,
.merge-option:focus,
.dict-level-select:focus,
.code-classifier-select:focus,
.target-select:focus,
.standard-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.ai-model-select option[disabled],
.sheet-selector option[disabled],
.merge-option option[disabled],
.dict-level-select option[disabled],
.code-classifier-select option[disabled],
.target-select option[disabled],
.standard-select option[disabled] {
    color: #cfcfcf;
}

#fileHistoryContainer button,
#userListContainer button,
#noticeListContainer button,
#noticeListContainerHome button,
#userContent button {
    margin-right: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: var(--z-level5);
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1px);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 10px 15px 15px 15px;
    border: 1px solid #888;
    width: 90%;
    /* Increased from 80% to 90% */
    height: auto;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.modal-header {
    flex-shrink: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding-bottom: 10px;
}

.modal-footer {
    flex-shrink: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-top: 10px;
    text-align: right;
}

.modal-footer button {
    margin-right: 10px;
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    margin: 10px 0;
    max-height: calc(80vh - 120px);
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
}

.modal-body th,
.modal-body td {
    padding: 8px;
    text-align: left;
}

.modal-body th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
    z-index: var(--z-level1);
}

.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.modal-body-short {
    flex-grow: 1;
    overflow-y: auto;
    margin: 10px 0;
    max-height: calc(50vh - 120px);
}

.modal-body-short table {
    width: 100%;
    border-collapse: collapse;
}

.modal-body-short th,
.modal-body-short td {
    padding: 8px;
    text-align: left;
}

.modal-body-short th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
    z-index: var(--z-level1);
}

.modal-body-short::-webkit-scrollbar {
    width: 10px;
}

.modal-body-short::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body-short::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-body-short::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.rounded-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f2f2f2;
    padding-bottom: 0;
    width: 100%;
    table-layout: fixed;
}

.rounded-table th:first-child {
    border-top-left-radius: 6px;
}

.rounded-table th:last-child {
    border-top-right-radius: 6px;
}

.rounded-table tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}

.rounded-table tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}

.rounded-table tr:last-child td {
    border-bottom: none;
}

.rounded-table tbody tr:nth-child(odd):hover,
.rounded-table tbody tr:nth-child(even):hover {
    background-color: rgba(185, 185, 181, 0.8) !important;
}

.rounded-table th,
.rounded-table td {
    padding: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    vertical-align: top;
}

.rounded-table tbody tr:nth-child(odd) {
    background-color: #dedfde;
}

.rounded-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.rounded-try-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f2f2f2;
    padding-bottom: 0;
    width: 100%;
    table-layout: fixed;
    /* Changed from fixed to auto for content-based widths */
}

.rounded-try-table th:first-child {
    border-top-left-radius: 6px;
}

.rounded-try-table th:last-child {
    border-top-right-radius: 6px;
}

.rounded-try-table tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}

.rounded-try-table tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}

.rounded-try-table tr:last-child td {
    border-bottom: none;
}

.rounded-try-table tbody tr:nth-child(odd):hover,
.rounded-try-table tbody tr:nth-child(even):hover {
    background-color: rgba(185, 185, 181, 0.8) !important;
}

.rounded-try-table th,
.rounded-try-table td {
    padding: 8px;
    white-space: nowrap;
    /* Prevents text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    min-width: min-content;
    /* Allows cells to shrink to content */
    max-width: max-content;
    /* Prevents excessive expansion */
}

.rounded-try-table tr:nth-child(even) {
    background-color: #dedfde;
}

.rounded-try-table th.expand,
.rounded-try-table td.expand {
    white-space: pre-line;
    width: auto;
    min-width: 150px;
    line-height: 1.4;
    /* Add some spacing between lines */
}

#fileHistoryContainer table,
#userListContainer table,
#noticeListContainer table,
#noticeListContainerHome table,
#userContent table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

#fileHistoryContainer th,
#fileHistoryContainer td,
#userListContainer th,
#userListContainer td,
#noticeListContainer th,
#noticeListContainer td,
#noticeListContainerHome th,
#noticeListContainerHome td,
#userContent th,
#userContent td {
    padding: 12px;
    text-align: left;
}

#fileHistoryContainer th,
#previewContent th,
.preview-content th,
.processed-content th,
#templatePreviewContent th,
#jobHistoryContent th,
#userListContainer th,
#noticeListContainer th,
#noticeListContainerHome th,
#userContent th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 6px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.switch input:checked+.slider {
    background-color: #2196F3;
}

.switch input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-level8);
    width: 400px;
    /* Set a fixed width for the container */
    height: 0;
    /* Set height to 0 to avoid taking up space */
    overflow: visible;
    /* Allow notifications to be visible outside the container */
}

.autopilot-notification {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.fadeout-notification {
    white-space: pre-line;
    text-align: center;
    padding: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.autopilot-notification.show,
.fadeout-notification.show {
    opacity: 1;
    animation: fadeOut 3s forwards;
    animation-delay: 1s;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
        visibility: hidden;
    }

    10%,
    90% {
        opacity: 1;
        visibility: visible;
    }
}

.autopilot-explanation {
    position: absolute;
    top: 150%;
    /* Change from top: 100% to bottom: 100% */
    left: 50%;
    transform: translateX(-50%);
    background-color: #646e75;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 300px;
    display: none;
    z-index: var(--z-level3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    /* Add some space between the box and the toggle */
}

.autopilot-explanation p {
    margin: 0;
    padding: 5px 0;
    font-size: 12px;
    color: #ffffff;
    /* Change this to ensure paragraph text is white */
}

.autopilot-toggle-container,
.ai-model-select-wrapper,
.dict-level-select-wrapper,
.target-select-wrapper,
.code-classifier-select-wrapper,
.generate-comments-btn,
.standard-select-wrapper,
.system-schema-select-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.autopilot-toggle-container {
    color: rgb(44, 151, 17);
    margin-right: 10px;
}

.autopilot-toggle-container::after,
.generate-comments-btn::after,
.ai-model-select-wrapper::before,
.dict-level-select-wrapper::before,
.code-classifier-select-wrapper::before,
.target-select-wrapper::before,
.standard-select-wrapper::before,
.system-schema-select-wrapper::before,
.value-message::after {
    content: attr(value);
    white-space: pre-line;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 10px 10px 10px 10px;
    background-color: rgba(0, 0, 0);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: var(--z-level6);
    text-align: left;
    max-width: 400px;
    max-height: 200px;
    height: max-content;
    width: max-content;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.autopilot-toggle-container:hover::after,
.generate-comments-btn:hover::after,
.ai-model-select-wrapper:hover::before,
.dict-level-select-wrapper:hover::before,
.code-classifier-select-wrapper:hover::before,
.target-select-wrapper:hover::before,
.standard-select-wrapper:hover::before,
.system-schema-select-wrapper:hover::before,
.value-message:hover::after {
    display: block;
    opacity: 1;
    visibility: visible;
}

.autopilot-toggle-container:hover .autopilot-explanation {
    display: block;
}

.autopilot-explanation h4,
.autopilot-explanation a,
.autopilot-explanation span {
    color: #ffffff;
}

.autopilot-explanation::before {
    content: '';
    position: absolute;
    top: -10px;
    /* Position the arrow at the top of the explanation box */
    left: 50%;
    margin-left: -6px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #94a2ac transparent;
    /* Arrow color */
}

.autopilot-notification.on,
.fadeout-notification.on {
    background-color: rgba(33, 150, 243, 0.9);
    /* Blue background for "on" state */
}

.autopilot-notification.off,
.fadeout-notification.off {
    background-color: rgba(74, 74, 74, 0.9);
    /* Dark grey background for "off" state */
}

.fade-out {
    animation: fadeOut 3s forwards;
}

.fade-in-out {
    animation: fadeInOut 3s forwards;
}

.highlight {
    animation: highlight-fade 2s ease-in-out;
}

@keyframes highlight-fade {
    0% {
        background-color: #a9b6c0;
    }

    100% {
        background-color: transparent;
    }
}

.job-history-btn-container,
.refresh-btn-container {
    position: fixed;
    align-items: left;
    z-index: var(--z-level4);
}

.help-btn-container {
    position: fixed;
    right: 2px;
}

.history-progress {
    height: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
}

.history-progress-bar {
    float: left;
    width: 0%;
    height: 100%;
    font-size: 12px;
    color: #ccdde9;
    line-height: 20px;
    text-align: center;
    background-color: #337ab7;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
    transition: width .6s ease;
}

.page-container {
    display: flex;
    margin-top: 20px;
}

.main-content {
    flex: 1;
    padding-left: 20px;
    /* Add some padding to separate from the vertical line */
}

section {
    margin-bottom: 30px;
}

form h3 {
    color: var(--title-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group-flex {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    vertical-align: middle;
}

.form-group label,
.form-group-flex label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group-flex input[type="text"],
.form-group textarea.form-control,
.form-group input[type="password"],
.form-group-flex input[type="password"],
.form-group input[type="number"],
.form-group-flex input[type="number"] {
    width: 99%;
    padding: 5px 0px 5px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    /* Use the same font as the parent element */
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group-flex input[type="text"]:focus,
.form-group textarea.form-control:focus,
.form-group input[type="password"]:focus,
.form-group-flex input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group-flex input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group select,
.form-group-flex select {
    width: 99.7%;
    padding: 5px 0px 5px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group-flex select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* For required fields */
.required:after {
    content: " *";
    color: #e32;
    font-weight: bold;
}

.modal-password {
    display: none;
    position: fixed;
    z-index: var(--z-level5);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content-password {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 15px;
    border-radius: 15px;
    width: 350px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

.modal-confirm {
    display: none;
    position: fixed;
    z-index: var(--z-level3);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content-confirm {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 15px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

.modal-ready {
    display: none;
    position: fixed;
    z-index: var(--z-level3);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content-ready {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 0px 15px 15px 15px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

.modal-header-ready {
    flex-shrink: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding-bottom: 15px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content-password h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

.modal-content-password p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.modal-content-password input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ai-label {
    display: flex;
    align-items: center;
    vertical-align: middle;
    gap: 10px;
    /* Space between icon and text */
    height: 40px;
    /* Adjust this value as needed */
}

.ai-logo {
    width: 30px;
    /* Adjust as needed */
    height: 30px;
    /* Adjust as needed */
    vertical-align: middle;
}

.ai-label span {
    height: 30px;
    font-size: 16px;
    /* Adjust text size as needed */
    font-weight: bold;
    /* Optional: makes text bold */
    vertical-align: middle;
}

.setting-group {
    background-color: #fefefe;
    box-shadow: 0 4px 8px #c9bfbf;
    border-radius: 8px;
    padding: 20px 10px 20px 10px;
    border: 0px solid #ddd;
}

.primary-ai-selector label,
td label,
.modalSupervisor-content label {
    cursor: pointer;
}

.ai-label-container {
    display: flex;
    align-items: flex-start;
    /* Changed from center to flex-start */
    margin-bottom: 0px;
    min-height: 40px;
    /* Adjust this value as needed */
}

.primary-ai-selector {
    display: flex;
    flex-direction: row;
    /* Stack radio button and label vertically */
}

.primary-ai-selector input[type="radio"] {
    margin-right: 5px;
}

.primary-label {
    font-size: 14px;
    /* Make the text slightly smaller */
    color: #666;
    /* Adjust color as needed */
    padding-left: 20px;
    padding-top: 4px;
}

.ai-label {
    display: flex;
    align-items: center;
    width: 150px;
}

.ai-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.ai-title {
    font-weight: bold;
    margin-right: 10px;
    color: #212121;
}

.api-title {
    color: #770000;
    font-style: italic;
    font-weight: bold;
}

#ip_inputs {
    display: flex;
    gap: 10px;
}

.ip-input {
    width: 100%;
}

.setting-span {
    display: block;
    text-align: right;
    margin-top: 20px;
}


.is-invalid {
    border-color: #dc3545;
}

/*
.is-valid {
    border-color: #28a745;
}
*/

.invalid-feedback {
    color: #dc3545;
    display: none;
    margin-top: .25rem;
    font-size: 80%;
}

.warning-info {
    margin-bottom: 5px;
    margin-left: 10px;
    color: #856404;
    font-weight: bold;
    align-items: right;
    font-style: italic;
    font-size: 12px;
}

.retention-period-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.retention-period-options label {
    display: flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
}

.retention-period-options input[type="radio"] {
    margin-right: 5px;
}

#userContent h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #0d6369;
    font-weight: bold;
    align-items: center;
}

#userFileName,
#userFileNameForJobHistory,
#noticeFileName {
    color: #D35400;
    font-weight: bold;
    font-size: 14px;
    /* Adjust as needed */
}

#noticeCreateDate {
    position: absolute;
    color: #6e7262;
    font-size: 12px;
    /* Adjust as needed */
}


.modal-scroll {
    display: none;
    position: fixed;
    z-index: var(--z-level4);
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content-scroll {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 5% auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-body-scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px 15px 15px 15px;
    box-sizing: border-box;
}

.modal-header-scroll {
    flex-shrink: 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#userEditForm,
#noticeEditForm {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    min-height: 200px;
    /* Adjust this value as needed */
}

#userEditForm::-webkit-scrollbar,
#noticeEditForm::-webkit-scrollbar {
    width: 8px;
}

#userEditForm::-webkit-scrollbar-track,
#noticeEditForm::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#userEditForm::-webkit-scrollbar-thumb,
#noticeEditForm::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#userEditForm::-webkit-scrollbar-thumb:hover,
#noticeEditForm::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@keyframes fadeInBlur {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.enroll-scroll {
    position: fixed;
    z-index: var(--z-level4);
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    backdrop-filter: blur(0px);
    overflow-y: auto;
    /* Add scroll to main container */
}

.enroll-scroll.visible {
    animation: fadeInBlur 0.3s forwards;
}

.enroll-content-scroll {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.enroll-body-scroll,
.noticeHome-body-scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.enroll-header-scroll,
.noticeHome-header-scroll {
    flex-shrink: 0;
    margin-bottom: 10px;
    display: flex;
    font-weight: bolder;
    color: #333;
    font-size: 22px;
}

.enroll-header-label,
.noticeHome-header-label {
    display: block;
    width: 100%;
    text-align: center;
}

#userEnrollForm {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    margin: -10px;
    min-height: 200px;
}

#userEnrollForm::-webkit-scrollbar {
    width: 8px;
}

#userEnrollForm::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#userEnrollForm::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#userEnrollForm::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.full-width-input {
    width: 99%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
}

.input-container {
    display: flex;
    align-items: center;
}

.input-container input {
    flex-grow: 1;
}

.input-container span {
    margin-left: 5px;
    white-space: nowrap;
}

.modalSupervisor {
    display: none;
    position: fixed;
    z-index: var(--z-level5);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    backdrop-filter: blur(0px);
}

.modalSupervisor-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 5px solid #554c4c;
    width: 500px;
    /* Adjust as needed */
    max-width: 80%;
    /* Ensures it's not too wide on small screens */
    position: relative;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modalSupervisor-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.modalSupervisor-content p {
    color: #666;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 16px;
}

.modalSupervisor-content div {
    margin-bottom: 10px;
    color: #385f75;
    font-weight: bold;
    font-size: 14px;
    /* Adjust as needed */
}

.modalSupervisor-content button {
    margin-top: 20px;
    margin-right: 10px;
}

#confirmMessage,
#readyMessage {
    margin-bottom: 10px;
    color: #385f75;
    font-weight: bold;
    font-size: 16px;
    /* Adjust as needed */
}

textarea.full-width-input {
    resize: vertical;
    /* Allows vertical resizing */
    min-height: 60px;
    /* Minimum height, adjust as needed */
    border-radius: 4px;
    width: 99%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 5px;
    transition: border-color 0.3s ease;
    font-size: 14px;
    font-family: inherit;
    /* Use the same font as the parent element */
}

.priority-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.priority-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.priority-options input[type="radio"] {
    margin-right: 7px;
}

/* Optional: Style for better visibility of selected option */
.priority-options input[type="radio"]:checked+span {
    font-weight: bold;
    color: #008080;
    /* Use your preferred color */
}

#viewNoticeHomeLinks a {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

#viewNoticeHomeLinks a:hover {
    background-color: #45a049;
}

#viewNoticeHomeContent {
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 5px 10px 20px 10px;
    /* Add left padding of 20px */
}

.text-danger {
    color: #80500c;
}

.text-warning {
    color: #a3712a;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #80500c;
    border-color: #a5742f;
    color: #ffffff;
}

.alert-warning {
    background-color: #a3712a;
    border-color: #c79651;
    color: #ffffff;
}

.file-name-cell {
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ready-container {
    margin: 20px 0;
    text-align: left;
}

.highlight-heading {
    margin-bottom: 15px;
    line-height: 1.4;
}

.highlight-text {
    font-size: 22px;
    font-weight: bold;
}

.highlight-red {
    color: #993333;
}

.highlight-blue {
    color: #336699;
}

.service-description {
    display: block;
    line-height: 1.8;
    margin: 15px 0;
    color: #444444;
    font-size: 15px;
    font-weight: bold;
    /* Added bold */
    letter-spacing: 0.3px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #dee2e6;
    border-radius: 4px;
}

.benefit-list {
    list-style: none;
    padding-left: 20px;
    margin: 15px 0;
}

.benefit-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #274563;
    /* Strong blue color */
    font-size: 18px;
    font-weight: bolder;
}

.benefit-list li:before {
    content: "▪";
    position: absolute;
    left: -15px;
    color: #274563;
    /* Darker bullet color */
}

.short-line {
    width: 100px;
    /* Made line longer */
    margin: 15px auto;
    /* Center alignment with auto margins */
    border: none;
    border-top: 2px solid #ddd;
}

.arrow-icon {
    width: 24px;
    /* Adjust as needed */
    height: 24px;
    /* Adjust as needed */
    vertical-align: middle;
    background-color: transparent;
}

.scroll-content {
    flex: 1;
    /* Take remaining space */
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
    min-height: 0;
    /* Important for Firefox */

    /* Scrollbar styling */
    &::-webkit-scrollbar {
        width: 8px;
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

.template-grid {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    overflow: hidden;
}

.grid-header {
    background-color: #f8f9fa;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.grid-container {
    padding: 10px;
    overflow-x: auto;
}

.preview-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.preview-title {
    color: #856404;
    font-weight: bold;
}

.dictionary-info {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    color: #495057;
}

.dictionary-info p {
    margin: 8px 0;
    line-height: 1.4;
}

.dictionary-info p:first-child {
    font-weight: 600;
    color: #212529;
    margin-top: 0;
}

.dictionary-info p:last-child {
    margin-bottom: 0;
    font-size: 13px;
    color: #6c757d;
}

/* For loading state */
.dictionary-info.loading {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* For error state */
.dictionary-info.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* For success state */
.dictionary-info.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.checkbox-container {
    align-items: center;
    margin: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}


.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-text {
    font-weight: 500;
}

.checkbox-input {
    display: none;
}

.checkbox-input:checked+.checkbox-custom {
    background-color: #007bff;
    border-color: #007bff;
}

.checkbox-input:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label:hover .checkbox-custom {
    border-color: #007bff;
}

.setting-group .checkbox-container {
    align-items: center;
    margin: 8px 0;
    position: relative;
    z-index: var(--z-level0);
}

.setting-group .checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
    background-color: white !important;
    flex-shrink: 0;
    display: block !important;
}

.setting-group .checkbox-input:checked+.checkbox-custom {
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.setting-group .checkbox-input:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: block !important;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
}

.loading-dots span {
    height: 8px;
    width: 8px;
    background-color: #3498db;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.3s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.15s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes pulse {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: var(--text-color);
    position: relative;
    margin: 20px auto;
    max-width: 300px;
}

.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e3e3e3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
    flex-shrink: 0;
}

.note-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-left: 1em;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: inline-block;
}

/*
padding {
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
}
*/