/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #f4f6f8;
  color: #333;
  padding: 20px;
}

.container {
  max-width: 960px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.input-section {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f9fbfd;
  border-radius: 12px;
  border-left: 6px solid #007bff;
}

.input-section h3 {
  margin-bottom: 1rem;
  color: #007bff;
}

label {
  display: block;
  margin: 10px 0 4px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: border 0.3s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #007bff;
  outline: none;
}

.add-btn,
.buttons button {
  margin-top: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.add-btn:hover,
.buttons button:hover {
  background-color: #0056b3;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
}

.loading {
  text-align: center;
  margin-top: 20px;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #007bff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: auto;
}

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

.resume-container {
  background-color: #fafafa;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  min-height: 200px;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .container {
    padding: 20px 15px;
  }
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
