html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5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bGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }



.loading-progress-text {
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.loading-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #6f42c1; /* Màu nền tím nhạt */
    color: #fff; /* Màu tím chữ */
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Logo */
.logo img {
    width: 150px; /* Kích thước logo */
    margin-bottom: 20px;
}

code {
    color: #c02d76;
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;

}

.int04DivLoad {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex; /* Thêm thuộc tính này để kích hoạt Flexbox */
    flex-direction: column;
    justify-content: center; /* Canh giữa theo chiều dọc */
    align-items: center; /* Canh giữa theo chiều ngang */
    background-color: rgba(0, 0, 0, 0.5); /* Tùy chọn: thêm màu nền mờ */
}

.spinner {

    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6f42c1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.5s linear infinite;
}

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

.footer-text {
    position: absolute;
    bottom: 20px; /* Khoảng cách từ đáy màn hình */
    text-align: center;
}

/* "From" text styles */
.from-text {
    font-size: 18px;
    color: #ffffff; /* Trắng sáng */
    font-weight: bold;
    text-transform: uppercase;
}

/* "Int04" text styles */
.int-text {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(250deg, #bee4ff, #0096ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    margin-top: 5px;
}


.loading-overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(20, 20, 20, 0.6), rgba(50, 50, 50, 0.6), rgba(0, 0, 0, 0.6)); /* Dark black gradient with transparency */
    background-size: 400% 400%; /* For smoother gradient transition */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(20px); /* Stronger blur effect */
    opacity: 0.9; /* Start with opacity 0 for fade-in effect */
    animation:  gradientShift 10s ease infinite; /* Fade-in and gradient transition */
}

/* Content inside overlay */
.loading-content {
    text-align: center;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* Simple spinner with glowing effect */


/* Text fade-in effect */
.loading-text {
    font-size: 18px;
    font-weight: 500;
    font-family: 'Segoe UI', sans-serif;
    opacity: 1; /* Start with opacity 0 */
}

/* Fade-in background effect */


/* Gradient animation for background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Text fade-in animation */
@keyframes textFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.calendar {
    width: 3.125rem;
    line-height: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
    border-radius: 0.375rem;
}

.calendar .calendar-month {
    background-color: #e63757;
    color: #fff;
    border-radius: 0.375rem 0.375rem 0 0;
    padding: 0.25rem;
    font-weight: 600;
}

.calendar .calendar-day {
    padding: 0.25rem;
    border: 0.125rem solid rgba(230, 55, 87, 0.3);
    border-top: 0;
    border-radius: 0 0 0.375rem 0.375rem;
    color: #9da9bb;
    font-weight: 700;
    font-size: initial;
}

.auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    animation: fadeIn 2s ease-in-out;
    margin-top: 30px;
}

/* Scanner */
.scanner-container {
    position: relative;
    width: 320px;
    height: 320px;
    background: linear-gradient(145deg, #1e313c, #16242c);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.3), 0 0 20px rgba(0, 255, 255, 0.4);
}

.holo-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    overflow: hidden;
    animation: pulseGlow 3s infinite;
}

.scan-area {
    position: relative;
    width: 100%;
    height: 100%;
}

.circle-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 6px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 6s linear infinite;
}

.inner-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    filter: blur(30px);
    transform: translate(-50%, -50%);
}

.scan-beam {
    position: absolute;
    width: 300px;
    height: 3px;
    background: rgba(0, 255, 255, 0.8);
    animation: beamScan 3s infinite ease-in-out;
}

/* Text Section */
.text-container h1 {
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-container p {
    font-size: 1.2em;
    color: rgba(0, 0, 0, 0.8);
    margin-top: 10px;
    margin-bottom: 20px;
}

.action-button {
    padding: 12px 30px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    color: #0f2027;
    background: linear-gradient(145deg, #00ffff, #00b3b3);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 100px rgba(0, 255, 255, 0.8);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes beamScan {
    0% {
        transform: translateY(30px);
    }
    50% {
        transform: translateY(270px);
    }
    100% {
        transform: translateY(30px);
    }
}

@keyframes ScaleIn {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Camera Icon Wrapper */
.camera-icon-wrapper {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Camera Icon */
.camera-icon-wrapper {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Camera Icon */
.camera-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 255, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    color: #0a1523;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);

}

.IconCameraText {
    animation: ScaleIn 1s infinite ease-in-out;
}

.camera-icon:hover {
    transform: scale(1.2);
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

/* Menu - mặc định hướng xuống */
.camera-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px); /* Hiệu ứng trượt lên khi ẩn */
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

/* Hiện menu khi hover hoặc focus */
.camera-icon-wrapper:hover .camera-menu,
.camera-icon-wrapper:focus-within .camera-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Hiệu ứng trượt xuống khi hiển thị */
}

/* Hiển thị menu hướng lên khi cần */
.camera-menu.up {
    top: auto;
    bottom: 60px;  /* Hiển thị menu lên trên */
    transform: translateY(10px); /* Hiệu ứng trượt lên khi hiển thị */
}

/* Đảm bảo menu không tràn ra ngoài màn hình */
.camera-menu {
    max-height: 300px;
    overflow-y: auto; /* Thêm thanh cuộn nếu menu quá dài */
}


.menu-item {
    font-size: 0.9em;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #00ffff;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.menu-item:hover {
    background: rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
}

.table-container {
    display: flex;
    border: 1px solid #ddd;
}

.fixed-column {
    flex: 0 0 auto; /* Cột có kích thước cố định */
    background-color: #fff; /* Giữ nền cố định */
    border-right: 1px solid #ddd; /* Ngăn cách cột */
}

.scrollable-table {
    flex: 1 0 auto; /* Cột cuộn ngang */
    overflow-x: auto; /* Thanh cuộn ngang */
}





.scrollable-table th,
.scrollable-table td {
    min-width: 100px; /* Đặt chiều rộng tối thiểu cho cột cuộn */
}

.TableTextCenter {
    vertical-align: middle; text-align: center;
}
