/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-oed0jq3arq] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-oed0jq3arq] {
    flex: 1;
}

.sidebar[b-oed0jq3arq] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-oed0jq3arq] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-oed0jq3arq]  a, .top-row[b-oed0jq3arq]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-oed0jq3arq]  a:hover, .top-row[b-oed0jq3arq]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-oed0jq3arq]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-oed0jq3arq] {
        justify-content: space-between;
    }

    .top-row[b-oed0jq3arq]  a, .top-row[b-oed0jq3arq]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-oed0jq3arq] {
        flex-direction: row;
    }

    .sidebar[b-oed0jq3arq] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-oed0jq3arq] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-oed0jq3arq]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-oed0jq3arq], article[b-oed0jq3arq] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-nzjro5fg4z],
.components-reconnect-repeated-attempt-visible[b-nzjro5fg4z],
.components-reconnect-failed-visible[b-nzjro5fg4z],
.components-pause-visible[b-nzjro5fg4z],
.components-resume-failed-visible[b-nzjro5fg4z],
.components-rejoining-animation[b-nzjro5fg4z] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-nzjro5fg4z],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-nzjro5fg4z],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-nzjro5fg4z],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-nzjro5fg4z],
#components-reconnect-modal.components-reconnect-retrying[b-nzjro5fg4z],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-nzjro5fg4z],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-nzjro5fg4z],
#components-reconnect-modal.components-reconnect-failed[b-nzjro5fg4z],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-nzjro5fg4z] {
    display: block;
}


#components-reconnect-modal[b-nzjro5fg4z] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-nzjro5fg4z 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-nzjro5fg4z 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-nzjro5fg4z 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-nzjro5fg4z]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-nzjro5fg4z 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-nzjro5fg4z {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-nzjro5fg4z {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-nzjro5fg4z {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-nzjro5fg4z] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-nzjro5fg4z] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-nzjro5fg4z] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-nzjro5fg4z] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-nzjro5fg4z] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-nzjro5fg4z] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-nzjro5fg4z] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-nzjro5fg4z 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-nzjro5fg4z] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-nzjro5fg4z {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/BanThoAo.razor.rz.scp.css */
/* 1. KHÔNG GIAN PHÒNG THỜ */
.altar-room[b-6xzlryqw4i] {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('/images/bg-ban-tho.jpg') center/cover no-repeat;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.altar-container[b-6xzlryqw4i] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    position: relative;
}

/* 2. KHU VỰC DI ẢNH VÀ THÔNG TIN */
.portrait-section[b-6xzlryqw4i] {
    text-align: center;
    z-index: 2;
    margin-bottom: -30px; /* Kéo ảnh sát xuống mặt bàn */
}

.portrait-frame[b-6xzlryqw4i] {
    width: 160px;
    height: 220px;
    background: #3e2723;
    padding: 10px;
    border: 4px solid #8d6e63;
    margin: 0 auto;
    position: relative;
    transform: perspective(800px) rotateX(10deg);
    box-shadow: 0 20px 30px rgba(0,0,0,0.8), inset 0 0 10px rgba(0,0,0,1);
    border-radius: 4px;
    overflow: hidden;
}

.portrait-img[b-6xzlryqw4i] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.grayscale-img[b-6xzlryqw4i] {
    filter: grayscale(100%) sepia(15%) contrast(110%);
}

.mourning-ribbon-3d[b-6xzlryqw4i] {
    position: absolute;
    top: 15px;
    right: -35px;
    width: 120px;
    height: 20px;
    background-color: #000;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.8);
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    z-index: 5;
}

