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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #2d2a6b; /* Stratavize dark blue color */
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #555;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

p {
  margin-bottom: 1rem;
}

.divider {
  height: 1px;
  background-color: #ddd;
  margin: 1.5rem 0;
}

/* Page Layout */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

.paper {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 2rem;
  margin-bottom: 2rem;
}

/* Logo Styling */
.logo-container {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.stratavize-logo {
  max-width: 300px;
  height: auto;
  margin: -5rem 0 -5rem 0;
  padding: 0;
  display: block;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.footer {
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  margin-top: 1rem;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards */
.card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
}

/* Buttons */
.button-container {
  text-align: center;
  margin-top: 2rem;
}

.primary-button {
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.primary-button:hover {
  background-color: #1565c0;
}

.primary-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.secondary-button {
  background-color: white;
  color: #1976d2;
  border: 1px solid #1976d2;
  border-radius: 4px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.secondary-button:hover {
  background-color: #f0f7ff;
}

.secondary-button:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
}

/* Stepper */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ddd;
  z-index: 0;
}

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

.step::before {
  content: '';
  width: 24px;
  height: 24px;
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-bottom: 8px;
}

.step.active::before {
  border-color: #1976d2;
  background-color: #1976d2;
}

.step.completed::before {
  border-color: #1976d2;
  background-color: #1976d2;
}

.step-label {
  font-size: 0.8rem;
  text-align: center;
  color: #777;
  max-width: 100px;
}

.step.active .step-label {
  color: #1976d2;
  font-weight: bold;
}

/* Question Styles */
.question-container {
  margin-bottom: 2rem;
}

.question {
  display: none;
}

.question.active {
  display: block;
}

.question-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.option:hover {
  background-color: #f0f7ff;
}

.option input {
  margin-right: 10px;
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Results Page */
.result-summary {
  text-align: center;
  margin-bottom: 2rem;
}

.investment-message {
  font-weight: bold;
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
  color: #1976d2;
  font-size: 1.2rem;
}

.strengths-weaknesses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .strengths-weaknesses {
    grid-template-columns: 1fr 1fr;
  }
}

.strengths h3 {
  color: #2e7d32;
}

.weaknesses h3 {
  color: #c62828;
}

.strengths ul,
.weaknesses ul,
.next-steps ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.strengths li,
.weaknesses li,
.next-steps li {
  margin-bottom: 0.5rem;
}

/* Admin Dashboard */
.admin-content {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
  background-color: #f8fafc;
  font-weight: 600;
}

/* Delete button styles */
.delete-button {
  background-color: #e53e3e;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.delete-button:hover {
  background-color: #c53030;
}

.admin-table tbody tr:hover {
  background-color: #f9f9f9;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.user-info-form {
  max-width: 500px;
  margin: 0 auto;
}

.login-form {
  max-width: 400px;
  margin: 0 auto;
}

.error-message {
  color: #c62828;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Admin Link */
.admin-link {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #1976d2;
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-link:hover {
  text-decoration: underline;
}
