/* AICVs Resume Scanner Styles */

:root {
  --skin-color: #8224e3;
  --skin-color-hover: #8d4bcf;
  --skin-secondary-color: #e3f7f5;
}

.text-left {
  text-align: left !important;
}
.text-center {
  text-align: center !important;
}
.text-right {
  text-align: right !important;
}
.hidden {
  display: none;
}

.aicvs-container {
  margin: 0 auto;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  color: #000;
  position: relative;
  overflow: hidden;
}
.aicvs-container > * {
  position: relative;
  z-index: 2;
}

.aicvs-header {
  text-align: center;
  margin-bottom: 40px;
}

.aicvs-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--skin-color);
  letter-spacing: 2px;
  margin-bottom: 20px;
  background: var(--skin-secondary-color);
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
}

.aicvs-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 0 0;
  line-height: 1.2;
}

.aicvs-description {
  font-size: 18px;
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.aicvs-form-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #ddd;
  margin-bottom: 30px;
}

.aicvs-job-description {
  margin-bottom: 30px;
}

.aicvs-job-description label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 16px;
}

.aicvs-job-description textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.aicvs-job-description textarea:focus {
  outline: none;
  border-color: var(--skin-color);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.aicvs-upload-area {
  border: 3px dashed #cbd5e0;
  border-radius: 15px;
  padding: 60px 20px;
  text-align: center;
  background: #f7fafc;
  transition: all 0.3s ease;
  cursor: pointer;
}

.aicvs-upload-area:hover,
.aicvs-upload-area.dragover {
  border-color: var(--skin-color);
  background: var(--skin-secondary-hover);
  transform: translateY(-2px);
}

.aicvs-upload-content h3 {
  font-size: 20px;
  color: #2d3748;
  margin: 20px 0 10px 0;
  font-weight: 600;
}

.aicvs-upload-content p {
  color: #718096;
  margin: 0 0 30px 0;
  font-size: 14px;
}

.aicvs-upload-icon {
  color: #a0aec0;
  margin-bottom: 20px;
}

.aicvs-upload-btn {
  background: var(--skin-color);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.aicvs-upload-btn:hover {
  background: var(--skin-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.aicvs-privacy {
  margin-top: 20px;
  color: #718096;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.aicvs-doc-uploaded .aicvs-upload-icon {
  margin: 0;
}
.aicvs-doc-uploaded,
.aicvs-data-notice {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.aicvs-doc-uploaded,
.aicvs-data-notice.enabled {
  background: #e6fffa;
  border: 1px solid var(--skin-color);
  color: #2d3748;
}

.aicvs-data-notice.disabled {
  background: #fff5f5;
  border: 1px solid #f56565;
  color: #2d3748;
}

.aicvs-data-text {
  margin: 0;
  font-weight: 500;
}
.aicvs-upload-content p.aicvs-data-text {
  margin: 0;
}

/* Steps Progress Container */
.aicvs-steps-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.aicvs-steps-container::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 25px;
  right: 25px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.aicvs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.aicvs-step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #a0aec0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  border: 3px solid #e2e8f0;
}

.aicvs-step.active .aicvs-step-number {
  background: var(--skin-color);
  color: white;
  border-color: var(--skin-color);
}

.aicvs-step.completed .aicvs-step-number {
  background: var(--skin-color);
  color: white;
  border-color: var(--skin-color);
}

.aicvs-step-content h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  transition: color 0.3s ease;
}

.aicvs-step-content p {
  margin: 0;
  font-size: 14px;
  color: #718096;
  line-height: 1.4;
}

.aicvs-step.active .aicvs-step-content h4 {
  color: var(--skin-color);
}

.aicvs-step-status {
  display: none;
}

.aicvs-loading {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.aicvs-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid var(--skin-color);
  border-radius: 50%;
  animation: aicvs-spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.aicvs-loading p {
  color: #4a5568;
  font-weight: 600;
  margin: 0;
}

.aicvs-results {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.aicvs-results-content {
  white-space: pre-wrap;
  line-height: 1.7;
  color: #2d3748;
  font-size: 16px;
}

.aicvs-results-content h1,
.aicvs-results-content h2,
.aicvs-results-content h3 {
  color: #1a202c;
  margin-top: 30px;
  margin-bottom: 15px;
}

.aicvs-results-content ul,
.aicvs-results-content ol {
  margin: 15px 0;
  padding-left: 20px;
}

.aicvs-results-content li {
  margin-bottom: 8px;
}

.aicvs-new-analysis,
.aicvs-try-again {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.aicvs-new-analysis:hover,
.aicvs-try-again:hover {
  background: var(--skin-color-hover);
  transform: translateY(-1px);
}

.aicvs-error {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.aicvs-error-content {
  color: #e53e3e;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 16px;
}

/* Experience Level Selection Styles */
.aicvs-experience-level {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.aicvs-level-header {
  text-align: center;
  margin-bottom: 40px;
}

.aicvs-level-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.aicvs-level-header p {
  font-size: 18px;
  color: #718096;
  margin: 0;
  line-height: 1.6;
}

.aicvs-level-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aicvs-level-option {
  display: flex;
  align-items: center;
  padding: 24px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.aicvs-level-option:hover {
  border-color: var(--skin-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.15);
}

.aicvs-level-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--skin-secondary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--skin-color);
  margin-right: 20px;
}

.aicvs-level-content {
  flex: 1;
}

.aicvs-level-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 8px 0;
}

.aicvs-level-content p {
  font-size: 16px;
  color: #718096;
  margin: 0;
  line-height: 1.5;
}

.aicvs-choose-btn {
  background: var(--skin-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.aicvs-choose-btn:hover {
  background: var(--skin-color-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Enhanced Results Styles */
.aicvs-results {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.aicvs-results-header {
  background: linear-gradient(
    135deg,
    var(--skin-color) 0%,
    var(--skin-color-hover) 100%
  );
  color: white;
  padding: 30px 40px;
  text-align: center;
  border-radius: 15px;
  position: relative;
}

.aicvs-results-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.aicvs-overall-score {
  display: flex;
  justify-content: center;
}

.aicvs-score-circle {
  width: 120px;
  height: 120px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.aicvs-score-number {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.aicvs-score-label {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.aicvs-results-content {
  padding: 40px;
}

.aicvs-analysis-sections {
  display: grid;
  gap: 30px;
}

.aicvs-analysis-section {
  background: #f8f9fa;
  padding: 25px;
  border-left: 4px solid var(--skin-color);
}
.aicvs-analysis-section ul,
.aicvs-analysis-section ol {
  margin: 0;
}
.aicvs-analysis-section h3 {
  color: #2d3748;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.aicvs-analysis-section h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--skin-color);
  border-radius: 50%;
}

.aicvs-analysis-section ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.aicvs-analysis-section li {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  padding-left: 20px;
}

.aicvs-analysis-section li:last-child {
  border-bottom: none;
}

.aicvs-analysis-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--skin-color);
  font-weight: bold;
}

.aicvs-weakness li::before {
  content: "⚠";
  color: #f56565;
}

.aicvs-suggestion li::before {
  content: "💡";
}

.aicvs-results-footer {
  padding: 30px 40px;
  background: #f8f9fa;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.aicvs-new-analysis {
  background: var(--skin-color);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.aicvs-new-analysis:hover {
  background: var(--skin-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .aicvs-container {
    margin: 20px;
    padding: 30px 15px;
  }

  .aicvs-title {
    font-size: 32px;
    padding: 15px;
  }

  .aicvs-description {
    font-size: 16px;
    padding: 15px;
  }

  .aicvs-form-container,
  .aicvs-results,
  .aicvs-experience-level {
    padding: 25px;
  }

  .aicvs-upload-area {
    padding: 40px 15px;
  }

  .aicvs-upload-content h3 {
    font-size: 18px;
  }

  .aicvs-upload-btn {
    padding: 12px 30px;
    font-size: 14px;
  }

  .aicvs-level-header h2 {
    font-size: 24px;
  }

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

  .aicvs-level-option {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .aicvs-level-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

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

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

  .aicvs-results-header {
    padding: 25px;
  }

  .aicvs-results-content {
    padding: 25px;
  }

  .aicvs-steps-container {
    flex-direction: column;
    gap: 20px;
  }

  .aicvs-steps-container::before {
    display: none;
  }

  .aicvs-step {
    flex-direction: row;
    text-align: left;
    gap: 15px;
  }

  .aicvs-step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .aicvs-step-content {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .aicvs-title {
    font-size: 24px;
  }

  .aicvs-description {
    font-size: 14px;
  }

  .aicvs-upload-area {
    padding: 30px 10px;
  }

  .aicvs-upload-content h3 {
    font-size: 16px;
  }
}
