/* SRTech Employee Registration System - Clean CSS */

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.3s ease;
}

.loading-content {
  text-align: center;
  color: white;
  max-width: 400px;
  padding: 40px 20px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}

.loading-text {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-details {
  font-size: 16px;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Error State */
.loading-screen.error-state {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.error-icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: shake 0.5s ease-in-out;
}

.error-message {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}

.retry-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.retry-btn:hover {
  background: white;
  color: #ff6b6b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Responsive */
@media (max-width: 768px) {
  .loading-content {
    padding: 20px 15px;
  }
  
  .loading-text {
    font-size: 20px;
  }
  
  .loading-details {
    font-size: 14px;
  }
  
  .error-message {
    font-size: 18px;
  }
}

/* Base styles */
body {
  background: #fafbfc;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: clamp(16px, 4vw, 22px);
  /* Ngăn zoom trên mobile khi focus input */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.main-box {
  background: #fff;
  max-width: 90vw;
  width: 90vw;
  margin: 30px auto;
  padding: 2vw 1vw 3vw 1vw;
  border-radius: 0;
  box-shadow: none;
}

/* Utility classes */
.hidden { 
  display: none !important; 
}

.center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Intro banner */
.intro-banner {
  display: flex;
  align-items: center;
  gap: 36px;
  background: #fff;
  padding: 36px 32px;
  border-radius: 24px;
  box-shadow: 0 6px 36px rgba(0,0,0,0.06);
  max-width: 1200px;
}

.intro-img {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  background: #eee;
}

.intro-text h2 {
  font-size: 2.5rem;
  margin: 0 0 18px 0;
  font-weight: 800;
}

.intro-text p {
  font-size: 1.25rem;
  margin: 0;
  color: #222;
}

/* Buttons */
.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  text-align: center;
  margin-bottom: 20px;
}

.form-choose-btn {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  background: #7956fa;
  border: none;
  border-radius: 28px;
  padding: 28px 48px;
  margin: 0;
  box-shadow: 0 2px 12px rgba(120,86,250,0.10);
  cursor: pointer;
  transition: background 0.15s, transform 0.13s;
}

.form-choose-btn:hover {
  background: #5a40c9;
  transform: translateY(-2px) scale(1.03);
}

.btn-back-index {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #6f4cff;
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 17px 32px 17px 28px;
  font-size: 1.18em;
  font-weight: bold;
  box-shadow: 0 6px 18px -7px #a48cff69;
  z-index: 999;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  opacity: 0.93;
}

.btn-back-index:hover {
  background: #4c2fff;
  transform: scale(1.07) translateY(-2px);
  opacity: 1;
}

/* Form elements */
.form-title {
  font-size: 2.2em;
  font-weight: 900;
  color: #4c2fff;
  text-align: center;
  margin: 16px 0 12px 0;
  letter-spacing: 2px;
  font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
  text-shadow: 1px 2px 8px #e4dbff73;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid #eaeaea;
  margin-bottom: 16px;
  font-size: 1.14em;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 8px -4px #b9b9b9;
}

.tabs button {
  flex: 1;
  border: none;
  padding: 15px 0;
  background: none;
  color: #555;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.15em;
}

.tabs button.active {
  color: #6f4cff;
  border-bottom: 4px solid #6f4cff;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

/* Default form inputs - sẽ bị override bởi các class cụ thể */
label {
  font-weight: 700;
  margin-top: 14px;
  display: block;
  font-size: 1.15em;
}

input, select, textarea {
  width: 100%;
  padding: 17px 13px;
  border-radius: 8px;
  border: 1.5px solid #d9d9d9;
  margin-bottom: 14px;
  font-size: 1.18em;
  box-sizing: border-box;
  background: #f9f9ff;
}

input[type="checkbox"], input[type="radio"] {
  width: auto;
  transform: scale(1.7);
  margin-right: 6px;
}

/* CSS cho upload images */
.upload-row {
  display: grid;
  gap: 14px;
  justify-items: center;
  grid-template-columns: repeat(3, 1fr); /* Desktop: 3 cột */
}

.upload-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  padding: 16px; /* Thêm padding */
  border-radius: 12px; /* Bo góc mọi lúc */
  background: #f8f9fa; /* Background nhẹ */
}

.upload-row label {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 18px;
  text-align: center;
}

.upload-row img {
  width: 100px;
  margin-top: 8px;
  display: block;
  border-radius: 8px; /* Bo góc cho ảnh */
  object-fit: cover;
}

/* Ảnh đại diện có tỷ lệ 4x6 dọc */
.upload-row img[id*="avatar"] {
  width: 80px;
  height: 120px; /* Tỷ lệ 4x6: 80x120 */
}

/* Ảnh CCCD có tỷ lệ ngang */
.upload-row img[id*="preview-front"],
.upload-row img[id*="preview-back"] {
  width: 100px;
  height: 65px; /* Tỷ lệ 800x520 ≈ 100x65 */
}

.upload-preview {
  max-height: 100px;
  display: block;
  margin: 8px auto 0 auto;
  border-radius: 8px; /* Bo góc cho ảnh preview */
  object-fit: cover;
}

/* Preview cho ảnh đại diện */
.upload-preview[id*="avatar"] {
  width: 80px;
  height: 120px; /* Tỷ lệ 4x6 dọc */
  max-height: 120px;
}

/* Preview cho ảnh CCCD */
.upload-preview[id*="preview-front"],
.upload-preview[id*="preview-back"] {
  width: 100px;
  height: 65px; /* Tỷ lệ ngang */
  max-height: 65px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field-row > div {
  flex: 1 1 300px;
  max-width: 100%;
}

.field-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: left;
  margin-top: 0; /* Override default label margin-top */
}

.field-row input,
.field-row select {
  width: 100%;
  padding: 17px 13px; /* Giữ padding như design gốc */
  border: 1.5px solid #d9d9d9;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 1.18em;
  box-sizing: border-box;
  background: #f9f9ff;
}

/* CSS cho single fields */
.single-field {
  margin-bottom: 12px;
}

.single-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: left;
  margin-top: 0;
}

.single-field input,
.single-field select,
.single-field textarea {
  width: 100%;
  padding: 17px 13px;
  border-radius: 8px;
  border: 1.5px solid #d9d9d9;
  margin-bottom: 10px;
  font-size: 1.18em;
  box-sizing: border-box;
  background: #f9f9ff;
}

/* CSS cho button groups */
.btn-group-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.label-title {
  font-weight: 700;
  margin: 0;
  font-size: 1.15em;
  line-height: 1.3;
}

.section-note {
  font-size: 0.92em;
  color: #555;
  font-weight: 400;
  margin-left: 6px;
  font-style: italic;
  display: block;
  margin-top: 4px;
}

/* Tables */
.multi-row-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  margin-bottom: 10px;
  font-size: 1.07em;
}

.multi-row-table th,
.multi-row-table td {
  border: 1px solid #e2e2e2;
  padding: 12px 7px;
  background: #fff;
  vertical-align: middle;
}

.multi-row-table th {
  background: #f7f8fa;
  font-size: 1.06em;
}

.multi-row-table input[type="date"],
.multi-row-table input[type="text"] {
  width: 100%;
  padding: 14px 10px;
  border-radius: 8px;
  border: 1.5px solid #d9d9d9;
  background: #f9f9ff;
  font-size: 1.12em;
  box-sizing: border-box;
}

/* Button groups */
.btn-group {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.btn-group button {
  background: #fafaff;
  color: #333;
  border: 2px solid #c6c6f7;
  margin: 0 10px 8px 0;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1.07em;
  transition: background 0.18s, color 0.18s, border 0.18s;
}

.btn-group button.selected,
.btn-group button:active,
.btn-group button.active {
  background: #6f4cff;
  color: #fff;
  border: 2px solid #4c2fff;
}

/* Action buttons */
.add-row-btn,
.save-btn {
  background: #30b88a;
  color: #fff;
  border: none;
  padding: 12px 19px;
  border-radius: 8px;
  font-size: 1.14em;
  margin: 11px 0;
  font-weight: 600;
  cursor: pointer;
}

.remove-row-btn {
  background: #f45555;
  color: #fff;
  border: none;
  min-width: 32px;
  max-width: 40px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 1.13em;
  cursor: pointer;
}

/* Sections */
.section-title {
  font-size: 1.13em;
  margin-bottom: 8px;
  font-weight: bold;
}

.commit-box {
  background: #f5f8fa;
  border-radius: 8px;
  padding: 17px;
  font-size: 1.12em;
  margin-bottom: 20px;
}

/* QR Camera */
.qr-cam-btn {
  background: linear-gradient(90deg,#1976d2,#4fc3f7);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 #1976d288;
  transition: background 0.2s;
  margin-left: 20px;
}

.qr-cam-btn:hover {
  background: linear-gradient(90deg,#1976d2,#1976d2 70%);
}

.qr-row {
  width: 100%;
  margin: 24px 0 0 0;
  display: flex;
  align-items: center;
}

/* Family table specific styles */
#ct-giadinh-table th:nth-child(1),
#ct-giadinh-table td:nth-child(1) { width: 9%; min-width: 88px; }
#ct-giadinh-table th:nth-child(2),
#ct-giadinh-table td:nth-child(2) { width: 24%; min-width: 140px; }
#ct-giadinh-table th:nth-child(3),
#ct-giadinh-table td:nth-child(3) { width: 15%; min-width: 80px; }
#ct-giadinh-table th:nth-child(4),
#ct-giadinh-table td:nth-child(4) { width: 15%; min-width: 80px; }
#ct-giadinh-table th:nth-child(5),
#ct-giadinh-table td:nth-child(5) { width: 30%; min-width: 86px; }
#ct-giadinh-table th:nth-child(6),
#ct-giadinh-table td:nth-child(6) { width: 5%; min-width: 70px; text-align: center; }

#ct-giadinh-table th { white-space: normal; }
#ct-giadinh-table th, #ct-giadinh-table td { vertical-align: middle; }

/* Experience table */
.multi-row-table.kinhnghiem-table {
  table-layout: fixed;
}

.multi-row-table.kinhnghiem-table th:nth-child(1),
.multi-row-table.kinhnghiem-table td:nth-child(1) { width: 25%; min-width: 180px; }
.multi-row-table.kinhnghiem-table th:nth-child(2),
.multi-row-table.kinhnghiem-table td:nth-child(2) { width: 25%; min-width: 120px; }
.multi-row-table.kinhnghiem-table th:nth-child(3),
.multi-row-table.kinhnghiem-table td:nth-child(3) { width: 25%; min-width: 120px; }
.multi-row-table.kinhnghiem-table th:nth-child(4),
.multi-row-table.kinhnghiem-table td:nth-child(4) { width: 20%; min-width: 90px; }
.multi-row-table.kinhnghiem-table th:nth-child(5),
.multi-row-table.kinhnghiem-table td:nth-child(5) { width: 5%; min-width: 40px; text-align: center; }

.multi-row-table.kinhnghiem-table input,
.multi-row-table.kinhnghiem-table select { 
  width: 100%; 
  box-sizing: border-box;
}

/* Override desktop time column to use vertical layout */
.multi-row-table.kinhnghiem-table .time-desktop {
  width: 100%;
}

.multi-row-table.kinhnghiem-table .time-desktop > div {
  margin-bottom: 6px;
}

.multi-row-table.kinhnghiem-table .time-desktop > div:last-child {
  margin-bottom: 0;
}

.multi-row-table.kinhnghiem-table .time-desktop input[type="date"] {
  width: 100% !important;
}

/* Error states */
.input-error {
  outline: 2.5px solid #ff1a1a !important;
  box-shadow: 0 0 6px 0 #ff1a1a88 !important;
  transition: outline 0.3s;
}

/* Loader */
.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* reCAPTCHA */
.recaptcha-status {
  transition: all 0.3s ease;
  font-size: 14px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 4px solid #dee2e6;
}

.g-recaptcha {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

/* Media queries cho upload responsive */
@media (max-width: 800px) and (min-width: 500px) {
  .upload-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "avatar avatar"
      "front back";
  }
  
  .upload-row > div:first-child {
    grid-area: avatar;
    width: 100%;
    max-width: 100%;
    /* border-radius đã có ở CSS chính */
  }
  
  .upload-row > div:first-child label,
  .upload-row > div:first-child input {
    width: 100%;
    text-align: center;
  }
  
  .upload-row > div:first-child img {
    text-align: center;
    max-width: 120px;
    max-height: 180px; /* Tỷ lệ 4x6 dọc cho avatar: 120x180 */
    width: 120px;
    height: 180px;
    object-fit: cover;
    /* border-radius đã có ở CSS chính */
  }
  
  .upload-row > div:nth-child(2) {
    grid-area: front;
  }
  
  .upload-row > div:nth-child(3) {
    grid-area: back;
  }
}

@media (max-width: 500px) {
  .upload-row {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }
  
  .upload-row > div {
    grid-area: auto;
    margin-bottom: 16px;
    /* border-radius đã có ở CSS chính */
  }
}

@media (max-width: 600px) {
  .intro-banner {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 18px 6px;
  }
  
  .intro-img {
    width: 94px;
    height: 94px;
  }
  
  .intro-text h2 {
    font-size: 1.6rem;
    text-align: center;
  }
  
  .intro-text p {
    font-size: 1rem;
    text-align: center;
  }
  
  .form-choose-btn {
    font-size: 1.3rem;
    padding: 18px 18px;
  }
  
  .button-group {
    gap: 18px;
  }
  
  .btn-back-index {
    font-size: 1em;
    padding: 13px 16px 13px 20px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 700px) {
  .field-row > div {
    flex: 1 1 100%;
    min-width: 0;
    margin-bottom: 16px;
  }
  
  .upload-row > div {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 16px;
  }

  .btn-group-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .tabs { 
    font-size: clamp(0.8em, 3vw, 1.18em); /* Tự động responsive */
  }

  .tabs button { 
    font-size: clamp(0.8em, 3vw, 1.23em); /* Tự động responsive */
    padding: clamp(8px, 2vw, 15px) clamp(4px, 1vw, 0px); /* Padding cũng responsive */
  }

  .multi-row-table th, 
  .multi-row-table td { 
    font-size: 1.12em; 
    padding: 10px 10px;
  }
  
  input, select, textarea { 
    font-size: 1.22em; 
    padding: 18px 10px;
  }
  
  /* Override cho bảng địa chỉ responsive để tránh bị nhỏ quá */
  .diachi-table .diachi-combined select,
  .diachi-table .diachi-combined input {
    font-size: 20px !important;
    padding: 8px 10px !important;
  }
  
  .add-row-btn, .save-btn { 
    font-size: 1.22em; 
    padding: 15px 10px;
  }
  
  .remove-row-btn { 
    font-size: 1.17em; 
    padding: 12px 16px;
  }
  
  label { 
    font-size: 1.16em; 
  }

  /* Mobile table adjustments */
  .multi-row-table.kinhnghiem-table th:nth-child(1),
  .multi-row-table.kinhnghiem-table td:nth-child(1) { width: 36%; min-width: 70px; }
  .multi-row-table.kinhnghiem-table th:nth-child(2),
  .multi-row-table.kinhnghiem-table td:nth-child(2) { width: 23%; min-width: 80px; }
  .multi-row-table.kinhnghiem-table th:nth-child(3),
  .multi-row-table.kinhnghiem-table td:nth-child(3) { width: 23%; min-width: 80px; }
  .multi-row-table.kinhnghiem-table th:nth-child(4),
  .multi-row-table.kinhnghiem-table td:nth-child(4) { width: 13%; min-width: 55px; }
  .multi-row-table.kinhnghiem-table th:nth-child(5),
  .multi-row-table.kinhnghiem-table td:nth-child(5) { width: 5%; min-width: 45px; }

  #ct-giadinh-table th:nth-child(1),
  #ct-giadinh-table td:nth-child(1) { width: 18%; min-width: 60px; }
  #ct-giadinh-table th:nth-child(2),
  #ct-giadinh-table td:nth-child(2) { width: 24%; min-width: 70px; }
  #ct-giadinh-table th:nth-child(3),
  #ct-giadinh-table td:nth-child(3) { width: 15%; min-width: 60px; }
  #ct-giadinh-table th:nth-child(4),
  #ct-giadinh-table td:nth-child(4) { width: 15%; min-width: 60px; }
  #ct-giadinh-table th:nth-child(5),
  #ct-giadinh-table td:nth-child(5) { width: 30%; min-width: 86px; }
  #ct-giadinh-table th:nth-child(6),
  #ct-giadinh-table td:nth-child(6) { width: 5%; min-width: 40px; text-align: center; }

  /* Address table responsive styles */
  .diachi-table .diachi-combined {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  
  .diachi-table .diachi-combined > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .diachi-table .diachi-combined label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0;
    display: none; /* Ẩn labels để tiết kiệm không gian */
  }
  
    .diachi-table .diachi-combined select,
    .diachi-table .diachi-combined input {
      font-size: 20px; /* Tăng cỡ chữ cho dễ đọc */
      padding: 8px 10px; /* Tăng padding */
      border: 1px solid #ddd;
      border-radius: 4px;
      width: 100%;
      box-sizing: border-box;
    }  /* Contact table responsive styles */
  .lienhe-table .lienhe-combined {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  
  .lienhe-table .lienhe-combined > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .lienhe-table .lienhe-combined label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0;
    display: none; /* Ẩn labels để tiết kiệm không gian */
  }
  
  .lienhe-table .lienhe-combined input {
    font-size: 20px !important; /* Tăng cỡ chữ cho dễ đọc và ngăn auto-zoom */
    padding: 8px 10px; /* Tăng padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 4px 0;
    background: #fff;
    /* Ngăn mobile browser tự động zoom khi focus */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Ngăn zoom trên iOS Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Family table responsive styles */
  .giadinh-table .giadinh-combined {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  
  .giadinh-table .giadinh-combined > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .giadinh-table .giadinh-combined label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0;
    display: none; /* Ẩn labels để tiết kiệm không gian */
  }
  
  .giadinh-table .giadinh-combined input {
    font-size: 20px !important; /* Tăng cỡ chữ cho dễ đọc và ngăn auto-zoom */
    padding: 8px 10px; /* Tăng padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 4px 0;
    background: #fff;
    /* Ngăn mobile browser tự động zoom khi focus */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Ngăn zoom trên iOS Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Experience table responsive styles */
  .kinhnghiem-table .kinhnghiem-combined {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  
  .kinhnghiem-table .kinhnghiem-combined > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .kinhnghiem-table .kinhnghiem-combined label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0;
    display: none; /* Ẩn labels để tiết kiệm không gian */
  }
  
  .kinhnghiem-table .kinhnghiem-combined input {
    font-size: 20px !important; /* Tăng cỡ chữ cho dễ đọc và ngăn auto-zoom */
    padding: 8px 10px; /* Tăng padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 4px 0;
    background: #fff;
    /* Ngăn mobile browser tự động zoom khi focus */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Ngăn zoom trên iOS Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Special styling for time inputs in mobile mode */
  .kinhnghiem-table .time-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  
  .kinhnghiem-table .time-inputs > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .kinhnghiem-table .time-inputs span {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0;
    display: block;
  }
  
  .kinhnghiem-table .time-inputs input[type="date"] {
    font-size: 20px !important;
    padding: 6px 8px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    margin: 0 0 4px 0;
    /* Ngăn mobile browser tự động zoom khi focus */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Ngăn zoom trên iOS Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Special styling for desktop time inputs */
  .kinhnghiem-table .time-desktop {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 180px;
  }
  
  .kinhnghiem-table .time-desktop > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .kinhnghiem-table .time-desktop span {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0;
    display: block;
  }
  
  .kinhnghiem-table .time-desktop input[type="date"] {
    font-size: 16px !important;
    padding: 6px 8px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    margin: 0;
  }

  /* Mobile-specific styles for address table */
  @media (max-width: 900px) {
    /* Ngăn layout shift khi keyboard xuất hiện */
    .multi-row-table {
      position: relative;
      /* Ổn định table layout */
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    
    .diachi-table {
      table-layout: fixed;
    }
    
    .diachi-table th,
    .diachi-table td {
      vertical-align: middle;
      font-size: 20px; /* Đảm bảo cỡ chữ nhất quán */
    }
    
    .diachi-table th:nth-child(1),
    .diachi-table td:nth-child(1) {
      width: 25%;
    }
    
    .diachi-table td:nth-child(1) select {
      font-size: 20px !important;
      padding: 8px 10px !important;
    }
    
    .diachi-table th:nth-child(2),
    .diachi-table td:nth-child(2) {
      width: 65%;
    }
    
    .diachi-table th:nth-child(3),
    .diachi-table td:nth-child(3) {
      width: 10%;
      text-align: center;
    }
    
    .diachi-table .diachi-combined {
      width: 100%;
    }
    
    .diachi-table .remove-row-btn {
      font-size: 14px;
      padding: 6px 10px;
      min-width: auto;
      max-width: none;
    }
    
    /* Đảm bảo select trong bảng địa chỉ có cỡ chữ nhất quán */
    .diachi-table select {
      font-size: 20px !important;
      padding: 8px 10px !important;
    }

    /* Contact table mobile styles */
    .lienhe-table {
      table-layout: fixed;
    }
    
    .lienhe-table th,
    .lienhe-table td {
      vertical-align: middle;
      font-size: 20px; /* Đảm bảo cỡ chữ nhất quán */
    }
    
    .lienhe-table th:nth-child(1),
    .lienhe-table td:nth-child(1) {
      width: 25%;
    }
    
    .lienhe-table td:nth-child(1) select {
      font-size: 16px !important;
      padding: 8px 10px !important;
    }
    
    .lienhe-table th:nth-child(2),
    .lienhe-table td:nth-child(2) {
      width: 65%;
    }
    
    .lienhe-table th:nth-child(3),
    .lienhe-table td:nth-child(3) {
      width: 10%;
      text-align: center;
    }
    
    .lienhe-table .lienhe-combined {
      width: 100%;
    }
    
    .lienhe-table .remove-row-btn {
      font-size: 14px;
      padding: 6px 10px;
      min-width: auto;
      max-width: none;
    }
    
    /* Đảm bảo input trong bảng liên hệ có cỡ chữ nhất quán */
    .lienhe-table input {
      font-size: 20px !important;
      padding: 8px 10px !important;
      /* Ngăn auto-zoom trên mobile */
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      min-height: 44px;
      line-height: normal;
    }
    
    .lienhe-table select {
      font-size: 20px !important;
      padding: 8px 10px !important;
      /* Ngăn auto-zoom trên mobile */
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      min-height: 44px;
      line-height: normal;
    }

    /* Family table mobile styles */
    .giadinh-table {
      table-layout: fixed;
    }
    
    .giadinh-table th,
    .giadinh-table td {
      vertical-align: middle;
      font-size: 20px; /* Đảm bảo cỡ chữ nhất quán */
    }
    
    .giadinh-table th:nth-child(1),
    .giadinh-table td:nth-child(1) {
      width: 25%;
    }
    
    .giadinh-table td:nth-child(1) select {
      font-size: 20px !important;
      padding: 8px 10px !important;
    }
    
    .giadinh-table th:nth-child(2),
    .giadinh-table td:nth-child(2) {
      width: 65%;
    }
    
    .giadinh-table th:nth-child(3),
    .giadinh-table td:nth-child(3) {
      width: 10%;
      text-align: center;
    }
    
    .giadinh-table .giadinh-combined {
      width: 100%;
    }
    
    .giadinh-table .remove-row-btn {
      font-size: 14px;
      padding: 6px 10px;
      min-width: auto;
      max-width: none;
    }
    
    /* Đảm bảo input và select trong bảng gia đình có cỡ chữ nhất quán */
    .giadinh-table input {
      font-size: 20px !important;
      padding: 8px 10px !important;
      /* Ngăn auto-zoom trên mobile */
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      min-height: 44px;
      line-height: normal;
    }
    
    .giadinh-table select {
      font-size: 20px !important;
      padding: 8px 10px !important;
      /* Ngăn auto-zoom trên mobile */
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      min-height: 44px;
      line-height: normal;
    }

    /* Experience table mobile styles */
    .kinhnghiem-table {
      table-layout: fixed;
    }
    
    .kinhnghiem-table th,
    .kinhnghiem-table td {
      vertical-align: middle;
      font-size: 20px; /* Đảm bảo cỡ chữ nhất quán */
      overflow: hidden; /* Ngăn tràn nội dung */
    }
    
    .kinhnghiem-table th:nth-child(1),
    .kinhnghiem-table td:nth-child(1) {
      width: 35%;
      max-width: 35%;
    }
    
    .kinhnghiem-table th:nth-child(2),
    .kinhnghiem-table td:nth-child(2) {
      width: 55%;
      max-width: 55%;
    }
    
    .kinhnghiem-table th:nth-child(3),
    .kinhnghiem-table td:nth-child(3) {
      width: 10%;
      max-width: 10%;
      text-align: center;
    }
    
    .kinhnghiem-table .kinhnghiem-combined {
      width: 96%;
      font-size: 20px;
      padding: 4px 6px;
    }
    
    .kinhnghiem-table .kinhnghiem-combined > div {
      margin-bottom: 4px;
    }
    
    .kinhnghiem-table .kinhnghiem-combined > div:last-child {
      margin-bottom: 0;
    }
    
    .kinhnghiem-table .kinhnghiem-combined input {
      font-size: 20px !important;
      padding: 6px 8px !important;
      margin: 0;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box !important;
      border: 1px solid #ddd;
      border-radius: 4px;
      background: #fff;
      /* Ngăn mobile browser tự động zoom và thay đổi layout */
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      /* Ổn định layout khi focus */
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      /* Ngăn scroll và layout shift */
      -webkit-user-select: text;
      user-select: text;
      /* Touch target tối ưu */
      min-height: 38px;
      line-height: 1.2;
      /* Ngăn zoom trên iOS */
      -webkit-text-size-adjust: 100%;
      /* Ổn định viewport */
      -webkit-tap-highlight-color: transparent;
      /* Đảm bảo input không tràn */
      overflow: hidden;
      text-overflow: ellipsis;
      /* Cố định kích thước */
      resize: none;
      outline: none;
    }
    
    .kinhnghiem-table .time-inputs {
      width: 96%;
      font-size: 20px;
      padding: 4px 6px;
    }
    
    .kinhnghiem-table .time-inputs > div {
      margin-bottom: 4px;
    }
    
    .kinhnghiem-table .time-inputs > div:last-child {
      margin-bottom: 0;
    }
    
    .kinhnghiem-table .time-inputs input[type="date"] {
      font-size: 20px !important;
      padding: 6px 8px !important;
      margin: 0;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box !important;
      border: 1px solid #ddd;
      border-radius: 4px;
      background: #fff;
      /* Ngăn mobile browser tự động zoom và thay đổi layout */
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      /* Ổn định layout khi focus */
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      /* Touch target tối ưu */
      min-height: 38px;
      line-height: 1.2;
      /* Ngăn zoom trên iOS */
      -webkit-text-size-adjust: 100%;
      /* Ổn định viewport */
      -webkit-tap-highlight-color: transparent;
      outline: none;
    }
    
    /* Focus state không làm thay đổi layout */
    .kinhnghiem-table .kinhnghiem-combined input:focus,
    .kinhnghiem-table .time-inputs input:focus {
      border-color: #007bff;
      box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
      /* Không thay đổi kích thước */
      transform: none;
      -webkit-transform: none;
    }
    
    .kinhnghiem-table .remove-row-btn {
      font-size: 14px;
      padding: 6px 10px;
      min-width: auto;
      max-width: none;
    }
    
    /* Đảm bảo input và select trong bảng kinh nghiệm có cỡ chữ nhất quán */
    .kinhnghiem-table input {
      font-size: 20px !important;
      padding: 8px 10px !important;
      /* Ngăn auto-zoom trên mobile */
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      min-height: 44px;
      line-height: normal;
    }
    
    .kinhnghiem-table input[type="date"] {
      font-size: 20px !important;
      padding: 8px 10px !important;
      /* Ngăn auto-zoom trên mobile */
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      min-height: 44px;
      line-height: normal;
    }
    
    /* Contact table mobile styles */
    .lienhe-table {
      table-layout: fixed;
      width: 100%;
    }
    
    .lienhe-table th,
    .lienhe-table td {
      vertical-align: middle;
      font-size: 20px;
      overflow: hidden; /* Ngăn tràn nội dung */
    }
    
    .lienhe-table th:nth-child(1),
    .lienhe-table td:nth-child(1) {
      width: 25%;
      max-width: 25%;
    }
    
    .lienhe-table td:nth-child(1) select {
      font-size: 20px !important;
      padding: 8px 10px !important;
    }
    
    .lienhe-table th:nth-child(2),
    .lienhe-table td:nth-child(2) {
      width: 65%;
      max-width: 65%;
      overflow: hidden;
      word-wrap: break-word;
    }
    
    .lienhe-table th:nth-child(3),
    .lienhe-table td:nth-child(3) {
      width: 10%;
      max-width: 10%;
      text-align: center;
    }
    
    .lienhe-table .lienhe-combined {
      width: 96%;
      font-size: 20px;
      padding: 4px 6px; /* Giảm padding để input không tràn */
    }
    
    .lienhe-table .lienhe-combined > div {
      margin-bottom: 4px;
    }
    
    .lienhe-table .lienhe-combined > div:last-child {
      margin-bottom: 0;
    }
    
    .lienhe-table .lienhe-combined input {
      font-size: 20px !important;
      padding: 6px 8px !important; /* Giảm padding */
      margin: 0;
      width: 100%;
      max-width: 100%; /* Đảm bảo không vượt quá */
      box-sizing: border-box !important; /* Quan trọng */
      border: 1px solid #ddd;
      border-radius: 4px;
      background: #fff;
      /* Ngăn mobile browser tự động zoom và thay đổi layout */
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      /* Ổn định layout khi focus */
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      /* Ngăn scroll và layout shift */
      -webkit-user-select: text;
      user-select: text;
      /* Touch target tối ưu */
      min-height: 38px; /* Giảm từ 44px */
      line-height: 1.2;
      /* Ngăn zoom trên iOS */
      -webkit-text-size-adjust: 100%;
      /* Ổn định viewport */
      -webkit-tap-highlight-color: transparent;
      /* Đảm bảo input không tràn */
      overflow: hidden;
      text-overflow: ellipsis;
      /* Cố định kích thước */
      resize: none;
      outline: none;
    }
    
    /* Focus state không làm thay đổi layout */
    .lienhe-table .lienhe-combined input:focus {
      border-color: #007bff;
      box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
      /* Không thay đổi kích thước */
      transform: none;
      -webkit-transform: none;
    }
    
    .lienhe-table .remove-row-btn {
      font-size: 14px;
      padding: 6px 10px;
      min-width: auto;
      max-width: none;
    }
  }
}

/* ===== CROPPER MODAL RESPONSIVE BUTTONS ===== */
/* Ẩn modal mặc định với class hidden - ưu tiên cao nhất */
#cropper-modal.hidden {
  display: none !important;
}

#cropper-modal {
  /* Đảm bảo modal fill toàn màn hình */
  position: fixed !important;
  z-index: 99999 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.94) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  /* Mặc định ẩn */
  display: none !important;
}

/* Container ảnh - để không bị che bởi button bar */
#cropper-modal > div:first-child {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: calc(100vh - 120px) !important;
  max-height: calc(100vh - 120px) !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* Ảnh cropper */
#cropper-img {
  max-width: calc(100vw - 40px) !important;
  max-height: calc(100vh - 160px) !important;
  width: auto !important;
  height: auto !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 40px rgba(34, 34, 34, 0.6) !important;
  object-fit: contain !important;
}

/* Chỉ hiển thị khi không có class hidden */
#cropper-modal:not(.hidden) {
  display: flex !important;
}

#cropper-modal > div:last-child {
  /* Container cho buttons - cố định ở bottom */
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: auto !important;
  min-height: 80px !important;
  max-height: 120px !important;
  display: flex !important;
  gap: 15px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  padding: 15px 15px 20px 15px !important;
  box-sizing: border-box !important;
  flex-wrap: nowrap !important;
  background: rgba(0,0,0,0.8) !important;
  z-index: 100000 !important;
}

/* Responsive button styles */
#cropper-modal button {
  /* Tự động chia đều 4 nút trên 1 hàng */
  flex: 1 1 calc(25% - 11px) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  padding: 15px 8px !important;
  font-size: 2em !important;
  border-radius: 12px !important;
  font-weight: bold !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(170, 170, 187, 0.3) !important;
  cursor: pointer !important;
  /* Đảm bảo text không tràn */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  /* Responsive font size */
  font-size: clamp(1.2em, 4vw, 2.5em) !important;
  /* Center content */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* Stable layout */
  box-sizing: border-box !important;
}

#cropper-rotate-left,
#cropper-rotate-right,
#cropper-confirm {
  background: #6f4cff !important;
}

#cropper-cancel {
  background: #e74c3c !important;
}

#cropper-modal button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(170, 170, 187, 0.4) !important;
}

