/* =========================================
   BASE STYLING & PORTAL WRAPPER
   ========================================= */
.wol-portal {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: row; /* Places sidebar and content side-by-side */
  align-items: flex-start; /* Aligns items to the top */
  min-height: 100vh;
  padding: 40px; /* Gives breathing room around the layout */
  gap: 40px; /* Creates space between the sidebar and main content */
  margin: 0;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

/* =========================================
   LOGIN PAGE SPECIFIC
   ========================================= */
.wol-login-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin: auto; /* Centers the card vertically and horizontally */
  box-sizing: border-box; /* Ensures padding doesn't affect the width */
}

.wol-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.wol-title {
  color: #3e4f35;
  margin: 0 0 10px 0;
}

.wol-subtitle {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 20px;
}

.wol-form-group {
  text-align: left;
  margin-bottom: 15px;
}

.wol-form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #3e4f35;
}

.wol-form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.wol-btn {
  display: inline-block;
  background-color: #3e4f35;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.wol-btn:hover {
  background-color: #2c3826;
}

.wol-error {
  color: #d9534f;
  font-size: 0.85em;
  display: none;
  margin-bottom: 10px;
  font-weight: bold;
}

/* =========================================
   NAVIGATION SIDEBAR
   ========================================= */
.wol-nav {
  background-color: #fff;
  width: 260px; /* Fixed width for the sidebar card */
  padding: 30px 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0; /* Prevents the sidebar from getting squished */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wol-nav-logo {
  width: 140px; /* Constrains the massive logo */
  height: auto;
  margin-bottom: 30px;
}

.wol-nav-links {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Space between the links */
}

.wol-nav-links li {
  width: 100%;
}

.wol-nav-links li a {
  display: block;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  padding: 15px 20px;
  border-radius: 6px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.wol-nav-links li a:hover {
  background-color: #f0f0f0;
}

/* Highlights the active page with Ranger green */
.wol-nav-links li a.active {
  background-color: #3e4f35;
  color: #fff;
}

#wol-logout {
  color: #333;
}

#wol-logout:hover {
  background-color: #d9534f;
  color: #fff;
}

/* =========================================
   MAIN DASHBOARD CONTENT
   ========================================= */
.wol-content {
  flex: 1; /* Tells the content to take up the remaining space */
  max-width: 800px;
  padding: 0;
}

.wol-page-title {
  color: #3e4f35;
  border-bottom: 2px solid #3e4f35;
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 20px;
}

/* =========================================
   CALENDAR PAGE
   ========================================= */
.wol-calendar-container {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
  margin-top: 20px;
}

/* =========================================
   CLASSROOM PAGE
   ========================================= */
.wol-classroom-cta {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
  margin-top: 30px;
}

.wol-classroom-cta h3 {
  color: #3e4f35;
  margin-top: 0;
}

.wol-btn-large {
  display: inline-block;
  background-color: #3e4f35;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.wol-btn-large:hover {
  background-color: #2c3826;
}

/* =========================================
   DIGITAL PASSPORT PAGE
   ========================================= */
.wol-passport-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  max-width: 500px;
  margin: 30px auto;
}

.wol-passport-header {
  background-color: #3e4f35;
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.wol-passport-header h3 {
  margin: 0;
  letter-spacing: 2px;
}

.wol-passport-body {
  padding: 30px;
  display: flex;
  gap: 30px;
  align-items: center;
}

.wol-passport-photo {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 5px;
  background: #f4f4f4;
}

.wol-passport-details p {
  margin: 5px 0;
  font-size: 1.05em;
}

.wol-passport-logo {
  width: 50px; /* Constrains the logo to a reasonable badge size */
  height: auto; /* Keeps the proportions correct so it doesn't stretch */
  flex-shrink: 0; /* Prevents flexbox from squishing it */
}

/* =========================================
   LOGIN LAYOUT FIX
   ========================================= */
.wol-login-layout {
  justify-content: center;
  align-items: center;
}

/* =========================================
   HAMBURGER MENU & NAV HEADER
   ========================================= */
.wol-nav-header {
  width: 100%;
  display: flex;
  justify-content: center; /* Keeps logo centered on desktop */
  align-items: center;
}

.wol-hamburger {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 100;
}

.wol-hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #3e4f35;
  border-radius: 2px;
  transition: all 0.3s ease; /* Smooth animation */
}

/* =========================================
   MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
  .wol-portal {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .wol-nav {
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
  }

  /* Split the logo and hamburger left/right */
  .wol-nav-header {
    justify-content: space-between;
  }

  .wol-nav-logo {
    width: 100px; /* Slightly smaller for mobile header */
    margin-bottom: 0;
  }

  .wol-hamburger {
    display: flex; /* Show the hamburger on mobile */
  }

  /* Hide the links by default on mobile */
  .wol-nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    gap: 5px;
  }

  /* This class is added via JS to show the menu */
  .wol-nav-links.nav-open {
    display: flex;
  }

  .wol-nav-links li a {
    text-align: center;
    padding: 12px 20px;
  }

  /* Animate the hamburger into an "X" when open */
  .wol-hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .wol-hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .wol-hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .wol-content {
    width: 100%;
  }

  .wol-passport-body {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }

  .wol-passport-header {
    justify-content: center;
  }
}
