/* ==========================================================================
   Open English Professional & Industry Player - 100% Visual Parity
   ========================================================================== */

.industry-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 16px;
  animation: indFadeIn 0.2s ease-out;
  box-sizing: border-box;
}

.industry-modal-overlay.active {
  display: flex;
}

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

.industry-card {
  width: 640px;
  max-width: 95vw;
  max-height: 92vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: indSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes indSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.ind-header {
  background-color: #0079ff;
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.ind-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
}

.ind-btn-track-switch {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ind-btn-track-switch:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ind-btn-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.ind-btn-close:hover {
  opacity: 0.8;
}

/* Scroll Container */
.ind-scroll-container {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   TRACK SELECTOR VIEW (Select up to 3 career tracks)
   -------------------------------------------------------------------------- */
.ind-selector-view {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ind-selector-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.ind-selector-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.ind-tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ind-track-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease;
  position: relative;
}

.ind-track-card:hover {
  border-color: #0079ff;
  background: #f0f7ff;
}

.ind-track-card.selected {
  border-color: #0079ff;
  background: #f0f7ff;
  box-shadow: 0 0 0 1px #0079ff;
}

.ind-track-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.ind-track-info {
  flex: 1;
}

.ind-track-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.ind-track-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

.ind-track-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #ffffff;
  flex-shrink: 0;
}

.ind-track-card.selected .ind-track-checkbox {
  background: #0079ff;
  border-color: #0079ff;
}

.ind-selector-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
}

.ind-selector-counter {
  font-size: 13.5px;
  font-weight: 600;
  color: #0079ff;
}

.ind-btn-save-tracks {
  background-color: #0079ff;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 10px 32px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ind-btn-save-tracks:hover {
  background-color: #0066d6;
}

/* --------------------------------------------------------------------------
   CASE STUDY & SIMULATOR VIEW
   -------------------------------------------------------------------------- */
.ind-study-view {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ind-study-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.ind-study-category-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.ind-study-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.ind-study-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

/* Case Study Box */
.ind-case-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ind-case-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.ind-case-context {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.ind-case-objective {
  background: #ffffff;
  border-left: 3px solid #0079ff;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0369a1;
  border-radius: 0 6px 6px 0;
}

/* Communication & Email Simulator */
.ind-sim-box {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.ind-sim-header {
  background: #f1f5f9;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.ind-sim-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ind-sim-prompt {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.ind-sim-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ind-sim-opt {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: pre-line;
  text-align: left;
}

.ind-sim-opt:hover:not(:disabled) {
  border-color: #0079ff;
  background: #f0f7ff;
}

.ind-sim-opt.excellent {
  border-color: #10b981;
  background: #ecfdf5;
}

.ind-sim-opt.poor {
  border-color: #f59e0b;
  background: #fffbeb;
}

.ind-sim-opt.unacceptable {
  border-color: #ef4444;
  background: #fef2f2;
}

.ind-sim-feedback {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  display: none;
}

.ind-sim-feedback.show-excellent {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.ind-sim-feedback.show-poor {
  display: block;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.ind-sim-feedback.show-unacceptable {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Formal Corporate Vocabulary Table */
.ind-vocab-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ind-vocab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.ind-vocab-table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.ind-vocab-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.ind-vocab-term-cell {
  font-weight: 700;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ind-vocab-audio-btn {
  background: #e0f2fe;
  border: none;
  color: #0284c7;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.ind-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ind-footer-rewards {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ind-footer-xp {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 13.5px;
  font-weight: 800;
  color: #ca8a04;
}

.ind-footer-hours {
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
}

.ind-btn-finish {
  background-color: #0079ff;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 10px 32px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 121, 255, 0.3);
  transition: background 0.15s ease, transform 0.15s ease;
}

.ind-btn-finish:hover {
  background-color: #0066d6;
  transform: translateY(-1px);
}
