/* Coach Salary Bot — Minimal Internal Tool Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1117;
  color: #e1e4e8;
  min-height: 100vh;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Header */
header {
  margin-bottom: 24px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0f6fc;
}

.subtitle {
  font-size: 0.85rem;
  color: #8b949e;
  margin-top: 4px;
}

/* Input Section */
.input-section {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

select, textarea {
  width: 100%;
  background: #0d1117;
  color: #e1e4e8;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

select:focus, textarea:focus {
  outline: none;
  border-color: #58a6ff;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

textarea::placeholder {
  color: #484f58;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #238636;
  color: #fff;
  border: 1px solid #2ea043;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  justify-content: center;
}

.btn-primary:hover {
  background: #2ea043;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Chat Container */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-message {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeIn 0.2s ease;
}

.bot-message.error {
  border-color: #f85149;
  background: #1a0e0e;
  color: #f85149;
}

.bot-message.success {
  border-color: #2ea043;
  background: #0e1a0e;
  color: #56d364;
}

.bot-message.info {
  border-color: #58a6ff;
  background: #0e1521;
}

.user-message {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #93c5fd;
  align-self: flex-end;
  max-width: 80%;
  animation: fadeIn 0.2s ease;
}

/* Candidate Buttons */
.candidates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.candidates button {
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.candidates button:hover {
  background: #30363d;
  border-color: #58a6ff;
  color: #58a6ff;
}

.candidates button.selected {
  background: #30363d;
  border-color: #58a6ff;
  color: #58a6ff;
  font-weight: 600;
}

/* Wizard Controls */
.wizard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #30363d;
}

.wizard-controls button {
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.wizard-controls button:hover:not(:disabled) {
  background: #30363d;
  border-color: #8b949e;
}

.wizard-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wizard-controls .wizard-submit {
  background: #238636;
  border-color: #2ea043;
  color: #fff;
  font-weight: 600;
}

.wizard-controls .wizard-submit:hover:not(:disabled) {
  background: #2ea043;
  border-color: #3fb950;
}

.wizard-progress {
  font-size: 0.8rem;
  color: #8b949e;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #30363d;
}

.confirm-actions button {
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.confirm-actions button:hover {
  background: #30363d;
  border-color: #8b949e;
}

.confirm-actions .wizard-submit {
  background: #238636;
  border-color: #2ea043;
  color: #fff;
  font-weight: 600;
}

.confirm-actions .wizard-submit:hover {
  background: #2ea043;
  border-color: #3fb950;
}

/* Diff Table */
.diff-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.85rem;
}

.diff-table th {
  text-align: left;
  font-weight: 600;
  color: #8b949e;
  padding: 6px 8px;
  border-bottom: 1px solid #30363d;
}

.diff-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #21262d;
}

.diff-update {
  color: #58a6ff;
}

.diff-append {
  color: #56d364;
}

.diff-skip {
  color: #f0883e;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #30363d;
  border-top-color: #58a6ff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.2s;
  backdrop-filter: blur(2px);
}
.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: fadeIn 0.2s ease;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #30363d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  font-size: 1.1rem;
  margin: 0;
  color: #f0f6fc;
}
.modal-close {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.modal-close:hover {
  color: #c9d1d9;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
}
