﻿:root {
    --byd-primary: #00ADB5;
    /*--byd-secondary: #00FFF0;*/
    --byd-dark: #795548;
    --byd-dark-card: rgb(86 98 135 / 85%);
    --byd-border: rgba(255, 255, 255, 0.12);
    --primary-color: #e63946;
    --primary-dark: #c1121f;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --byd-secondary: #eaecf0;
    --byd-text: #4A2E19;
}
.logo-desktop {
    height: 20px;
}
body {
    font-family: 'Inter', sans-serif;
    background: rgb(128 129 131 / 48%) !important;
    color: var(--dark-bg);
    overflow-x: hidden;
}
/* Navbar Styling */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
    background: rgb(52 53 54 / 90%);
    backdrop-filter: blur(10px);
}

    .navbar.scrolled {
        padding: 10px 0;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 8px;
    transition: color 0.3s;
}

    .nav-link:hover, .nav-link.active {
        color: var(--primary-color) !important;
    }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 26px;
    transition: all 0.3s ease;
}

    .btn-primary-custom:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
    }
#text-detail img {
    margin: 0 auto;
    display: block;
    max-width: 100%;
    height: auto;
    padding: .25rem;
    background-color: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}
.design-by-techsoftplus {
    display: flex;
    border-top: 1px #777 dashed;
    padding-top: 25px;
    justify-content: center;
    align-items: end;
    padding-bottom: 50px;
}

    .design-by-techsoftplus a {
        font-size: 12px;
        color: #7d8487;
        text-decoration: none;
    }
/* Custom Colors & Utilities */
.text-byd-cyan {
    color: #00C6FF !important;
}

.text-byd-blue {
    color: #0052D4 !important;
}

.bg-byd-dark {
    background-color: var(--byd-secondary) !important;
}
.text-secondary {
    color: var(--byd-secondary) !important;
}
.bg-byd-card {
    background-color: var(--card-bg) !important;
}

