body { 
  background-color: #f8fafc; 
  font-family: 'Sarabun', sans-serif; 
  overscroll-behavior-y: none; /* กฎข้อ 19: ป้องกันการดึงรีเฟรชจอ */
  padding-top: 70px; /* ⚠️ ดันเนื้อหาลงมาเพื่อหลบ Top Bar ที่ถูกตรึงไว้ */
  padding-bottom: 80px; /* เว้นพื้นที่ด้านล่างให้ Bottom Nav */
}

/* ธีม Top Bar ใหม่ (สีขาวสว่าง ตัวอักษรสีน้ำเงิน เพื่อความชัดเจน) */
.top-bar { 
  position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
  background: #ffffff; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
  padding: 10px 15px; 
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.top-bar-title {
  font-size: 1.25rem; font-weight: 800; color: #0d6efd; margin: 0;
  display: flex; align-items: center; gap: 8px;
}

/* ปุ่มไอคอนวงกลม */
.icon-btn {
  width: 38px; height: 38px; 
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; padding: 0;
  transition: 0.2s;
}
.icon-btn:active { transform: scale(0.9); }

/* Bottom Navigation สไตล์ Mobile App ตรึงด้านล่าง 100% */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: white; border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
  display: flex; justify-content: space-around;
  padding: 10px 0 15px 0; /* เผื่อพื้นที่ SafeArea ด้านล่างบนมือถือจอแหว่ง */
  z-index: 1040;
}
.bottom-nav .nav-item {
  text-align: center; color: #64748b; cursor: pointer;
  flex: 1; transition: 0.2s;
}
.bottom-nav .nav-item.active {
  color: #0d6efd; font-weight: bold; transform: translateY(-3px);
}
.bottom-nav .nav-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 2px; }
.bottom-nav span { font-size: 0.75rem; display: block; font-weight: bold; }

/* การ์ดผู้สมัคร */
.card-ats { 
  border: none;
  border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
  overflow: hidden; background: white; height: 100%; position: relative; 
  transition: 0.2s; margin-bottom: 20px;
}
.img-container { 
  background: #f1f5f9; height: 180px; display: flex; align-items: center; 
  justify-content: center;
  border-bottom: 1px solid #edf2f7; 
}
.candidate-img { max-width: 100%; max-height: 100%; object-fit: contain; }

.info-table { padding: 10px; font-size: 0.85rem; }
.info-row { 
  display: flex;
  align-items: center; padding: 4px 0; 
  border-bottom: 1px dashed #e2e8f0; 
}
.info-label { width: 45%; font-weight: 700; color: #64748b; }
.info-value { width: 55%; font-weight: 600; color: #1e293b; }
.status-badge { font-size: 0.75rem; border-radius: 6px; padding: 3px 8px; }

.resume-table th { 
  background-color: #f1f5f9; color: #334155; width: 40%;
  font-size: 0.9rem; border-bottom: 1px solid #cbd5e1; 
}
.resume-table td { font-size: 0.9rem; border-bottom: 1px solid #e2e8f0; }
