/* Global CSS Variables */
:root {
  --primary-color: #6366F1;
  --primary-dark: #4F46E5;
  --primary-light: #E0E7FF;
  --accent-color: #8B5CF6;
  --text-color: #1E293B;
  --background-light: #F8FAFC;
  --background-dark: #0F172A;
  --sidebar-width: 280px;
}

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

html,
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--text-color);
  height: 100%;
  line-height: 1.5;
  background-color: var(--background-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

button {
  cursor: pointer;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

/* App container */
#app {
  height: 100%;
}

/* Error UI styles for Blazor */
#blazor-error-ui {
  background-color: #ffcdd2;
  color: #b71c1c;
  bottom: 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: none;
  left: 0;
  padding: 1rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .reload {
  background-color: #e53935;
  border-radius: 4px;
  color: white;
  display: inline-block;
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

#blazor-error-ui .reload:hover {
  background-color: #c62828;
}

#blazor-error-ui .dismiss {
  background-color: transparent;
  border: none;
  color: #b71c1c;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ddd;
  color: #555;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background-color: var(--primary-color);
  color: white;
}

.step-text {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.step.active .step-text {
  color: var(--primary-color);
}

.step-connector {
  width: 60px;
  height: 2px;
  background-color: #ddd;
  margin: 0 10px;
  margin-bottom: 15px;
}

/* For responsive designs */
@media (max-width: 768px) {
  .step-text {
    font-size: 0.7rem;
  }

  .step-connector {
    width: 30px;
  }

  .step-number {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
}
