/* ============================================================
   Jobs Page Styles
   ============================================================ */

/* ============================================================
   Page Layout & Header
   ============================================================ */

.jobs-page {
  max-width: 1200px;
  margin: 0 auto;
}

.jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.jobs-title h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 4px;
}

.jobs-title h1::before {
  content: '';
  display: inline-flex;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-md);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z'/%3E%3C/svg%3E");
  mask-size: 20px;
  -webkit-mask-size: 20px;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.jobs-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================================
   Empty State
   ============================================================ */

.jobs-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.jobs-empty-state .empty-icon {
  color: var(--color-primary);
  opacity: 0.6;
  margin-bottom: 24px;
}

.jobs-empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
}

.jobs-empty-state p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 24px;
  max-width: 320px;
}

/* ============================================================
   Jobs Grid & Cards
   ============================================================ */

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.job-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.job-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.job-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.job-card-menu {
  padding: 4px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.job-card-menu:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}

.job-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px;
  line-height: 1.4;
}

.job-card-company {
  font-size: 14px;
  color: var(--color-primary);
  margin: 0 0 2px;
  font-weight: 500;
}

.job-card-location {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.job-card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.keyword-tag {
  display: inline-flex;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
}

.keyword-more {
  display: inline-flex;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.job-card-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.job-card-actions {
  display: flex;
  gap: 4px;
}

/* ============================================================
   Button Icons
   ============================================================ */

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}

.btn-icon-danger:hover {
  background: #FEE2E2;
  color: #DC2626;
}

/* ============================================================
   Job Detail Page
   ============================================================ */

.job-detail-page {
  max-width: 900px;
  margin: 0 auto;
}

.job-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-back:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-primary-light);
}

.job-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.job-status-select {
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-bg-card);
  border: 2px solid;
  border-radius: var(--radius-md);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.btn-danger {
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: #FECACA;
}

/* ============================================================
   Job Info Section
   ============================================================ */

.job-info-section {
  margin-bottom: 32px;
}

.job-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px;
}

.job-detail-company {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 4px;
}

.job-detail-location {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

.job-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
}

.job-detail-link:hover {
  text-decoration: underline;
}

/* ============================================================
   Tabs Navigation
   ============================================================ */

.job-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.job-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

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

.job-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.job-tab-panel {
  display: none;
}

.job-tab-panel.active {
  display: block;
}

/* ============================================================
   Overview Tab
   ============================================================ */

.job-overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.job-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
}

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

.job-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.job-list.checkmarks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
}

.job-list.stars li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #F59E0B;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
}

.job-list.bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-text-muted);
  border-radius: 50%;
}

/* Meta Grid */
.job-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px;
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
}

.job-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

/* Interview Process */
.interview-process {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.process-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
}

.step-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

/* Keywords */
.keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Job Description */
.job-description {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  background: var(--color-bg-page);
  padding: 16px;
  border-radius: var(--radius-md);
  max-height: 400px;
  overflow-y: auto;
}

/* ============================================================
   Notes Tab
   ============================================================ */

.job-notes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notes-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.notes-empty {
  padding: 40px;
  text-align: center;
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
}

.notes-empty p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.note-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-round {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.note-type {
  font-size: 12px;
  padding: 2px 8px;
  background: var(--color-bg-page);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}

.note-actions {
  display: flex;
  gap: 4px;
}

.note-interviewer {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

.note-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.note-date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================================
   Questions Tab
   ============================================================ */

.job-questions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.questions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.questions-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.questions-empty {
  padding: 40px;
  text-align: center;
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
}

.questions-empty p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 400px;
}

.questions-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.questions-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px;
}

.section-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.question-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 8px;
  line-height: 1.5;
}

.question-context {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  font-style: italic;
}

/* ============================================================
   Modal Styles
   ============================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}

.modal-body {
  padding: 24px;
  background: var(--color-bg-elevated);
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  color: var(--color-text);
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-help {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 4px 0 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

/* ============================================================
   Toast Notifications
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--color-text);
  color: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  background: #059669;
}

.toast-error {
  background: #DC2626;
}

.toast-info {
  background: #0284C7;
}

/* ============================================================
   Spinner Animation
   ============================================================ */

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

.spinner {
  animation: spin 1s linear infinite;
}

/* ============================================================
   Mobile Responsive
   ============================================================ */