#cropper-modal button:active {
  transform: translateY(0) !important;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  #cropper-modal > div:last-child {
    gap: 10px !important;
    padding: 12px 10px 15px 10px !important;
    min-height: 70px !important;
    max-height: 90px !important;
  }
  
  #cropper-modal > div:first-child {
    height: calc(100vh - 90px) !important;
    max-height: calc(100vh - 90px) !important;
    padding: 15px !important;
  }
  
  #cropper-img {
    max-width: calc(100vw - 30px) !important;
    max-height: calc(100vh - 120px) !important;
  }
  
  #cropper-modal button {
    flex: 1 1 calc(25% - 7px) !important;
    padding: 12px 6px !important;
    font-size: clamp(1em, 6vw, 2em) !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 480px) {
  #cropper-modal > div:last-child {
    gap: 8px !important;
    padding: 10px 8px 12px 8px !important;
    min-height: 65px !important;
    max-height: 80px !important;
  }
  
  #cropper-modal > div:first-child {
    height: calc(100vh - 80px) !important;
    max-height: calc(100vh - 80px) !important;
    padding: 10px !important;
  }
  
  #cropper-img {
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 100px) !important;
  }
  
  #cropper-modal button {
    flex: 1 1 calc(25% - 6px) !important;
    padding: 10px 4px !important;
    font-size: clamp(0.9em, 5vw, 1.8em) !important;
  }
}