.bg-byd-gradient {
    background: linear-gradient(135deg, #0052D4 0%, #00C6FF 100%) !important;
}
.bg-byd-card-gradient {
    background: radial-gradient(circle at center, #7eafff 0%, #142b67 100%)!important;
}
.border-byd {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-byd-cyan {
    border-color: #00C6FF !important;
}

.car-img-transition {
    transition: all 0.5s ease-in-out;
}

.btn-byd-primary {
    background: linear-gradient(135deg, #0052D4 0%, #00C6FF 100%);
    color: #ffffff;
    border: none;
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    box-shadow: 0 10px 20px -5px rgba(0, 198, 255, 0.3);
    transition: all 0.3s ease;
}

    .btn-byd-primary:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 15px 25px -5px rgba(0, 198, 255, 0.5);
    }

.btn-byd-outline {
    background-color: rgb(52 53 54 / 90%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    transition: all 0.3s ease;
    margin: 5px 0px;
}

    .btn-byd-outline:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #00C6FF;
        border-color: #00C6FF;
    }

/* Swatch buttons */
.color-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #1c2541;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

    .color-btn:hover, .color-btn.active {
        transform: scale(1.15);
        border-color: #00C6FF !important;
    }

/* Modal custom dark */
.modal-content {
    background-color: #121c38;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
}

.form-control, .form-select {
    background-color: #0b132b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 0.75rem;
}

    .form-control:focus, .form-select:focus {
        background-color: #0b132b;
        color: #ffffff;
        border-color: #00C6FF;
        box-shadow: 0 0 0 0.25rem rgba(0, 198, 255, 0.25);
    }

.spec-row:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.2);
}

.badge-cyan {
    background-color: rgba(0, 198, 255, 0.15);
    color: #00C6FF;
    border: 1px solid rgba(0, 198, 255, 0.3);
    border-radius: 50rem;
    padding: 0.4em 1em;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.floating-contact-group {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
}

    .float-btn:hover {
        transform: translateY(-3px) scale(1.06);
        color: #fff;
    }

.float-btn-tooltip {
    position: absolute;
    right: 64px;
    background: var(--byd-red-dark);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.float-btn:hover .float-btn-tooltip {
    opacity: 1;
}

.btn-float-phone {
    background: #16a34a;
    animation: pulse-green 2s infinite;
}

.btn-float-zalo {
    background: #0068ff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -0.5px;
}

.btn-float-fb {
    background: #1877f2;
}

.btn-float-ai {
    background: linear-gradient(135deg, #e63946, #7c3aed);
}

.btn-float-top {
    background: var(--byd-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
}

    .btn-float-top:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}
/* Floating AI Chat Window */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--byd-red), var(--byd-red-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 25px rgba(230, 0, 9, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

    .chat-btn:hover {
        transform: scale(1.1);
    }

.chat-box {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    border: 1px solid #eee;
    animation: fadeInUp 0.3s ease-out;
}

.chat-header {
    background: var(--byd-dark);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--byd-red);
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-msg {
    margin-bottom: 12px;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.4;
}

    .chat-msg.bot {
        background: #ffffff;
        color: #333;
        border: 1px solid #e9ecef;
        align-self: flex-start;
        border-bottom-left-radius: 2px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }

    .chat-msg.user {
        background: var(--byd-red);
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 2px;
        margin-left: auto;
    }

.chat-footer {
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}
.glass-nav {
    background: rgb(0 24 83 / 85%);
    /*rgb(0 24 83 / 85%)*/ 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--byd-border);
}
.shadow-lg .bg-dark {
    background-color: rgb(217 227 237 / 39%) !important;
}
/*rgb(217 227 237 / 39%) !important*/
/* 1. Khung bao ngoài */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    padding: 8px;
}

    /* 2. Cấu trúc bảng & Viền (Border) toàn bộ các ô */
    .table-responsive table {
        width: 100%;
        min-width: 650px;
        border-collapse: collapse; /* Gộp viền gọn gàng, không bị nhân đôi nét */
        background-color: #ffffff;
        font-size: 14px;
        color: #334155;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 12px 16px;
        border: 1px solid #cbd5e1; /* Viền rõ nét cả ngang lẫn dọc */
        vertical-align: middle; /* Căn giữa theo chiều dọc */
        line-height: 1.5;
    }

    /* Tiêu đề bảng */
    .table-responsive thead th {
        background-color: #f1f5f9;
        font-weight: 600;
        color: #0f172a;
        white-space: nowrap;
    }

    /* Hiệu ứng xen kẽ dòng & hover giúp dễ dò thông số dài */
    .table-responsive tbody tr:nth-child(even) {
        background-color: #f8fafc;
    }

    .table-responsive tbody tr:hover {
        background-color: #e2e8f0;
    }

/* 3. Các class tiện ích Căn lề (Alignment) */
.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

/* Mẹo tự động căn lề thông minh nếu không muốn gõ class thủ công:
   - Cột 1 (Tên thông số): Căn trái
   - Các cột còn lại (Giá trị / Phiên bản): Căn giữa */
.table-responsive th:first-child,
.table-responsive td:first-child {
    text-align: left;
    font-weight: 500;
}

.table-responsive th:not(:first-child)
{
    text-align: center;
}
    /* Cố định cột đầu tiên khi cuộn ngang */
    .table-responsive th:first-child,
    .table-responsive td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background-color: #ffffff;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05); /* Tạo bóng nhẹ phân tách cột */
    }

    .table-responsive thead th:first-child {
        background-color: #f8fafc;
        z-index: 3;
    }
.table-responsive table tr td p:first-child {
    border-bottom: 1px solid rgb(52 53 54 / 90%);
    width: fit-content;
    padding-bottom: 4px;
    color: rgb(52 53 54 / 90%);
}
.table-responsive table tr td p:last-child {
    font-weight: 600;
}