@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

.nav-link.active {
    border-bottom: 3px solid #ec4899;
    /* pink-500 */
    color: #ec4899;
    /* pink-600 */
    font-weight: 700;
}

.modal-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    /* Ẩn modal ban đầu */
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    /* Hiện modal khi có class active */
}

/* Thêm CSS cho modal đăng nhập (lấy từ tutap.php) */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
}

.hidden {
    display: none;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    /* 12px */
    border-radius: 0.375rem;
    /* 6px */
    border: 1px solid #D1D5DB;
    /* gray-300 */
    background-color: #F9FAFB;
    /* gray-50 */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus,
.form-select:focus {
    border-color: #ec4899;
    /* pink-500 */
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.3);
    outline: none;
}

/* ======================================= */
/* FILE CSS DÀNH RIÊNG CHO LÁ SỐ (LASO.CSS) */
/* ======================================= */

.laso-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);

    height: 1120px;
    border: 0.1px;
    margin: auto;
    position: relative;
    background-color: #e7e4dd;
    font-family: 'Inter', sans-serif !important;
    /* <-- THÊM DÒNG NÀY ĐỂ ÉP FONT */
}

.laso-container {
    position: relative;
    width: 800px;

    margin: auto;
    border: 0.5px solid #000000;
}

#tam-hop-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#tam-hop-svg line {
    stroke: #9ca3af;
    stroke-width: 1;
}

.laso-cung {
    border: 0.5px solid #808080;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1px 8px;
    font-size: 1rem;
    position: relative;
}

.cung-name {
    font-weight: 700;
    font-size: 12px;
    position: absolute;
    top: 1px;
    left: 3px;
    z-index: 11;
    padding: 0 2px;
}

.laso-center {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    border: 0.5px solid #808080;
    padding: 20px 10px 10px 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* << Quan trọng: Để định vị lớp nền */
    z-index: 1;
    /* << Đảm bảo khung này có thứ tự lớp */
}

/* --- LỚP ẢNH NỀN MỚI --- */
.laso-center::before {
    content: '';
    /* Bắt buộc phải có */
    position: absolute;
    /* Định vị tuyệt đối trong .laso-center */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* --- THAY TÊN ẢNH CỦA ANH VÀO ĐÂY --- */
    background-image: url('nen-la-so.png');
    /* << THAY TÊN FILE ẢNH CỦA ANH */

    background-size: cover;
    /* Phóng to ảnh để lấp đầy khung */
    background-position: center;
    /* Căn ảnh ra giữa */
    background-repeat: no-repeat;
    /* Không lặp lại ảnh */

    opacity: 0.15;
    /* << Độ mờ của ảnh (anh có thể chỉnh từ 0.1 đến 1) */

    z-index: -1;
    /* << Quan trọng: Đặt lớp ảnh nền nằm DƯỚI LỚP CHỮ */
}


.laso-center-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0 5px;
}

.laso-center-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.7;
}

.laso-center-content td {
    vertical-align: top;
    padding: 1px 0;
}

.laso-center-content .label-cell {
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    color: #000000;
    padding-right: 15px;
}

.laso-center-content .value-cell {
    text-align: left;
    font-weight: 500;
    color: #000000;
}

.laso-center-summary {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

.laso-center-summary .summary-line {
    font-weight: bold;
    font-size: 16px;
    line-height: 1.2;
    /* <-- GIẢM KHOẢNG CÁCH DÒNG */
}

/* === THÊM MỚI: ĐỔI MÀU 2 DÒNG ĐẦU === */
.laso-center-summary .summary-line:first-child,
.laso-center-summary .summary-line:nth-child(2) {
    color: #DC2626;
    /* Mã màu đỏ đậm */
}

.laso-main-title {
    color: red;
    font-size: 30px;
    /* Chữ to, màu đỏ */
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 0;
}

.laso-sub-title {
    color: #16a34a;
    /* Màu xanh lá cây */
    font-size: 20px;
    /* Chữ nhỏ lại */
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.cung-hoa {
    color: #ef4444;
}

.cung-tho {
    color: #f97116;
}

.cung-moc {
    color: #16a34a;
}

.cung-thuy {
    color: #1e293b;
}

.cung-kim {
    color: #6b7280;
}

.cung-an-sao {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #000000;
}

.cung-an-sao-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    /* <-- REDUCE GAP (e.g., to 2px) */
    /* position: relative; */
    /* <-- REMOVE or COMMENT OUT this line */
    min-height: 18px;
}

.than-cu-label {
    /* background-color: #DC2626; */
    color: red;
    font-size: 12px;
    font-weight: bold;
    /* padding: 2px 10px; */
    /* border-radius: 3px; */
    line-height: 1;
    /* position: absolute; */
    /* <-- REMOVE or COMMENT OUT */
    /* top: 0;             */
    /* <-- REMOVE or COMMENT OUT */
    /* right: 0;           */
    /* <-- REMOVE or COMMENT OUT */
}

.cuc-hoa {
    color: #FF0000;
}

.cuc-moc {
    color: #16a34a;
}

.cuc-kim {
    color: #6b7280;
}

.cuc-tho {
    color: #FF9900;
}

.cuc-thuy {
    color: #2563eb;
}

.dai-van-number {
    position: absolute;
    top: 1px;
    right: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #1e293b;
}

.chinh-tinh-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 40px;
    margin-top: 6px;
}

