@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&display=swap');

body, button, input, select, textarea, optgroup, p, h1, h2, h3, h4, h5, h6, a, table, th, td, label {
  font-family: 'Sarabun', sans-serif;
}

/* ป้องกัน FontAwesome Icon ถูกทับฟอนต์ */
.fa, .fas, .far, .fal, .fad, .fab, .fa-solid, .fa-regular, .fa-brands, [class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
}

.card-img-container {
  width: 1.5in;
  height: 2.0in;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border: 3px solid #ffffff;
  transition: all 0.3s ease;
}

.card-img-container:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-header {
  background: linear-gradient(135deg, #db2777 0%, #4c0519 100%);
}

.nav-tab-active {
  border-color: #db2777;
  color: #db2777;
  font-weight: 600;
}

.profile-nav-btn {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  user-select: none;
}
.profile-nav-btn.active {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3);
  font-weight: 700;
}
.profile-nav-btn.active .tab-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Table styles - สไตล์ตารางมาตรฐานขนาดตัวอักษรเท่ากันทุกตาราง */
.custom-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.75rem; /* 12px มาตรฐาน */
  color: #334155;
}
.custom-data-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.75rem; /* 12px */
  text-transform: uppercase;
  letter-spacing: 0.025em;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  vertical-align: middle;
}
.custom-data-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.75rem; /* 12px เท่ากันทุกตาราง */
  font-weight: 500;
  line-height: 1.35rem;
  vertical-align: middle;
  color: #334155;
}
.custom-data-table tr:hover td {
  background-color: #fdf2f8;
}

/* Badge for Upload Status */
.badge-pending {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-completed {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-processing {
  background-color: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}
.badge-failed {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
