/* config.css */
:root {
  --primary-color: #007aff;
  --success-color: #34c759;
  --error-color: #ff3b30; 
  --warning-color: #ff9500;
}

body {
  background: linear-gradient(135deg, #e0e7ef 0%, #f7f9fa 100%);
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  margin: 0;
  color: #222;
  min-height: 100vh;
}
.container {
  max-width: 480px;
  margin: 48px auto 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.09);
  padding: 36px 24px 28px 24px;
}
.logo img {
  max-height: 60px;
  display: block;
  margin-bottom: 16px;
}
h1 {
  color: #222;
  font-size: 2.1em;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 28px;
}
h2, h3 {
  color: #3498db;
  margin-top: 0.5em;
}
.section {
  margin-bottom: 18px;
}
.section h2 {
  font-size: 1.1em;
  color: #3498db;
  margin-bottom: 8px;
}
.form-group {
  margin-bottom: 22px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 1.08em;
}
.form-control {
  width: 100%;
  padding: 12px 12px;
  border-radius: 8px;
  font-size: 1.08em;
  background: #f4f7fa;
  border: 1.5px solid #e0e0e0;
  box-sizing: border-box;
  transition: border 0.2s;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 8px;
  font-size: 1.08em;
  background: #f4f7fa;
  border: 1.5px solid #e0e0e0;
  box-sizing: border-box;
  transition: border 0.2s;
}
.form-control:focus,
.form-group input:focus, .form-group select:focus {
  border: 1.5px solid #3498db;
  outline: none;
}
.result-box {
  background: #f6faff;
  border: 1.5px solid #d0e3fa;
  border-radius: 10px;
  padding: 20px 14px;
  margin-top: 14px;
  font-size: 1.12em;
  min-height: 32px;
}
.generate-btn {
  display: block;
  width: 100%;
  margin: 32px auto 0 auto;
  background: linear-gradient(90deg, #3498db 60%, #007aff 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px 0;
  font-size: 1.18em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(52,152,219,0.10);
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 1px;
}
.generate-btn:hover {
  background: linear-gradient(90deg, #007aff 60%, #3498db 100%);
  box-shadow: 0 4px 18px rgba(52,152,219,0.13);
}
.generate-btn:disabled {
  background: #b2bec3;
  cursor: not-allowed;
}
.custom-alert {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #fffbe6;
  color: #e67e22;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 1em;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.custom-alert.visible {
  opacity: 1;
  pointer-events: auto;
}
.loading-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
.loading-content {
  text-align: center;
}
.loader-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 0 auto 8px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.highlight {
  color: #e67e22;
  font-weight: bold;
}
.footer {
  text-align: center;
  color: #aaa;
  font-size: 0.95em;
  margin-top: 24px;
}

#personnel-section {
  margin-top: 28px;
  margin-bottom: 28px;
  border-top: 1.5px solid #eee;
  padding-top: 22px;
}

#personnel-section h3 {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 16px;
}

.personnel-item {
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.personnel-item .form-group {
  margin-bottom: 0;
}

.personnel-item .remove-personnel-btn {
  justify-self: center;
  margin-bottom: 8px; /* Aligns button better with inputs */
}

.personnel-item select, .personnel-item input {
  flex: 1;
}

.tertiary-btn {
  background: none;
  border: 1.5px dashed #ccc;
  color: #555;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95em;
}

.tertiary-btn:hover {
  background: #f4f7fa;
  border-color: #aaa;
  color: #222;
}

.remove-personnel-btn {
  background: #ffeded;
  border: 1px solid #ffc8c8;
  color: #ff3b30;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: bold;
  line-height: 26px;
  text-align: center;
}

@media (max-width: 600px) {
  .container {
    max-width: 98vw;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 6vw 18px 6vw;
  }
  h1 {
    font-size: 1.3em;
    margin-bottom: 18px;
  }
  .form-group input, .form-group select {
    font-size: 1em;
    padding: 10px 8px;
  }
  .generate-btn {
    font-size: 1em;
    padding: 13px 0;
  }
  .result-box {
    font-size: 1em;
    padding: 14px 6px;
  }
}



