/* 📌 ไฟล์: style.css */
/* 🎯 หน้าที่: ควบคุมการจัดวางหน้าจอ โมบายดีไซน์ และ Shimmer Loader ของฝั่งผู้จัดการ */

body { 
  background-color: #f8fafc; 
  font-family: 'Sarabun', sans-serif; 
  overscroll-behavior-y: none; /* ป้องกันการรูดนิ้วดึงรีเฟรชหน้าจอโหมดมือถือ */
  padding-top: 70px; 
  padding-bottom: 80px; 
  -webkit-tap-highlight-color: transparent;
}

/* ดีไซน์ 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.06); 
  padding: 10px 15px; 
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.top-bar-title {
  font-size: 1.15rem; 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.05rem; padding: 0;
  transition: 0.2s;
}
.icon-btn:active { transform: scale(0.92); }

/* Bottom Navigation ยึดติดท้ายจอ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #ffffff; border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
  display: flex; justify-content: space-around;
  padding: 8px 0 12px 0; 
  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(-2px);
}
.bottom-nav .nav-icon { font-size: 1.5rem; line-height: 1; margin-bottom: 2px; }
.bottom-nav span { font-size: 0.72rem; display: block; font-weight: bold; }

/* โครงสร้างการ์ดระบบคัดเลือกใบสมัคร ATS */
.card-ats { 
  border: none;
  border-radius: 14px; box-shadow: 0 4px 6px rgba(0,0,0,0.03); 
  overflow: hidden; background: #ffffff; height: 100%; position: relative; 
  transition: 0.2s; margin-bottom: 10px;
}
.img-container { 
  background: #f1f5f9; height: 170px; 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: 8px 4px; font-size: 0.85rem; }
.info-row { 
  display: flex; align-items: center; padding: 5px 0; 
  border-bottom: 1px dashed #e2e8f0; 
}
.info-label { width: 42%; font-weight: 700; color: #64748b; }
.info-value { width: 58%; font-weight: 600; color: #1e293b; }
.status-badge { font-size: 0.75rem; border-radius: 6px; padding: 4px 8px; font-weight: 700; }

/* การจัดระเบียบตารางในหน้าต่างใบสมัครฉบับเต็ม */
.resume-table th { 
  background-color: #f1f5f9; color: #334155; width: 38%;
  font-size: 0.88rem; border-bottom: 1px solid #cbd5e1; vertical-align: middle;
}
.resume-table td { font-size: 0.88rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }

/* โครงสร้าง Skeleton Loader วิ่งสลับเฉดสีระหว่างรอข้อมูล */
.skeleton-loading {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  pointer-events: none;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

textarea.form-control:focus {
  box-shadow: none;
}