/* Style riêng cho BHXH 1 lần - Đồng bộ Theme */
.main-container {
  max-width: 1100px;
}

.bhxh-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.bhxh-main {
  flex: 7.5;
  min-width: 0;
}

.bhxh-sidebar {
  flex: 2.5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tabs */
.bhxh-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.bhxh-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  font-family: var(--sans);
}

.bhxh-tab:hover {
  color: var(--text);
}

.bhxh-tab.active {
  color: var(--gold);
}

.bhxh-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

/* Form Container */
.bhxh-form-container {
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-grid-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border2);
  margin-bottom: 15px;
}

.period-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.col-stt { width: 40px; flex-shrink: 0; text-align: center; font-size: 13px; color: var(--text2); }
.col-period { width: 460px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.col-salary { flex: 1; min-width: 0; }
.col-type { flex: 1; min-width: 0; }
.col-action { width: 40px; flex-shrink: 0; text-align: center; }

.col-period select,
.col-salary input,
.col-type select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
}

.col-period select { width: auto; min-width: 80px; }

.btn-remove {
  background: none;
  border: none;
  color: #ff4757;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-remove:hover {
  background: rgba(255, 71, 87, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border2);
}

.btn-outline {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(61, 142, 248, 0.1);
}

.btn-solid {
  padding: 10px 24px;
  background: #b8860b; /* Golden brown like image */
  border: none;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-solid:hover {
  background: #9b7109;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.note-text {
  font-size: 12px;
  color: var(--text2);
}

/* Data Tables */
.table-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.table-responsive {
  overflow-x: auto;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
}

.data-table th, .data-table td {
  padding: 10px;
  border: 1px solid var(--border2);
}

.data-table th {
  background: var(--bg2);
  font-weight: 700;
  color: var(--text);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}

/* Sidebar */
.sidebar-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.contact-box {
  background: rgba(245, 166, 35, 0.1);
  border-color: rgba(245, 166, 35, 0.3);
  text-align: center;
}

.contact-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.contact-phone {
  font-size: 20px;
  font-weight: 800;
  color: #ff4757;
}

.box-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.note-box p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
  margin: 0;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-list li {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Result section placeholder */
.result-container {
  background: var(--bg2);
  border: 1px dashed var(--blue);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: center;
}

@media (max-width: 992px) {
  .bhxh-layout {
    flex-direction: column;
  }
  .bhxh-main, .bhxh-sidebar {
    width: 100%;
  }
  .period-row {
    flex-wrap: wrap;
  }
  .col-period { width: 100%; flex: none; margin-bottom: 10px; }
  .col-salary, .col-type { flex: 1; }
  .col-stt { display: none; }
  .form-grid-header { display: none; }
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: var(--bg2);
  color: var(--text);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid #ff4757;
  font-family: var(--sans);
  font-size: 14px;
  animation: toastSlideIn 0.3s ease forwards;
  max-width: 350px;
  line-height: 1.4;
}

.toast.success {
  border-left-color: #2ed573;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #result-container, #result-container * {
    visibility: visible;
  }
  #result-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: white !important;
    color: black !important;
  }
  .toast-container, .float-home-btn, .theme-float {
    display: none !important;
  }
  /* Expand steps for printing */
  #steps-container {
    max-height: none !important;
    overflow: visible !important;
  }
  #steps-gradient, #btn-toggle-steps {
    display: none !important;
  }
  /* Hide download and print buttons in print */
  #result-container a[href^="javascript"] {
    display: none !important;
  }
}
