/* Variables */
/* Base styles */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.login-container {
  padding: 3rem;
  margin: 3rem;
}

.hv-layout {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}
.hv-layout .hv-sidebar {
  width: 175px;
  background: var(--hv-color-bg-dark);
  color: var(--hv-color-text-dark);
  min-height: calc(100vh - 60px);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  transition: transform 0.3s ease;
  z-index: 1000;
  padding-top: 80px;
  /* Adjust for header height plus some spacing */
}
.hv-layout .hv-header {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  width: 100vw;
  height: 60px;
  background: var(--hv-color-bg-dark);
  color: var(--hv-color-text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 1100;
}
.hv-layout .hv-header .hv-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--hv-color-text-dark);
  font-size: 2rem;
  margin-right: 1rem;
  cursor: pointer;
}
.hv-layout .hv-header img {
  height: 60px;
  vertical-align: middle;
  margin-right: 10px;
}
.hv-layout .hv-header .hv-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  padding: 5px;
  width: 100%;
}
.hv-layout .hv-header .user-welcome {
  white-space: nowrap;
  vertical-align: middle;
}
.hv-layout .hv-header .user-info {
  align-items: center;
  display: flex;
  flex-direction: row;
}
.hv-layout .hv-main {
  margin-left: 175px;
  margin-top: 60px;
  padding: 2rem;
  flex: 1;
  background: var(--hv-color-bg-light);
  min-height: calc(100vh - 60px);
}
.hv-layout .hv-sidebar a {
  display: block;
  color: var(--hv-color-text-dark);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  transition: background 0.2s, color 0.2s;
}
.hv-layout .hv-sidebar a:hover, .hv-layout .hv-sidebar a:focus {
  background: var(--hv-color-bg-light);
  color: var(--hv-color-text-accent);
}

.message-container {
  width: 100%;
  background-color: var(--hv-color-bg-mid);
  margin: 16px auto;
}
.message-container .error {
  color: red;
  font-weight: bold;
  padding: 10px;
}
.message-container .info {
  color: blue;
  font-weight: bold;
  padding: 10px;
}
.message-container .success {
  color: green;
  font-weight: bold;
  padding: 10px;
}

.message-container ul {
  list-style-type: none;
  padding: 10px;
  margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .hv-layout {
    flex-direction: column;
  }
  .hv-layout .hv-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 175px;
    height: 100vh;
    transform: translateX(-100%);
    padding-top: 70px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }
  .hv-layout .hv-sidebar.active {
    transform: translateX(0);
  }
  .hv-layout .hv-sidebar.open {
    transform: translateX(0);
  }
  .hv-layout .hv-header {
    left: 0;
    width: 100%;
  }
  .hv-layout .hv-header .hv-nav-toggle {
    display: inline-block;
  }
  .hv-layout .hv-header img {
    height: 40px;
    margin-right: 2px;
  }
  .hv-layout .hv-main {
    margin-left: 0px;
    margin-right: 5px;
    margin-top: 60px;
    padding: 1rem;
    width: 100%;
    position: fixed;
    left: 0;
    min-height: calc(100vh - 60px);
  }
  .hv-layout .user-welcome {
    display: none;
  }
  .hv-layout .hv-title {
    display: none;
  }
  .hv-layout .hv-card {
    margin-left: 5px;
    margin-right: 5px;
    width: 95%;
  }
  .login-container {
    padding: 1rem;
    margin: 1rem;
  }
}
/* Optional: Overlay for sidebar on mobile */
.hv-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

@media (max-width: 768px) {
  .hv-sidebar-overlay.active {
    display: block;
  }
}
.material-icons .header {
  color: --var(--hv-color-text-light);
}

.hv-stat-card {
  background: var(--hv-color-bg-mid);
  color: var(--hv-color-text-default);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 24px;
}
.hv-stat-card p {
  font-size: 2rem;
  font-weight: bold;
  color: var(--hv-color-text-accent);
  text-align: center;
  width: 100%;
}
.hv-stat-card h2 {
  font-size: 1rem;
  color: var(--hv-color-text-header);
  text-align: center;
  width: 100%;
  font-weight: bold;
}

.hv-stats-container {
  padding-bottom: 20px;
}

.stat-card {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  background-color: var(--hv-color-bg-mid);
}

.stat-icon {
  font-size: 40px;
  color: var(--hv-color-text-accent, green);
  width: 60px;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
}