@media (max-width: 768px) {
  .jobs-header {
    flex-direction: column;
    align-items: stretch;
  }

  .jobs-header .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .job-detail-header {
    flex-direction: column;
    align-items: stretch;
  }

  .job-detail-actions {
    justify-content: space-between;
  }

  .job-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-form-grid {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    transform: translateY(100%);
  }

  .toast.show {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .jobs-title h1 {
    font-size: 22px;
  }

  .job-detail-title {
    font-size: 22px;
  }

  .job-detail-actions {
    flex-direction: column;
  }

  .job-detail-actions > * {
    width: 100%;
  }

  .job-status-select {
    width: 100%;
  }

  .notes-header,
  .questions-header {
    flex-direction: column;
    align-items: stretch;
  }

  .notes-header .btn-secondary,
  .questions-header .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Practice Sessions Tab
   ============================================================ */

.job-practice-sessions {
  padding: 24px 0;
}

.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.practice-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.practice-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card.trend-improving .stat-value { color: #10B981; }
.stat-card.trend-declining .stat-value { color: #EF4444; }
.stat-card.trend-stable .stat-value { color: #6B7280; }

.practice-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.session-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.session-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-question {
  font-weight: 500;
  color: var(--color-text);
}

.session-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.session-score {
  font-size: 18px;
  font-weight: 700;
  min-width: 48px;
  text-align: center;
}

.session-score.score-high { color: #10B981; }
.session-score.score-mid { color: #F59E0B; }
.session-score.score-low { color: #EF4444; }

.practice-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
}

.practice-empty svg {
  opacity: 0.5;
  margin-bottom: 16px;
}

.practice-empty h4 {
  margin: 0 0 8px;
  color: var(--color-text);
}

.practice-empty p {
  margin: 0 0 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile responsiveness for Practice Sessions */
@media (max-width: 768px) {
  .practice-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .practice-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .practice-header .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Documents Tab
   ============================================================ */

.job-documents {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.documents-section {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.documents-section .section-header {
  margin-bottom: 20px;
}

.documents-section .section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px;
}

.documents-section .section-hint {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Attached Resume */
.attached-resume {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
  gap: 16px;
}

.resume-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
}

.resume-name {
  font-weight: 500;
  color: var(--color-text);
}

.resume-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* No Resume State */
.no-resume {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  color: var(--color-text-muted);
}

.no-resume svg {
  opacity: 0.5;
  margin-bottom: 12px;
}

.no-resume p {
  margin: 0 0 16px;
  font-size: 14px;
}

/* Resume Loading State */
.resume-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  color: var(--color-text-muted);
  gap: 12px;
}

.resume-loading .loading-spinner {
  width: 32px;
  height: 32px;
}

.resume-loading p {
  margin: 0;
  font-size: 14px;
}

/* Documents Tip */
.documents-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.documents-tip svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 1px;
}

/* Resume Selector Modal */
.modal-sm {
  max-width: 400px;
}

.resume-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-bg-page);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.resume-option:hover {
  border-color: var(--color-primary-light);
  background: var(--color-bg-card);
}

.resume-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}

.resume-option-name {
  font-weight: 500;
  color: var(--color-text);
}

.resume-default-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
}

/* Mobile responsiveness for Documents Tab */
@media (max-width: 480px) {
  .attached-resume {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .resume-actions {
    justify-content: flex-end;
  }
}

/* ============================================================
   Prep Checklist Tab
   ============================================================ */

.job-checklist {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.checklist-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--color-bg-page);
  border-radius: var(--radius-full);
  overflow: hidden;
  max-width: 300px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, #10B981 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.checklist-item:hover {
  border-color: var(--color-primary-light);
}

.checklist-item.completed {
  background: var(--color-bg-page);
}

.checklist-item.completed .checklist-text {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.checklist-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checklist-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  transition: all 0.15s ease;
}

.checklist-checkbox input:checked ~ .checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checklist-checkbox input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist-checkbox:hover .checkmark {
  border-color: var(--color-primary);
}

.checklist-text {
  flex: 1;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.4;
}

.checklist-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.checklist-item:hover .checklist-actions {
  opacity: 1;
}

.btn-icon-sm {
  width: 28px;
  height: 28px;
}

.checklist-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.checklist-empty svg {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}

.checklist-empty h4 {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.checklist-empty p {
  margin: 0 0 20px 0;
  color: var(--color-text-secondary);
}

.checklist-empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.checklist-empty-actions .btn-primary,
.checklist-empty-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.checklist-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.checklist-tip svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 1px;
}

/* Mobile responsiveness for Checklist Tab */
@media (max-width: 480px) {
  .checklist-header {
    flex-direction: column;
    align-items: stretch;
  }

  .checklist-progress {
    min-width: auto;
  }

  .checklist-header .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .checklist-actions {
    opacity: 1;
  }
}

/* ============================================================
   Company Intel Tab
   ============================================================ */

.job-intel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.intel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.intel-header-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
}

.intel-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.intel-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.intel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--color-text-muted);
}

.intel-loading .loading-spinner {
  width: 32px;
  height: 32px;
}

#intelContentArea {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 0px 10px 10px 10px;
}

.intel-section {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  gap: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.intel-section:last-child {
  margin-bottom: 0;
}

.intel-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
}

.intel-section textarea {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  color: var(--color-text);
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.intel-section textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.intel-subsection {
  margin-top: 16px;
}

.intel-subsection label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

/* Interview Rounds */
.intel-rounds-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.intel-round-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.intel-round-content {
  flex: 1;
}

.intel-round-content strong {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.intel-round-content p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 4px 0 0;
  line-height: 1.4;
}

.intel-round-tips {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Company Values */
.intel-values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 32px;
}

.intel-value-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border-radius: var(--radius-full);
}

.value-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.value-remove:hover {
  background: rgba(0, 0, 0, 0.1);
}

.intel-add-value {
  display: flex;
  gap: 8px;
  align-items: center;
}

.intel-add-value input {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  color: var(--color-text);
}

.intel-add-value input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Research Links */
.intel-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.intel-link-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.intel-link-content {
  flex: 1;
}

.intel-link-url {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 4px;
  word-break: break-all;
}

.intel-link-url:hover {
  text-decoration: underline;
}

.intel-link-notes {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
}

/* Empty States */
.intel-empty-state {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 20px;
  margin: 0;
}

/* Actions */
.intel-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* Mobile responsiveness for Intel Tab */
@media (max-width: 480px) {
  .intel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .intel-header-actions {
    width: 100%;
  }

  .intel-header-actions button {
    flex: 1;
    justify-content: center;
  }

  .intel-section {
    padding: 16px;
  }

  .intel-add-value {
    flex-direction: column;
    align-items: stretch;
  }

  .intel-add-value input {
    width: 100%;
  }

  .intel-add-value button {
    width: 100%;
    justify-content: center;
  }

  .intel-actions {
    justify-content: stretch;
  }

  .intel-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Loading States
   ============================================================ */

.jobs-loading,
.job-detail-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 40px;
}

.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--color-text-muted, #6b7280);
}