.sao-chinh-tinh {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

.phu-tinh-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-grow: 1;
    align-items: flex-start;
}

.phu-tinh-col {
    display: flex;
    flex-direction: column;
    width: 48%;
    gap: 1px;
}

.sao-phu-tinh {
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.vong-trang-sinh-sao {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #000000;
    font-weight: bold;
}

.sao-chinh-tinh.tu-vi-sao,
.sao-chinh-tinh.thien-phu-sao,
.phu-tinh-custom-orange {
    color: #ff9900 !important;
}

.liem-trinh-sao,
.thai-duong-sao,
.phu-tinh-red {
    color: #FF0000 !important;
}

.thien-dong-sao,
.thai-am-sao,
.cu-mon-sao,
.thien-tuong-sao,
.pha-quan-sao,
.phu-tinh-black {
    color: #000000 !important;
}

.vu-khuc-sao,
.that-sat-sao,
.phu-tinh-gray {
    color: #6b7280 !important;
}

.thien-co-sao,
.thien-luong-sao,
.tham-lang-sao,
.phu-tinh-green {
    color: #1ba21a !important;
}

.phu-tinh-silver {
    color: #A0A0A0 !important;
}

.nam-han-sao {
    position: absolute;
    bottom: 20px;
    left: 12px;
    font-size: 11px;
    color: #000000;
    font-weight: bold;
}

.thang-han-sao {
    position: absolute;
    bottom: 20px;
    right: 12px;
    font-size: 11px;
    color: #000000;
    font-weight: bold;
}

#sao-vong-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.sao-vong {
    position: absolute;
    background-color: black;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 0 14px;
    /* Chỉ padding ngang */
    border-radius: 4px;
    transform: translate(-50%, -50%);
    border: 1px solid #555;
    white-space: nowrap;
    /* display: flex; */
    /* <-- Xóa hoặc comment dòng này */
    /* align-items: center; */
    /* <-- Xóa hoặc comment dòng này */
    height: 20px;
    /* <-- THÊM: Chiều cao cố định */
    line-height: 5px;
    /* <-- THÊM: Bằng chiều cao để căn giữa dọc */
    text-align: center;
    /* <-- THÊM: Cần để căn giữa ngang */
}

.action-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.font-bold {
    font-weight: bold !important;
}

/* === BỔ SUNG CSS CHO NÚT LUẬN GIẢI VIP === */
.action-buttons button#analysis-vip-btn {
    background-color: #6d28d9;
    /* Màu Tím Đậm (violet-700) */
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.5), 0 2px 4px -2px rgba(139, 92, 246, 0.5);
}

.action-buttons button#analysis-vip-btn:hover {
    background-color: #5b21b6;
    /* Màu Tím Rất Đậm (violet-900) */
}


/* CSS cho các nút tải ảnh và phân tích */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.action-buttons button {
    background-color: #4f46e5;
    /* indigo-600 */
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    /* rounded-md */
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-buttons button:hover {
    background-color: #4338ca;
    /* indigo-700 */
}

.action-buttons button#analysis-btn {
    background-color: #ec4899;
    /* pink-500 */
}

.action-buttons button#analysis-btn:hover {
    background-color: #db2777;
    /* pink-600 */
}

/* THÊM CSS ĐỂ ẨN NÚT SCROLL LÊN TRÊN TRÊN MOBILE ĐỂ TRÁNH FOOTER NAV */
@media (max-width: 1023px) {
    #back-to-top-btn {
        bottom: 5.5rem !important;
        /* Đẩy nút lên trên thanh nav dưới cùng */
    }
}

/* ======================================= */
/* BỔ SUNG CSS CHO THANH TAB (laso.php) */
/* ======================================= */

.tab-nav {
    display: flex;
    /* Dùng Flexbox để xếp ngang */
    border-bottom: 2px solid #e5e7eb;
    /* gray-200 */
    margin-bottom: 1.5rem;
    /* mb-6 */
}

.tab-link {
    padding: 0.75rem 1.5rem;
    /* py-3 px-6 */
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 600;
    color: #6b7280;
    /* gray-500 */
    text-decoration: none;
    border-bottom: 4px solid transparent;
    /* Dòng dưới mờ */
    margin-bottom: -2px;
    /* Dính vào border-bottom của .tab-nav */
    transition: all 0.2s ease;
}

.tab-link:hover {
    color: #374151;
    /* gray-700 khi hover */
}

.tab-link.active {
    color: #4f46e5;
    /* indigo-600 */
    border-bottom-color: #4f46e5;
    /* Dòng dưới đậm khi active */
}

.tab-content {
    display: none;
    /* Mặc định ẩn */
}

.tab-content.active {
    display: block;
    /* Hiện tab được chọn */
}


