/* DISC Assessment Frontend Styles */
.disc-test-wrapper,
.disc-candidate-dashboard,
.disc-company-dashboard,
.disc-company-registration {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #3c4043;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.disc-card {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.disc-btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.disc-btn-primary {
  background-color: #1a73e8;
  color: white;
}

.disc-btn-primary:hover {
  background-color: #1557b0;
  color: white;
}

.disc-btn-secondary {
  background-color: #f8f9fa;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.disc-btn-secondary:hover {
  background-color: #f1f3f4;
}

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

.disc-error {
  background-color: #fce8e6;
  color: #d93025;
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #f8d7da;
}

.disc-success {
  background-color: #dcfce7;
  color: #166534;
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #bbf7d0;
}

/* Enhanced Styling */
.disc-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  color: white;
  border-radius: 12px;
}

.disc-header h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 0;
}

.disc-header p {
  font-size: 18px;
  opacity: 0.9;
  margin: 0;
}

.disc-progress {
  width: 100%;
  height: 12px;
  background: #f1f3f4;
  border-radius: 6px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.disc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1a73e8 0%, #1557b0 100%);
  transition: width 0.4s ease;
  border-radius: 6px;
}

.disc-question {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #1a73e8;
}

.disc-description {
  color: #5f6368;
  margin-bottom: 32px;
  font-size: 16px;
}

.disc-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.disc-option:hover {
  border-color: #1a73e8;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.disc-option.selected {
  border-color: #1a73e8;
  background: #e8f0fe;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.disc-option input[type="radio"] {
  margin: 0;
  width: 20px;
  height: 20px;
  accent-color: #1a73e8;
}

.disc-option-content {
  flex: 1;
}

.disc-option-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
  color: #1a73e8;
}

.disc-option-desc {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.5;
}

.disc-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e1e5e9;
}

.disc-counter {
  color: #5f6368;
  font-size: 14px;
  font-weight: 500;
}

.disc-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.disc-btn-primary {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.disc-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1557b0 0%, #0f4c8c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
  color: white;
}

.disc-btn-secondary {
  background: #f8f9fa;
  color: #3c4043;
  border: 2px solid #dadce0;
}

.disc-btn-secondary:hover:not(:disabled) {
  background: #f1f3f4;
  border-color: #1a73e8;
  color: #1a73e8;
}

.disc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.disc-complete {
  text-align: center;
  padding: 60px 40px;
}

.disc-complete h2 {
  color: #137333;
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 600;
}

.disc-complete p {
  font-size: 18px;
  color: #5f6368;
  margin-bottom: 16px;
}

/* Enhanced Dashboard Styles */
.disc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.disc-stat-card {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.disc-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.disc-stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.disc-stat-label {
  color: #5f6368;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.disc-section {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.disc-section h2 {
  color: #1a73e8;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: 0;
}

.disc-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.disc-form-group {
  margin-bottom: 24px;
}

.disc-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #3c4043;
  font-size: 14px;
}

.disc-form-group input,
.disc-form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #dadce0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  background: #fff;
}

.disc-form-group input:focus,
.disc-form-group select:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.disc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.disc-table th,
.disc-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e1e5e9;
}

.disc-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #3c4043;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.disc-table tr:hover {
  background: #f8f9ff;
}

.disc-scores {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.disc-score {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.disc-score.d { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.disc-score.i { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; }
.disc-score.s { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.disc-score.c { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }

.disc-primary-type {
  font-weight: 700;
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 8px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.disc-primary-type.d { background: #fef2f2; color: #dc2626; border: 2px solid #fecaca; }
.disc-primary-type.i { background: #fffbeb; color: #d97706; border: 2px solid #fef3c7; }
.disc-primary-type.s { background: #f0fdf4; color: #16a34a; border: 2px solid #dcfce7; }
.disc-primary-type.c { background: #eff6ff; color: #2563eb; border: 2px solid #dbeafe; }

/* Loading States */
.disc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: #5f6368;
  font-size: 16px;
}

.disc-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1a73e8;
  border-radius: 50%;
  animation: disc-spin 1s linear infinite;
  margin-right: 12px;
}

@keyframes disc-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .disc-test-wrapper,
  .disc-candidate-dashboard,
  .disc-company-dashboard,
  .disc-company-registration {
    padding: 16px;
  }

  .disc-header {
    padding: 24px 16px;
  }

  .disc-header h1 {
    font-size: 28px;
  }

  .disc-header p {
    font-size: 16px;
  }

  .disc-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .disc-stat-card {
    padding: 24px;
  }

  .disc-stat-number {
    font-size: 36px;
  }

  .disc-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .disc-section {
    padding: 24px 16px;
  }

  .disc-table {
    font-size: 14px;
  }

  .disc-table th,
  .disc-table td {
    padding: 12px 8px;
  }

  .disc-scores {
    flex-direction: column;
    gap: 4px;
  }

  .disc-option {
    padding: 16px;
  }

  .disc-question {
    font-size: 20px;
  }

  .disc-navigation {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .disc-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .disc-header h1 {
    font-size: 24px;
  }

  .disc-question {
    font-size: 18px;
  }

  .disc-option {
    padding: 12px;
    gap: 12px;
  }

  .disc-option-title {
    font-size: 14px;
  }

  .disc-option-desc {
    font-size: 13px;
  }
}
