:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar {
  background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
}

  .sidebar .top-row {
    background-color: rgba(0, 0, 0, .4);
  }

  .sidebar .navbar-brand {
    font-size: 1.1rem;
    font-weight: bold;
    color: white !important;
  }

  .sidebar .nav-item {
    font-size: 0.9rem;
    position: relative;
  }

    .sidebar .nav-item::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 1rem;
      right: 1rem;
      height: 1px;
      background-color: rgba(255, 255, 255, 0.1);
    }

  .sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
  }

    .sidebar .nav-link:hover {
      color: white;
      background-color: rgba(255, 255, 255, 0.1);
    }

    .sidebar .nav-link.active {
      background-color: rgba(255, 255, 255, 0.2);
      color: white;
    }

.main {
  flex: 1;
  margin-left: 260px;
}

.top-row {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
  height: 3.5rem;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content {
  padding: 1.5rem;
  flex: 1;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

  .card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

  .btn:hover {
    transform: translateY(-1px);
  }

.form-control {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

  .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  }

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

  .navbar-toggler:focus {
    box-shadow: none;
  }

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

  #blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
  }

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHZpZXdCb3g9IjAgMCA1NiA0OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjUgNi5MMjEgMTJMMTMuNSAxNy41TDEyLjUgMTYuNUwxOC41OCAxMkwxMi41IDcuNUwxMy41IDYuNVoiIGZpbGw9IiM1MjUyNTIiLz4KPC9zdmc+Cg==) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

  .blazor-error-boundary::after {
    content: "An error has occurred."
  }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

    .sidebar.show {
      transform: translateX(0);
    }

  .main {
    margin-left: 0;
  }

  .top-row {
    justify-content: space-between;
  }

  .content {
    padding: 1rem;
  }
}