/* ===== CROPPER POINTS LARGE SIZE ===== */
/* Override all cropper points to be 40x40px */
.cropper-point {
  width: 40px !important;
  height: 40px !important;
  opacity: 0.8 !important;
  background-color: #39f !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Adjust positioning for larger points */
.cropper-point.point-e {
  cursor: ew-resize !important;
  margin-top: -20px !important;
  right: -20px !important;
  top: 50% !important;
}

.cropper-point.point-n {
  cursor: ns-resize !important;
  left: 50% !important;
  margin-left: -20px !important;
  top: -20px !important;
}

.cropper-point.point-w {
  cursor: ew-resize !important;
  left: -20px !important;
  margin-top: -20px !important;
  top: 50% !important;
}

.cropper-point.point-s {
  bottom: -20px !important;
  cursor: s-resize !important;
  left: 50% !important;
  margin-left: -20px !important;
}

.cropper-point.point-ne {
  cursor: nesw-resize !important;
  right: -20px !important;
  top: -20px !important;
}

.cropper-point.point-nw {
  cursor: nwse-resize !important;
  left: -20px !important;
  top: -20px !important;
}

.cropper-point.point-sw {
  bottom: -20px !important;
  cursor: nesw-resize !important;
  left: -20px !important;
}

.cropper-point.point-se {
  bottom: -20px !important;
  cursor: nwse-resize !important;
  right: -20px !important;
  /* Override default larger size */
  width: 40px !important;
  height: 40px !important;
  opacity: 0.8 !important;
}

/* Remove the ::before pseudo element from point-se */
.cropper-point.point-se:before {
  display: none !important;
}

/* Hover effects for better UX */
.cropper-point:hover {
  opacity: 1 !important;
  transform: scale(1.1) !important;
  transition: all 0.2s ease !important;
}

/* Active state */
.cropper-point:active {
  transform: scale(0.95) !important;
  opacity: 1 !important;
}

/* ===== QR CAMERA MODAL RESPONSIVE ===== */
/* QR Camera Modal Layout */
#modal-qr-full {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10001 !important;
  background: #000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hidden state */
#modal-qr-full.hidden {
  display: none !important;
}

