﻿@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");
body {
  background: #E2E2E3;
  color: #2E1C59;
  font-family: "Arimo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 0 1.5rem;
  border-bottom: 1px solid #eee;
  min-height: 100px;
}

.header-logo {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.header-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  padding: 10px;
}

.header-menus {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100px;
  align-items: flex-end;
}

.top-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: #fff;
  color: #6A4FB3;
  padding: 0 1.5rem;
  font-size: 0.65rem;
  width: 100%;
  height: 2.2rem;
  border-radius: 0;
}

.top-menu-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-menu-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.top-menu-right .badge {
  margin-right: 0.5rem;
}

.badge {
  background: #FFA500;
  color: #fff;
  border-radius: 12px;
  padding: 0.2rem 0.7rem;
  font-size: 0.95rem;
}

.notification {
  font-size: 1.2rem;
}

.top-menu-right a {
  color: #6A4FB3;
  text-decoration: none;
  font-weight: 500;
}

.top-menu-right a:hover {
  color: #FFA500;
}

.header-menu-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #6A4FB3;
}

.site-logo img {
  height: 32px;
  width: 32px;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 0.7rem 1.5rem;
  height: calc(100px - 2.2rem); /* fill remaining space below top-menu */
}

.main-nav a {
  color: #6A4FB3;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  transition: background 0.2s, color 0.2s;
}

/*.main-nav a:hover {
  background: $color-bg-light;
  color: $color-accent;
}*/
.page-menu {
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
}

.page-menu nav {
  display: flex;
  gap: 1rem;
}

.page-menu a {
  color: #2E1C59;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
}

.page-menu a:hover {
  color: #FFA500;
}

.breadcrumbs {
  font-size: 0.7rem;
  color: #2E1C59;
  background: transparent;
  padding: 0.5rem 1.5rem;
  margin-bottom: 0rem;
}

.breadcrumbs a {
  color: #6A4FB3;
  text-decoration: none;
}

.breadcrumbs span {
  color: #2E1C59;
  font-weight: 500;
}

.page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  background: #fff;
}

.page-content {
  padding: 1rem 0rem;
}

.page-content h1 {
  font-size: 1.5rem;
  font-weight: 500;
}

.footer {
  background: #E2E2E3;
  color: #2E1C59;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.95rem;
  border-top: 1px solid #eee;
}

a, .btn-link {
  color: #6A4FB3;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, .btn-link:hover {
  color: #FFA500;
}

.btn-primary {
  background: #6A4FB3;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: rgb(88.7761904762, 65.5047619048, 151.6952380952);
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #4CAF50;
}

.invalid {
  outline: 1px solid #E53935;
}

.validation-message {
  color: #E53935;
  font-size: 0.95rem;
  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: #E53935;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

@media (max-width: 700px) {
  .header {
    flex-direction: column;
    align-items: center;
    min-height: unset;
    padding: 0.5rem;
  }
  .header-logo {
    width: 90px;
    height: 90px;
    padding: 0.5rem;
  }
  .header-logo img {
    width: 90px;
    height: 90px;
  }
  .header-menus {
    min-height: unset;
    width: 100%;
  }
  .main-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    height: auto;
  }
  .page {
    flex-direction: column;
  }
}
@media (max-width: 500px) {
  .header-menu-logo p {
    font-size: 1.1rem;
  }
  .footer {
    font-size: 0.85rem;
    padding: 0.7rem 0;
  }
  .page {
    flex-direction: column;
  }
}
