
 :root {
        --primary-color: #3C3C37;
        --secondary-color: #f5f5f7;
        --accent-color: #514945;
        --text-color: #333;
        --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      }
      
/* ── code bổ sung giao diện ──
   LƯU Ý: hai dòng "######" cũ ở đây là CSS KHÔNG hợp lệ — trình duyệt coi là
   selector hỏng và NUỐT rule đứng ngay sau, làm rule đó chết âm thầm. */

        /* CSS cho box - làm cho chúng trông chuyên nghiệp hơn.
           GIỮ TẮT: rule này xưa nay chưa từng có hiệu lực (bị dòng ###### nuốt);
           bật lên sẽ đổi giao diện mọi box (bo góc + đổ bóng) — mở khi nào chủ đích.
        .box {
          border-radius: 6px;
          box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
          margin-bottom: 20px;
          transition: all 0.3s cubic-bezier(.25,.8,.25,1);
        }
        */

        .box:hover {
          box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
        }
        
        .box-header {
          border-bottom: 1px solid #f4f4f4;
          padding: 15px;
          font-weight: 600;
        }
        
        .box-body {
          padding: 15px;
        }


/* Ẩn hoàn toàn sidebar — phải ẩn cả KHUNG .main-sidebar (aside nền #222d32),
   không chỉ .sidebar bên trong, nếu không còn sót vệt dọc tối bên trái trang */
.sidebar,
.main-sidebar,
.left-side {
  display: none !important;
  width: 0 !important;
}

/* Điều chỉnh body để sử dụng toàn bộ không gian
   (kèm biến thể sidebar-mini/sidebar-collapse của AdminLTE — specificity cao hơn) */
.content-wrapper, .right-side, .main-footer,
.sidebar-mini.sidebar-collapse .content-wrapper,
.sidebar-mini.sidebar-collapse .right-side,
.sidebar-mini.sidebar-collapse .main-footer {
  margin-left: 0 !important;
}

/* Nếu bạn cũng muốn ẩn nút toggle sidebar */
.sidebar-toggle {
  display: none !important;
}

      /* Navbar layout */
.navbar-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-color);
  padding: 10px 20px;
  flex-wrap: wrap;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

/* Menu links */
.navbar-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

/* Hàng link bên trong: hẹp thì tự xuống dòng (không cắt chữ, không scrollbar);
   top:3px để baseline chữ 14px trùng baseline chữ DATASTAT 24px */
.navbar-menu-inner {
  display: flex;
  align-items: center;
  gap: 8px 25px;
  flex-wrap: wrap;
  white-space: nowrap;
  position: relative;
  top: 3px;
}

/* Đảm bảo menu luôn hiển thị trên desktop */
@media (min-width: 769px) {
  .navbar-links {
    display: flex !important;
  }
}

.navbar-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  text-align: center;
}

.navbar-buttons {
  display: flex;
  gap: 10px;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}

/* Agent detail page styles */
  .agent-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
  }

  .agent-detail-header {
    position: relative;
    width: 100%;
  }

  .agent-detail-bg {
    width: 100%;
    height: 200px;
    background-image: url('nw2.png');
    background-size: 600px 200px;
        
        
    background-position: center;
    opacity: 0.7;
  }
  

.agent-detail-icon {
  position: absolute;
  left: 50px;
  top: 50px;
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 10px rgba(0,0,0,0.1);
}

.agent-detail-icon img {
  width: 140px;
  height: 140px;
}

.agent-detail-content {
  padding: 0 20px 20px 20px; /* bỏ padding-top */
}

.agent-detail-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.agent-detail-author {
  color: #666;
  margin-bottom: 15px;
}

.agent-detail-categories {
  margin-bottom: 15px;
}

.agent-detail-description {
  margin-bottom: 20px;
  line-height: 1.6;
}

.agent-detail-stats {
  display: flex;
  gap: 20px;
  border-top: 1px solid #eee;
  padding-top: 0px;
}

.agent-detail-stat {
  font-size: 14px;
  color: #555;
}

.agent-detail-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.agent-detail-rating .fa-star {
  color: #FFD700;
}

.agent-detail-cta {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.agent-detail-cta h3 {
  margin-bottom: 15px;
}

.agent-detail-cta p {
  margin-bottom: 20px;
  color: #666;
}

.agent-followers {
  background-color: white;
  border-radius: 8px;
  padding: 0 20px 20px 20px; /* bỏ padding-top */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.agent-followers h3 {
  margin: 0 0 15px 0; /* bỏ margin-top */
  font-size: 18px;
  font-weight: 600;
  padding-top: 20px; /* nếu cần khoảng cách đều bên trong */
}

.follower-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.follower-item:last-child {
  border-bottom: none;
}

.follower-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.follower-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* giúp ảnh phủ kín không méo */
  border-radius: 50%; /* đảm bảo ảnh cũng tròn */
}


.follower-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.follower-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Login modal */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.login-modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.login-modal-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.login-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #777;
}

