/* Reset CSS cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5; /* Nền xám nhạt cho toàn trang */
    color: #333;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px; /* Giữ lại một khoảng lề 40px ở hai bên trái/phải cho đẹp mắt */
}

/* Ảnh cover */
.hero-image {
    width: 100%;
    height: 500px; /* Tăng từ 300px lên 500px (hoặc dùng 50vh để bằng 50% chiều cao màn hình) */
    overflow: hidden;
    background-color: #e0e0e0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center; /* Căn giữa ảnh. Nếu phần hồ ở dưới cùng của ảnh, bạn đổi thành 'center bottom' */
}

/* Khu vực thông tin (Nền xám đậm) */
.info-section {
    background-color: #3a3a3a;
    color: #ffffff;
    padding: 40px 0;
}

.info-section h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 15px;
}

.dropdown-icon {
    font-size: 1.5rem;
    cursor: pointer;
}

.info-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    max-width: 800px;
}

/* Khu vực Tabs Menu */
.tabs-container {
    background-color: #2b2b2b; /* Xám đậm hơn chút làm viền tab */
    border-bottom: 1px solid #ddd;
}

.tabs-menu {
    display: flex;
}

.tab-link {
    background-color: transparent;
    color: #aaaaaa;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
}

.tab-link:hover {
    color: #ffffff;
}

/* Tab đang được chọn */
.tab-link.active {
    background-color: #ffffff;
    color: #333;
}

/* Khu vực Nội dung Tab */
.tab-content-container {
    padding: 30px 0;
}

.tab-content {
    display: none; /* Ẩn tất cả nội dung mặc định */
    background: #ffffff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab-content.active {
    display: block; /* Chỉ hiện tab đang active */
}

/* Styling cho Tab Thông số kỹ thuật */
.specs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.spec-section h3 {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #3a3a3a;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.spec-table th {
    background-color: #2b2b2b;
    color: white;
    text-align: left;
    padding: 12px 15px;
    font-weight: 500;
}

.spec-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

/* Màu xen kẽ cho các dòng */
.spec-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Dòng tiêu đề nhóm (I, II...) */
.table-group {
    background-color: #444 !important;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.table-group td {
    padding: 8px 15px;
}

/* Phần tài liệu đính kèm */
.attachment-box {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-download {
    color: #007bff;
    text-decoration: none;
    margin-left: 10px;
}

.btn-download:hover {
    text-decoration: underline;
}

/* Đảm bảo bảng không bị vỡ trên màn hình nhỏ */
.table-responsive {
    overflow-x: auto;
}

/* --- CSS cho Tab Vùng Tưới --- */

.main-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-title {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.mt-4 { margin-top: 20px; }

/* Nút chuyển đổi (Toggle Buttons) */
.toggle-view-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.btn-group {
    display: flex;
    border: 1px solid #007bff;
    border-radius: 4px;
    overflow: hidden;
}

.btn-toggle {
    background-color: #fff;
    color: #007bff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle.active {
    background-color: #4285f4; /* Màu xanh giống hình */
    color: #fff;
}

/* Ẩn/Hiện nội dung */
.view-section { display: none; }
.view-section.active { display: block; }

.input-heso {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
    font-size: 16px;
}

.input-heso:focus {
    outline: none;
    border-color: #007bff;
}