/* Thông báo ở đầu - chiếm 1/4 top */
#qr-quet-thongbao {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 15vh !important;
  z-index: 10002 !important;
  background: rgba(0,0,0,0.7) !important;
  color: #fff !important;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8) !important;
  text-align: center !important;
  letter-spacing: 1px !important;
  backdrop-filter: blur(3px) !important;
  /* Flexbox để center content */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 15px !important;
  box-sizing: border-box !important;
  /* Responsive font size */
  font-size: clamp(1.2em, 4vw, 2.5em) !important;
  font-weight: bold !important;
  line-height: 1.3 !important;
}

/* Video QR - chiếm giữa */
#video-qr-full {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 10000 !important;
}

/* Button dừng quét - chiếm 1/4 bottom */
#btn-stop-qr {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 10vh !important;
  z-index: 10002 !important;
  background: rgba(183, 28, 28, 0.9) !important;
  color: #fff !important;
  border: none !important;
  font-weight: bold !important;
  cursor: pointer !important;
  /* Flexbox để center content */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* Responsive font size */
  font-size: clamp(1.5em, 5vw, 3em) !important;
  line-height: 1.2 !important;
  /* Hover effect */
  transition: background-color 0.2s ease !important;
}

#btn-stop-qr:hover {
  background: rgba(183, 28, 28, 1) !important;
}

#btn-stop-qr:active {
  background: rgba(150, 20, 20, 1) !important;
  transform: scale(0.98) !important;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  #qr-quet-thongbao {
    font-size: clamp(1em, 3.5vw, 2em) !important;
    padding: 15px 10px !important;
    line-height: 1.2 !important;
  }
  
  #btn-stop-qr {
    font-size: clamp(1.2em, 4vw, 2.5em) !important;
  }
}

@media (max-width: 480px) {
  #qr-quet-thongbao {
    font-size: clamp(0.9em, 3vw, 1.8em) !important;
    padding: 12px 8px !important;
    height: 20vh !important;
  }
  
  #btn-stop-qr {
    font-size: clamp(1em, 3.5vw, 2em) !important;
    height: 20vh !important;
  }
  
  /* Adjust video for smaller screens */
  #video-qr-full {
    height: 100vh !important;
  }
}