.modal, .ban { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); } .modal-content, .ban-content { background-color: #fefefe; margin: 15% auto; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); width: 80%; max-width: 500px; position: relative; } .modal-close, .ban-close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; } .modal-close:hover, .modal-close:focus, .ban-close:hover, .ban-close:focus { color: black; text-decoration: none; cursor: pointer; } .waittime-tooltip, .ban-tooltip { cursor: pointer; color: #FFF; text-decoration: underline; } .modal h2, .ban h2 { margin-top: 0; color: #333; } .modal-body, .ban-body { margin-top: 15px; } .modal-body p, .ban-body p{ margin-bottom: 15px; line-height: 1.5rem; } .no-wrap { white-space: nowrap; } /* Modal Dark Mode */ body.dark-theme .modal-content, body.dark-theme .ban-content { background-color: var(--container-color); /* Nền phù hợp dark mode */ color: var(--text-color); /* Màu chữ phù hợp dark mode */ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8); /* Tăng độ tối của bóng */ } body.dark-theme .modal-close, body.dark-theme .ban-close { color: var(--text-color-light); /* Màu nút đóng modal */ } body.dark-theme .modal-close:hover, body.dark-theme .modal-close:focus, body.dark-theme .ban-close:hover, body.dark-theme .ban-close:focus { color: var(--first-color-light); /* Hiệu ứng hover nút đóng modal */ } body.dark-theme .modal h2, body.dark-theme .ban h2 { color: var(--title-color); /* Màu tiêu đề modal */ } body.dark-theme .modal-body, body.dark-theme .ban-body { color: var(--text-color-light); /* Màu nội dung modal */ } body.dark-theme .waittime-tooltip, body.dark-theme .ban-tooltip { color: #FFF; /* Tooltip trong dark mode */ } /* Modal backdrop dark mode */ body.dark-theme .modal, body.dark-theme .ban { background-color: rgba(0, 0, 0, 0.7); /* Nền tối hơn cho modal backdrop */ backdrop-filter: blur(10px); /* Làm mờ khi modal mở */ }