.login-form-group {
  margin-bottom: 20px;
}

.login-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.login-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.login-error {
  color: #e74c3c;
  margin-top: 15px;
  font-size: 14px;
}

/* Responsive rules */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .navbar-links.active {
    display: flex;
  }

  /* Mobile: menu xổ dọc, mỗi link một hàng dễ chạm */
  .navbar-menu-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    top: 0;
    width: 100%;
  }
  .navbar-menu-inner a {
    padding: 11px 4px;
    font-size: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navbar-menu-inner a:last-child {
    border-bottom: none;
  }

  .navbar-buttons {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
  
  .agent-detail-header {
    flex-direction: column;
  }
  
  .agent-detail-icon {
    left: 20px;
    top: 20px;
    width: 80px;
    height: 80px;
  }
  
  .agent-detail-icon img {
    width: 50px;
    height: 50px;
  }
  
  .agent-detail-stats {
    flex-direction: column;
    gap: 10px;
  }
}

      body {
        font-family: 'Inter', sans-serif;
        background-color: var(--secondary-color);
        color: var(--text-color);
        margin: 0;
        padding: 0;
      }
      
      .navbar {
        background-color: var(--primary-color);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 0.5rem 1rem;
      }
      
      .navbar-brand {
        font-weight: 700;
        color: white;
      }
      
      .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.8);
      }
      
      .navbar-nav .nav-link:hover {
        color: white;
      }
      
      /* Agent Card Styles */
      .agent-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
      }
      
      .agent-card {
        background-color: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.06);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        display: flex;
        flex-direction: column;
      }
      
      .agent-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.1);
      }
      
      .agent-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
        height: 130px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-image: url('nw2.png') !important;
        background-size: 320px 130px;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        overflow: hidden;
      }
      
      .agent-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
        pointer-events: none;
      }
      
      .agent-icon {
        width: 84px;
        height: 84px;
        background-color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 2;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 3px solid rgba(255, 255, 255, 0.8);
      }
      
      .agent-card:hover .agent-icon {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.12);
      }
      
      .agent-icon img {
        width: 90px;
        height: 90px;
        object-fit: contain;
      }
      
      .agent-body {
        padding: 1.5rem 1.25rem;
        text-align: center;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      
      .agent-title {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 1.15rem;
        margin: 0 0 0.75rem 0;
        color: #1a1a1a;
        text-transform: uppercase;
        line-height: 1.4;
        letter-spacing: 0.02em;
      }
      
      .agent-author {
        color: #666;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
      }
      
      .agent-stats {
        font-size: 0.95rem;
        color: #6b7280;
        margin-bottom: 0.75rem;
        font-weight: 500;
      }
      
      .agent-stats p {
        margin: 0;
      }
      
      .rating {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0.5rem 0;
        gap: 0.35rem;
      }
      
      .rating .fa-star {
        color: #FFC107;
        font-size: 0.95rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
      }
      
      .rating span {
        font-weight: 600;
        color: #374151;
        font-size: 0.95rem;
      }
      
      .reviews {
        color: #9ca3af;
        font-size: 0.85rem;
        font-weight: 400;
      }
      
      .agent-actions {
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid #f3f4f6;
      }
      
      .btn-go {
        background-color: white;
        color: var(--accent-color);
        border: 2px solid var(--accent-color);
        border-radius: 8px;
        padding: 0.65rem 1.75rem;
        font-size: 0.95rem;
        font-weight: 600;
        transition: all 0.25s ease;
        cursor: pointer;
        letter-spacing: 0.01em;
      }
      
      .btn-go:hover {
        background-color: var(--accent-color);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(52, 152, 219, 0.25);
      }
      
      .btn-go.disabled {
        padding: 0.65rem 1.75rem;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: not-allowed;
        opacity: 0.5;
        border-color: #d1d5db;
        color: #9ca3af;
      }
      
      .btn-go.disabled:hover {
        transform: none;
        box-shadow: none;
        background-color: white;
        color: #9ca3af;
      }
      
      .btn-team {
        background-color: white;
        color: #6b7280;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.25s ease;
      }
      
      .btn-team:hover {
        background-color: #f9fafb;
        border-color: #d1d5db;
        color: #374151;
      }
      
      .btn-team i {
        margin-right: 0.35rem;
      }
      
      /* Module View Styles */
      .module-view {
        display: none;
        padding: 10px;
      }
      
      .back-button {
        background-color: #f0f0f0;
        color: #555;
        border: none;
        border-radius: 4px;
        padding: 0.35rem 0.75rem;
        font-size: 0.9rem;
        margin-bottom: 15px;
      }
      
      .back-button:hover {
        background-color: #e0e0e0;
      }
      

      
      /* For Bootstrap tabs styling */
      .nav-pills > li > a {
        border-radius: 4px;
        padding: 10px 15px;
        margin-right: 2px;
        transition: all 0.2s;
      }
      
      .nav-pills > li.active > a,
      .nav-pills > li.active > a:hover,
      .nav-pills > li.active > a:focus {
        background-color: var(--accent-color) !important;
      }
      
      /* Box styling */

.box.box-solid.box-primary>.box-header {
  color: #fff;
  background: #514945;
  text-align: left;
  font-size: 10px;
}

.box.box-solid.box-primary {
  border-color: #514945;
}

.box.box-solid.box-warning>.box-header {
  color: #fff;
  background: #D55C5A;
  text-align: left;
  font-size: 10px;
}

.box.box-solid.box-warning {
  border-color: #D55C5A;
}

.box.box-solid.box-danger>.box-header {
  color: #fff;
  background: #894242;
  text-align: left;
  font-size: 10px;
}

.box.box-solid.box-danger {
  border-color: #894242;
}

.box.box-solid.box-success>.box-header {
  color: #fff;
  background: #5A8A5A;
  text-align: left;
  font-size: 10px;
}

.box.box-solid.box-success {
  border-color: #5A8A5A;
}


/*module logo*/

.module-icon img {
  width: 30px;
  height: 30px;
          margin: 0;
        display: inline-flex;
        align-items: center;
}



      
      /* Table styles */
      .table {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        border-collapse: collapse;
      }
      
      .table > thead > tr > th {
        vertical-align: bottom;
        border-bottom: 2px solid #ddd;
        padding: 8px;
        background-color: #f9f9f9;
      }
      
      .table > tbody > tr > td {
        padding: 8px;
        vertical-align: top;
        border-top: 1px solid #ddd;
      }
      
      /* Pagination */
      .pagination {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
        gap: 0.5rem;
      }
      
      .page-item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: white;
        color: #555;
        text-decoration: none;
        font-size: 0.9rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      }
      
      .page-item.active {
        background-color: var(--accent-color);
        color: white;
      }
      
      .page-item:hover:not(.active) {
        background-color: #f5f5f5;
      }
      
      /* Footer */
      .footer {
        margin-top: 60px;
        padding: 40px 0;
        border-top: 1px solid #eee;
      }
      
      .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      
      .footer-logo {
        display: flex;
        align-items: center;
      }
      
      .footer-logo img {
        height: 28px;
        margin-right: 10px;
      }
      
      .footer-links {
        display: flex;
        gap: 20px;
      }
      
      .footer-links a {
        color: #555;
        text-decoration: none;
        font-size: 14px;
      }
      
      .footer-links a:hover {
        color: var(--accent-color);
      }
      
      .social-links {
        display: flex;
        gap: 15px;
      }
      
      .social-links a {
        color: #555;
        font-size: 18px;
      }
      
      .social-links a:hover {
        color: var(--accent-color);
      }
      
      .btn-signup {
        background-color: #E67E58;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 10px 20px;
        font-weight: 500;
        font-size: 14px;
        cursor: pointer;
      }
      
      .btn-signup:hover {
        background-color: #d66e48;
      }
      
        /* format tiêu đề modules
/* 1. Bỏ padding/margin mặc định */
      .module-view {
        padding: 0 !important;
        margin: 0 !important;
      }
      
      /* 2. Style cho header */
      .module-header.centered {
        background-color: #F7F8FA;     /* nền nhạt */
        border-bottom: 1px solid #E2E8F0;  /* viền sát cạnh */
        margin: 0;                     /* không cách trên */
        padding: 12px 0;               /* khoảng trên/dưới vừa đủ */
        text-align: center;            /* canh giữa chữ */
      }
      
      /* 3. Font giống hệt phần trên */
      .module-header.centered .module-title {
        font-family: 'Inter', sans-serif; /* cùng font Inter */
        font-size: 1.15rem;               /* cùng font size với agent-title */
        font-weight: 600;                  /* medium */
        color: #1a1a1a;                    /* cùng màu với agent-title */
        margin: 0;
        display: inline-flex;
        align-items: center;
        text-transform: uppercase;         /* in hoa như agent-title */
        line-height: 1.4;
        letter-spacing: 0.02em;
      }
      
          /* Tab titles bình thường */
    .custom-tabs > .nav > li > a {
      color: #2C3E50;               /* màu chữ thường */
      font-weight: 500;             /* medium nếu muốn */
    }
    /* Tab active hoặc hover */
    .custom-tabs > .nav > li.active > a,
    .custom-tabs > .nav > li > a:hover {
      color: #E67E58 !important;    /* màu chữ khi active/hover */
      background-color: transparent !important; /* bỏ nền pill nếu cần */
    }

    /* Thông tin file đã tải (Ghép/Nối/Chuyển dạng dữ liệu) - dùng font Inter đồng nhất */
    .ds-file-info {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: #777;
      margin: 4px 0 8px 0;
    }
    .ds-helper-text {
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      color: #888;
      margin-top: -4px;
      margin-bottom: 10px;
    }
