/* Badge Công khai xanh lá (Có) */
.badge-cong-khai {
  background: #4b944b;
  color: #fff;
  border-radius: 8px;
  padding: 6px 18px;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(75, 148, 75, 0.08);
  border: none;
  display: inline-block;
  letter-spacing: 0.5px;
}


/* Badge Công khai xám nhạt (Không) */
.badge-khong-cong-khai {
  background: #e0e0e0;
  color: #333;
  border-radius: 8px;
  padding: 6px 18px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(160, 160, 160, 0.08);
  border: none;
  display: inline-block;
  letter-spacing: 0.5px;
}


/* Badge kiểu dữ liệu - mỗi kiểu một màu */
.badge-datatype {
  color: #fff;
  border-radius: 8px;
  padding: 4px 14px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 2px;
  text-transform: lowercase;
}
.badge-nvarchar { background: #e3f2fd; color: #1565c0; }
.badge-int { background: #fff3e0; color: #ef6c00; }
.badge-bit { background: #ede7f6; color: #5e35b1; }
.badge-datetime2 { background: #e1f5fe; color: #0277bd; }
.badge-float { background: #e8f5e9; color: #388e3c; }
.badge-default { background: #f5f5f5; color: #616161; }


/* Chi tiết bảng - layout đẹp, font lớn, badge mapper, mô tả màu nhẹ */
.table-detail-header {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.table-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 0.5rem;
}
.table-detail-col {
  flex: 1 1 320px;
  min-width: 280px;
}
.table-detail-label {
  font-weight: 600;
  color: #222;
  margin-right: 8px;
}
.table-detail-desc {
  color: #6c757d;
  font-size: 1.05rem;
}
.table-detail-mapper {
  background: #6c757d;
  color: #fff;
  border-radius: 8px;
  padding: 4px 14px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  margin-left: 6px;
}


/* Nút có icon: căn giữa, padding, bo góc, icon cách chữ, hover */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  padding: 8px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.btn-icon .bi {
  font-size: 1.2em;
  margin-right: 4px;
}
.btn-primary.btn-icon {
  color: #fff;
  border: none;
}
.btn-primary.btn-icon:hover {
  background: #3367d6;
  box-shadow: 0 4px 16px rgba(66,133,244,0.12);
  transform: translateY(-2px);
}
.btn-danger.btn-icon {
  color: #fff;
  border: none;
}
.btn-danger.btn-icon:hover {
  background: #a93226;
  box-shadow: 0 4px 16px rgba(192,57,43,0.12);
  transform: translateY(-2px);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #fff;
  }



/* Table đẹp, hiện đại cho trang chi tiết kết nối */
.glass-card .table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31,38,135,0.06);
  background: #fff;
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  margin-bottom: 1.2rem;
}
.glass-card .table thead th {
  font-weight: 700;
  font-size: 1rem;
  background: #f8fafc;
  color: #22223b;
  border-bottom: 1px solid #e0e7ff;
  padding: 1.1rem 1rem;
}
.glass-card .table td {
  padding: 1.1rem 1rem;
  vertical-align: middle;
  background: #fff;
  border-bottom: 1px solid #e0e7ff;
  font-size: 0.98rem;
  color: #22223b;
}
.glass-card .table-hover tbody tr:hover {
  background: #f8fafc;
  box-shadow: none;
  transition: background 0.2s;
}
.glass-card .table td .btn {
  font-size: 0.95rem;
  padding: 0.45rem 1.1rem;
  margin-right: 0.3rem;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(31,38,135,0.10);
}

/* Phân trang cuộn ngang khi nhiều trang */
.pagination-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
}
.pagination {
  flex-wrap: nowrap;
  white-space: nowrap;
}



/* Glassmorphism card style cho trang chi tiết kết nối */
.glass-card {
  position: relative; /* Fix for modal backdrop issue */
  z-index: 1;         /* Fix for modal backdrop issue */
  background: rgba(255,255,255,0.55);
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 2rem;
  margin-bottom: 2rem;
}



/*Card - ManagerDb*/
.tittle{
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
}
.td-action{
  display: flex;
  justify-content:center;
  gap: 10px;
}
.card {
  background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(31,38,135,0.06);
    border-radius: 12px;
    border: 1px solid #e0e7ff;
    padding: 1.5rem;
    margin: 1.5rem 0;
    transition: box-shadow 0.2s;
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #e0e7ff;
  font-weight: 600;
  font-size: 1.1rem;
  color: #22223b;
  margin-bottom: 0.5rem;
}
.card-body {
  background: #fff;
  padding: 0.5rem 0;
}
