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

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}

.input-section,
.results-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: #F7E7E7 !important;
  border-radius: 12px;
  padding: 25px;
  border: 2px solid #e9ecef;
}

.card h2 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.upload-area {
  border: 3px dashed #667eea;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
  padding-bottom: 3em;
}

.upload-area:hover {
  background: #f0f4ff;
  border-color: #764ba2;
}

.upload-area.dragover {
  background: #e0e7ff;
  border-color: #764ba2;
}

.upload-icon {
  font-size: 3em;
}

textarea {
  width: 100%;
  min-height: 300px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #667eea;
}

.job-description {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.score-display {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 12px;
}

.score-circle {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  font-weight: bold;
  color: white;
  position: relative;
}

.score-label {
  font-size: 1.2em;
  color: #6c757d;
  margin-bottom: 10px;
}

.score-text {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 10px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.metric-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.metric-label {
  font-size: 0.9em;
  color: #6c757d;
  margin-bottom: 5px;
}

.metric-value {
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
}

.suggestions {
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.suggestion-item {
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 4px solid;
}

.suggestion-item.critical {
  background: #fee;
  border-color: #dc3545;
}

.suggestion-item.warning {
  background: #fff3cd;
  border-color: #ffc107;
}

.suggestion-item.info {
  background: #e7f3ff;
  border-color: #0dcaf0;
}

.suggestion-item.success {
  background: #d4edda;
  border-color: #28a745;
}

.suggestion-title {
  font-weight: bold;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestion-text {
  color: #555;
  line-height: 1.5;
}

.keywords-section {
  background: white;
  padding: 20px;
  border-radius: 12px;
}

.keyword-tag {
  display: inline-block;
  padding: 6px 12px;
  margin: 5px;
  border-radius: 20px;
  font-size: 0.9em;
}

.keyword-found {
  background: #d4edda;
  color: #155724;
}

.keyword-missing {
  background: #f8d7da;
  color: #721c24;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.5s ease;
}

.hidden {
  display: none;
}

@media (max-width: 968px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

.icon {
  width: 20px;
  height: 20px;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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