/* 1. MẶT BÀN THỜ (Giả lập góc nhìn ngang tầm mắt) */
.table-section[b-6xzlryqw4i] {
    width: 100%;
    max-width: 1000px;
    height: 45px;
    background: linear-gradient(to bottom, #8d6e63 0%, #4e342e 30%, #271714 100%);
    border-top: 3px solid #d4af37;
    border-bottom: 5px solid #1a0f0d;
    box-shadow: 0 25px 50px rgba(0,0,0,0.9);
    border-radius: 4px;
    position: relative !important; /* Dùng !important để làm mốc cho các vật phẩm bên trong */
    z-index: 3;
    margin-top: 250px; /* Hạ thấp mặt bàn để tạo không gian cho các vật phẩm cao */
}

/* 2. HÀNG VẬT PHẨM (Nâng lên mặt bàn & Căn giữa tuyệt đối bằng Grid) */
.items-row[b-6xzlryqw4i] {
    position: absolute !important;
    /* 🌟 Dịch toàn bộ vật phẩm lên trên cạnh bàn 12px để tạo cảm giác đặt sâu vào trong */
    bottom: calc(100% + 12px) !important;
    left: 0;
    right: 0;
    /* 🌟 CHÌA KHÓA: Sử dụng CSS Grid để khóa cứng vị trí trung tâm */
    display: grid !important;
    /* Chia 5 cột với tỷ lệ: Nến (0.8) - Quả (1.2) - Bát hương (auto) - Hoa (1.2) - Nến (0.8) */
    grid-template-columns: 0.8fr 1.2fr auto 1.2fr 0.8fr;
    align-items: end !important; /* Vẫn ép phẳng đáy trên 1 đường thẳng */
    justify-items: center !important; /* Căn giữa từng vật phẩm trong ô khoảng cách của nó */
    width: 100%;
    padding: 0 10px;
    margin: 0 !important;
}

.altar-item[b-6xzlryqw4i] {
    /* 🌟 CHÌA KHÓA SỬA LỖI LƠ LỬNG 🌟 */
    width: auto !important; /* Bỏ fix width để ảnh tự co giãn theo chiều cao, không tạo khoảng hở */
    height: auto; /* Fallback an toàn */
    vertical-align: bottom !important; /* Triệt tiêu khe hở 3px mặc định dưới thẻ img của HTML */
    object-fit: fill !important; /* Hủy lệnh contain gây căn giữa trục dọc */
    margin-bottom: 0 !important;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.8));
    z-index: 4;
    display: block !important;
}

/* 3. TỶ LỆ KÍCH THƯỚC MỚI (CHỈ SET HEIGHT) */
.incense-bowl[b-6xzlryqw4i] {
    height: 140px !important; /* Bát hương làm mốc */
    z-index: 5;
    position: relative;
}

.fruit-plate[b-6xzlryqw4i] {
    height: 140px !important; /* Đĩa quả tự động bề ngang rộng theo ảnh gốc */
}

.flower-vase[b-6xzlryqw4i] {
    height: 250px !important; /* Lọ hoa vươn cao */
}

.candle[b-6xzlryqw4i] {
    height: 180px !important; /* Nến cao vừa phải */
}

/* Đảm bảo Bát hương luôn là trung tâm tuyệt đối */
.incense-container[b-6xzlryqw4i] {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end !important;
    height: auto !important;
    margin-bottom: 0 !important;
    justify-self: center !important; /* Khóa chặt ở giữa Grid */
}

.incense-sticks[b-6xzlryqw4i] {
    width: 4px;
    height: 65px;
    background: #ff3d00;
    box-shadow: 0 0 12px #ff3d00, 0 0 20px #ffab00;
    position: absolute;
    bottom: 90px; /* Cắm từ giữa bát hương (140px) hướng lên */
    border-radius: 2px;
    z-index: 4;
}

.smoke-effect[b-6xzlryqw4i] {
    position: absolute;
    bottom: 140px; /* Bốc lên từ miệng bát hương */
    width: 15px;
    height: 15px;
    background: rgba(238, 238, 238, 0.6);
    border-radius: 50%;
    filter: blur(5px);
    animation: smoke-rise-b-6xzlryqw4i 4s infinite ease-in;
    opacity: 0;
    z-index: 3;
}

.smoke-2[b-6xzlryqw4i] {
    animation-delay: 1.5s;
    left: -18px;
}

.smoke-3[b-6xzlryqw4i] {
    animation-delay: 3s;
    right: -18px;
}

@keyframes smoke-rise-b-6xzlryqw4i {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-120px) scale(3) translateX(15px);
        opacity: 0.3;
    }

    100% {
        transform: translateY(-240px) scale(6) translateX(-25px);
        opacity: 0;
    }
}

/* 5. GIAO DIỆN MOBILE (Tối ưu cho Grid) */
@media (max-width: 800px) {
    .table-section[b-6xzlryqw4i] {
        margin-top: 180px;
    }

    .items-row[b-6xzlryqw4i] {
        bottom: calc(100% + 6px) !important; /* Mobile dịch lên ít hơn */
        /* Ép cặp nến ra sát lề hơn để nhường chỗ cho đồ lễ giữa */
        grid-template-columns: 0.5fr 1.2fr auto 1.2fr 0.5fr;
        padding: 0 5px;
    }

    /* Kích thước Mobile (Responsive bằng Height) */
    .incense-bowl[b-6xzlryqw4i] {
        height: 90px !important;
    }

    .fruit-plate[b-6xzlryqw4i] {
        height: 75px !important;
    }

    .flower-vase[b-6xzlryqw4i] {
        height: 160px !important;
    }

    .candle[b-6xzlryqw4i] {
        height: 120px !important;
    }

    .incense-sticks[b-6xzlryqw4i] {
        bottom: 60px;
        height: 45px;
    }

    .smoke-effect[b-6xzlryqw4i] {
        bottom: 90px;
    }
}

