body {
  font-family: 'Verdana', sans-serif;
  font-size: 16px;
  color: #787878; /* Body Text */
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, .header {
  font-family: Impact, sans-serif;
  font-size: 40px;
  color: #0C6730; /* Primary Green */
  margin-bottom: 16px;
}

h2, .sub-header {
  font-family: 'Verdana', sans-serif;
  font-weight: bold;
  font-size: 24px;
  color: #333333; /* Sub Header Dark Grey */
  margin-bottom: 12px;
}

p, .body-text {
  font-family: 'Verdana', sans-serif;
  font-weight: normal;
  font-size: 16px;
  color: #787878;
}

/* ========== Base Buttons ========== */
button {
  background-color: #0C6730; /* Primary Green */
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Verdana', sans-serif;
}

button:hover {
  background-color: #004d24;
}

/* ========== Sidebar Buttons ========== */
.offcanvas-body .group-items .sidebar-link {
  background-color: #0C6730 !important;
  color: white !important;
  font-weight: bold;
  border: none;
  text-align: left;
  padding: 10px 15px;
  margin: 5px 0;
  width: 100%;
  transition: background 0.2s ease;
}

.offcanvas-body .group-items .sidebar-link:hover {
  background-color: #004d24 !important;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  background-color: #FF7C06 !important;
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1100;
}

/* Sidebar Background */
.offcanvas-start {
  background-color: #f0f0f0 !important;
  color: #333;
}
/* Ensure offcanvas content is pushed down so the fixed toggle button doesn't overlap the first item */
.offcanvas.offcanvas-start .offcanvas-body {
  padding-top: 80px; /* space for the 48px toggle + margins */
}

/* Sidebar group headers */
.sidebar-group { margin-bottom: 12px; }
.group-header {
  font-family: Verdana, sans-serif;
  font-weight: bold;
  font-size: 28px;
  color: #333333;
  padding: 8px 12px;
}
.group-items { padding-left: 4px; }

/* Collapsible group behavior */
.group-header { cursor: pointer; position: relative; }
.group-header::after {
  content: '\25BE'; /* down-pointing small triangle */
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.sidebar-group .group-items {
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.sidebar-group.collapsed .group-items {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.sidebar-group.collapsed .group-header::after {
  transform: rotate(-90deg);
}

/* Floating logout button in bottom-left */
.offcanvas-body .logout-inside {
  margin-top: auto; /* push to bottom inside flex column */
  align-self: flex-start;
  background-color: #0C6730;
  color: #fff;
  font-weight: bold;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  width: calc(100% - 32px);
  margin-left: 16px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

@media (max-width: 576px) {
  .offcanvas-body .logout-inside { width: calc(100% - 24px); padding: 6px 10px; font-size: 14px; margin-left: 12px; margin-bottom: 12px; }
}

/* Ask 10-D card/button inside sidebar */
.offcanvas-body .ask-10d-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  border-radius: 8px;
  width: calc(100% - 32px);
  margin: 12px 16px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  color: #333333 !important;
}
.offcanvas-body .ask-10d-card img { width: 72px; height: 72px; object-fit: contain; display:block; background: transparent; }
.ask-10d-label {
  font-family: Verdana, sans-serif;
  font-weight: bold;
  color: #333333;
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 576px) {
  .ask-10d-card img { width: 56px; height: 56px; }
}

/* ========== Login & Register Forms ========== */
.login-container,
.form-container {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 350px;
  margin: auto;
  text-align: center;
}

.login-container h1,
.form-container h1 {
  font-family: Impact, sans-serif;
  font-size: 36px;
  color: #0C6730;
  margin-bottom: 20px;
}

input,
select,
button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* ========== Utility Classes ========== */
.orange-button {
  background-color: #FF7C06;
  color: white;
  font-weight: bold;
}

.or-divider {
  margin: 10px 0;
  font-weight: bold;
  color: #777;
}

.navigation {
  text-align: center;
  margin-top: 20px;
}

.navigation a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
}

.success {
  color: #0C6730;
  margin-top: 10px;
}

.error {
  color: red;
  margin-top: 10px;
}

/* ========== Overlay & Popups ========== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-message {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  padding: 20px 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* ========== Page Split Layout ========== */
.split-container {
  display: flex;
  height: 100vh;
}

.split-left {
  flex: 1;
  background-color: #FF7C06;
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-right {
  flex: 1;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}
