﻿/* =======================
   Nút cuộn lên / xuống
   ======================= */

/* Phong cách chung cho nút cuộn */
.scroll-button {
    position: fixed;
    right: 15px; /* Khoảng cách từ cạnh phải */
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(170, 246, 86, 0.09), #0056b3); /* Gradient mới */
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1050;
}

/* Nút cuộn lên */
.scroll-button.up {
    bottom: 70px;
}

/* Nút cuộn xuống */
.scroll-button.down {
    bottom: 15px;
}

/* Khi nút được kích hoạt */
.scroll-button.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Hover hiệu ứng */
.scroll-button:hover {
    background: linear-gradient(135deg, rgba(27, 40, 19, 0.09), #003f7f); /* Tông màu xanh đậm hơn */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* Biểu tượng Font Awesome */
.scroll-button i {
    font-family: "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    pointer-events: none;
}

/* Mã biểu tượng cụ thể */
.scroll-button.up i::before {
    content: "\f062"; /* Mũi tên lên */
}

.scroll-button.down i::before {
    content: "\f063"; /* Mũi tên xuống */
}

/* Responsive cho màn hình nhỏ hơn */
@media (max-width: 576px) {
    .scroll-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
        right: 10px;
    }

    .scroll-button.up {
        bottom: 60px;
    }

    .scroll-button.down {
        bottom: 10px;
    }
}

/* =======================
   Vòng quay chờ loading
   ======================= */

.loading-placeholder {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


#lock-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9); /* Làm tối màn hình */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 9999; /* Đảm bảo nằm trên tất cả */
}

.lock-screen-message {
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.latex-img {
    max-width: 100%;
    height: 1rem !important;
}
.hr-with-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    margin: 1rem 0;
    gap: 1rem;
}

.hr-with-text::before,
.hr-with-text::after {
    content: "";
    flex: 0.1;
    border-bottom: 2px solid rgba(22, 73, 169, 0.82);
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.hr-with-text::after {
    flex: 10;
}

.hr-with-text span {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    color: rgba(22, 73, 169, 0.82); /* Màu chữ */
    font-weight: bold;
    white-space: nowrap;
}

.hr-with-text-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 1rem 0;
    gap: 1rem;
    color: #0a0a0a;
    font-size: 16px;
    font-weight: bold;
}

.hr-with-text-center::before,
.hr-with-text-center::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid rgba(22, 73, 169, 0.82);
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.hr-with-text-center span {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    color: rgba(22, 73, 169, 0.82);
    font-weight: bold;
    white-space: nowrap;
}