.loading-placeholder p {
  font-size: 14px;
  margin: 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color, #e5e7eb);
  border-top-color: var(--color-primary, #0f766e);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   Skills Analysis Section (Documents Tab)
   ============================================================ */

.skills-analysis-placeholder {
  display: flex;
  justify-content: center;
  padding: 32px 20px;
}

.skills-analysis-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 20px;
  color: var(--color-text-muted);
}

.skills-analysis-loading p {
  font-size: 14px;
  margin: 0;
}

.skills-analysis-error {
  text-align: center;
  padding: 32px 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Skills Analysis Container */
.skills-analysis {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Score Header */
.skills-analysis-header {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
}

.skills-score-circle {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.score-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle-bg {
  fill: none;
  stroke: #E5E7EB;
  stroke-width: 8;
}

.score-circle-fill {
  fill: none;
  stroke: var(--score-color);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
}

.score-percent {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.skills-score-info {
  flex: 1;
}

.skills-score-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
}

.score-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
}

.analysis-timestamp {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

/* Skills Section */
.skills-section {
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.skills-section h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 16px;
}

.skills-section h4 svg {
  flex-shrink: 0;
}

/* Matching Skills */
.matching-skills h4 {
  color: #10B981;
}

.matching-skills h4 svg {
  color: #10B981;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: help;
  transition: all 0.15s ease;
}

.skill-badge:hover {
  border-color: #10B981;
  background: #D1FAE5;
}

.skill-badge-strong {
  border-color: #10B981;
  background: #D1FAE5;
}

.skill-badge-partial {
  border-color: #F59E0B;
  background: #FEF3C7;
}

.skill-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.skill-strength {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  background: white;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-badge-strong .skill-strength {
  color: #10B981;
}

.skill-badge-partial .skill-strength {
  color: #F59E0B;
}

/* Missing Skills */
.missing-skills h4 {
  color: #EF4444;
}

.missing-skills h4 svg {
  color: #EF4444;
}

.skill-gaps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-gap-item {
  padding: 12px;
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-border);
}

.skill-gap-item.skill-gap-required {
  border-left-color: #EF4444;
  background: #FEE2E2;
}

.skill-gap-item.skill-gap-preferred {
  border-left-color: #F59E0B;
  background: #FEF3C7;
}

.skill-gap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.skill-gap-header .skill-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.skill-importance {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: white;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-gap-required .skill-importance {
  color: #EF4444;
}

.skill-gap-preferred .skill-importance {
  color: #F59E0B;
}

.skill-suggestion {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Expandable Sections */
.expandable-section {
  cursor: pointer;
}

.expandable-section summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  user-select: none;
}

.expandable-section summary::-webkit-details-marker {
  display: none;
}

.expandable-section summary svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.expandable-section summary::after {
  content: '';
  margin-left: auto;
  width: 16px;
  height: 16px;
  background: var(--color-text-muted);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  transition: transform 0.2s ease;
}

.expandable-section[open] summary::after {
  transform: rotate(180deg);
}

.expandable-content {
  padding-top: 16px;
}

.expandable-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
  white-space: pre-wrap;
}

/* Mobile Responsive for Skills Analysis */
@media (max-width: 768px) {
  .skills-analysis-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .skills-score-circle {
    width: 100px;
    height: 100px;
  }

  .score-number {
    font-size: 28px;
  }

  .score-percent {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .skill-badges {
    gap: 8px;
  }

  .skill-badge {
    font-size: 13px;
    padding: 6px 10px;
  }

  .skill-gap-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Thank-You Note Modal Styles
   ============================================================ */

.thankyou-modal .modal-content {
  max-width: 700px;
}

.thankyou-loading,
.thankyou-error {
  text-align: center;
  padding: 40px 20px;
}

.thankyou-loading .loading-spinner {
  margin: 0 auto 20px;
}

.thankyou-loading p,
.thankyou-error p {
  color: var(--color-text-secondary);
  font-size: 15px;
  margin: 0;
}

.thankyou-error {
  color: var(--color-danger);
}

.thankyou-error button {
  margin-top: 16px;
}

.thankyou-content {
  padding: 0;
}

.thankyou-textarea {
  width: 100%;
  min-height: 300px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  background: var(--color-bg-secondary);
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.thankyou-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg);
}

.thankyou-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.thankyou-actions button {
  flex: 1;
  min-width: 140px;
}

/* Mobile Responsive for Thank-You Modal */
@media (max-width: 768px) {
  .thankyou-modal .modal-content {
    max-width: 95%;
    width: 95%;
  }

  .thankyou-textarea {
    min-height: 250px;
    font-size: 14px;
  }

  .thankyou-actions {
    flex-direction: column;
  }

  .thankyou-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .thankyou-textarea {
    min-height: 200px;
    padding: 12px;
  }

  .thankyou-loading,
  .thankyou-error {
    padding: 30px 16px;
  }
}

/* ============================================================
   AI-Generated Intel Preview Modal
   ============================================================ */

.intel-preview-modal {
  max-width: 640px;
}

.intel-preview-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.intel-merge-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-bg-highlight, #FFFBEB);
  border: 1px solid var(--color-warning-border, #FCD34D);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.intel-merge-notice svg {
  flex-shrink: 0;
  color: var(--color-warning, #D97706);
  margin-top: 1px;
}

.intel-preview-section {
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.intel-preview-section:last-child {
  margin-bottom: 0;
}

.intel-preview-header {
  margin-bottom: 12px;
}

.intel-preview-header label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.intel-preview-header input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.intel-preview-section textarea {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  color: var(--color-text);
  resize: vertical;
  font-family: inherit;
}

.intel-preview-section textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.intel-preview-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intel-preview-link {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.preview-link-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.preview-link-url {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  word-break: break-word;
}

.preview-link-url:hover {
  text-decoration: underline;
}

.preview-link-notes {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

.preview-link-remove {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.preview-link-remove:hover {
  opacity: 1;
}

.intel-empty-state {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 20px;
  margin: 0;
}

/* Mobile Responsive for Intel Preview Modal */
@media (max-width: 768px) {
  .intel-preview-modal {
    max-width: 95%;
    width: 95%;
  }

  .intel-preview-section {
    padding: 12px;
  }

  .intel-preview-section textarea {
    font-size: 16px; /* Prevent iOS zoom */
  }
}

@media (max-width: 480px) {
  .intel-merge-notice {
    font-size: 12px;
    padding: 10px 12px;
  }

  .intel-preview-header label {
    font-size: 13px;
  }

  .preview-link-url {
    font-size: 13px;
  }
}

/* ============================================================
   Interview Intel Tab Styles
   ============================================================ */

.interview-intel {
  padding: 24px 0;
}

.interview-intel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.interview-intel-header-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.interview-intel-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.interview-intel-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.interview-intel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
  gap: 16px;
}

.interview-intel-section {
  margin-bottom: 28px;
}

.interview-intel-section h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.interview-intel-section textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
}

.interview-intel-section textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.interview-intel-meta {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.interview-intel-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.interview-intel-meta-item .meta-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.interview-intel-meta-item .meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.interview-intel-empty {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 24px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  margin: 0;
}

/* Interview Rounds */
.interview-rounds-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interview-round-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.interview-round-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.interview-round-number {
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.interview-round-type {
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}

.interview-round-duration {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: auto;
}

.interview-round-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.interview-round-description,
.interview-round-by,
.interview-round-format {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 4px 0;
}

.interview-round-expect,
.interview-round-tips {
  margin-top: 12px;
}

.interview-round-expect strong,
.interview-round-tips strong {
  font-size: 13px;
  color: var(--color-text);
}

.interview-round-expect ul,
.interview-round-tips ul {
  margin: 8px 0 0 16px;
  padding: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.interview-round-expect li,
.interview-round-tips li {
  margin-bottom: 4px;
}

/* Interview Insights */
.interview-insight-group {
  margin-bottom: 16px;
}

.interview-insight-group strong {
  display: block;
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.interview-insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.insight-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

.insight-tag.theme { background: #DBEAFE; color: #1E40AF; }
.insight-tag.focus { background: #D1FAE5; color: #065F46; }
.insight-tag.culture { background: #FEF3C7; color: #92400E; }
.insight-tag.warning { background: #FEE2E2; color: #991B1B; }

.interview-insight-list {
  margin: 0 0 0 16px;
  padding: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.interview-insight-list li {
  margin-bottom: 4px;
}

/* Interview Questions */
.interview-questions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.interview-questions-header h4 {
  margin: 0;
}

.interview-questions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interview-questions-category {
  margin-bottom: 16px;
}

.interview-questions-category .category-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.interview-question-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.interview-question-header {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.question-difficulty {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}

.question-difficulty.difficulty-easy { background: #D1FAE5; color: #065F46; }
.question-difficulty.difficulty-medium { background: #FEF3C7; color: #92400E; }
.question-difficulty.difficulty-hard { background: #FEE2E2; color: #991B1B; }

.question-round {
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
}

.interview-question-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 8px;
  font-style: italic;
}

.interview-question-rationale {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.interview-question-tips {
  margin-top: 8px;
  font-size: 13px;
}

.interview-question-tips summary {
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 500;
}

.interview-question-tips summary:hover {
  text-decoration: underline;
}

.interview-question-tips p {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  padding-left: 12px;
  border-left: 2px solid var(--color-border);
}

.practice-question-btn {
  margin-top: 12px;
}

/* Research Sources */
.interview-intel-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interview-intel-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.interview-intel-source:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
}

.interview-intel-source .source-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg-secondary);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Mobile Responsive for Interview Intel */
@media (max-width: 768px) {
  .interview-intel-header {
    flex-direction: column;
  }

  .interview-intel-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .interview-intel-header-actions .btn-secondary,
  .interview-intel-header-actions .btn-primary {
    flex: 1;
    justify-content: center;
  }

  .interview-intel-meta {
    flex-wrap: wrap;
    gap: 16px;
  }

  .interview-questions-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .interview-round-header {
    flex-wrap: wrap;
  }

  .interview-round-duration {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }

  .interview-intel-section textarea {
    font-size: 16px; /* Prevent iOS zoom */
  }
}

/* ============================================================
   Dark Theme Modal Styles
   ============================================================ */

[data-theme="dark"] .modal-content {
  background: var(--color-bg-elevated);
  border-color: var(--color-border);
}

[data-theme="dark"] .modal-header {
  background: var(--color-bg-elevated);
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .modal-header h3 {
  color: var(--color-text);
}

[data-theme="dark"] .modal-body {
  background: var(--color-bg-elevated);
}

[data-theme="dark"] .modal-footer {
  background: var(--color-bg-elevated);
  border-top-color: var(--color-border);
}

[data-theme="dark"] .form-group label {
  color: var(--color-text-secondary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: var(--color-bg-muted);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: var(--color-text-subtle);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
  border-color: var(--color-primary);
}

[data-theme="dark"] .form-help {
  color: var(--color-text-muted);
}
