/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body, html {
    height: 100%;
    font-family: 'Cera Pro Light', sans-serif;
  }
  .title-section{
    text-align: center;
  }
  
  /* Top Navbar */
  .top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #266180;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
  }
  
  .logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .logo-section img {
    height: 6rem;
    margin-left: 2rem;
  }
  
  .title-text {
    font-size: 1.5rem;              /* Slightly larger */
    font-weight: 600;               /* Semi-bold for smoother look */
    color: #ffffff;
    letter-spacing: 0.8px;          /* Slightly more spacing */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Soft shadow */
    padding: 0.25rem 0;             /* Vertical spacing */
  }
  
  
  .navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
  }
  #user-greeting{
    color: white !important;
    margin-right: 5rem !important;
  }
  
  .greeting-text {
    font-size: 1rem;
    color: #333;
  }
  
  .logout-button {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    display: flex;
    align-items: center;
  }
  
  .logout-icon {
    height: 2rem;
    width: 2rem;
    margin-right: 5rem;
    vertical-align: middle;
    filter: invert(1);
  }
  
  
  /* Layout Wrapper */
  .layout-wrapper {
    display: flex;
    width: 100%;
    margin-top: 7.5rem; /* space for fixed top navbar */
    height: calc(100vh - 60px);
  }
  
  /* Sidebar */
  .sidebar {
    width: 12rem;
    background-color: #266180;
    color: white;
    padding: 1rem;
    position: fixed;
    top: 60px; /* below navbar */
    left: 0;
    bottom: 0;
    overflow-y: auto;
  }
  
  
  .sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 4rem;
  }
  
  .sidebar-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.2s ease;
  }
  
  .sidebar-links a:hover {
    background-color: #084298;
  }
  
  /* Main Content */
  .main-content {
    flex: 1;
    flex-grow: 1;
    box-sizing: border-box;
    padding: 2rem;
    overflow-y: auto;
    margin-left: 12rem; /* match sidebar width */
  }

  .welcome-box {
    background-color: #a5b1bd4d;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
  }
  
  .welcome-box h1 {
    font-size: 2rem;
    color: #266180;
    margin-bottom: 1rem;
  }
  
  .welcome-box p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
  }
  
  /* Hide mobile button by default */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

  /* Responsive adjustments */
@media (max-width: 768px) {
  #user-greeting {
    margin-right: 1rem !important; /* or even 0 */
    
  }

  
  .top-navbar {
    flex-direction: column;
      padding: 1rem !important;
      position: relative;

  }
  
  .logo-section img {
      height: 4rem !important;
  }
  
  .title-text {
      font-size: 1rem !important;
  }
  
  .navbar-nav {
      gap: 0.3rem;
  }
  
  .logout-icon {
      height: 1.3rem;
      width: 1.3rem;
      margin-right: 0.5rem !important;
  }
  
  .layout-wrapper {
      margin-top: 5.5rem;
  }
  
  .card-body {
      padding: 1rem !important;
  }
  
  .form-control {
      font-size: 0.9rem;
  }
  
  .btn {
      padding: 0.5rem;
      font-size: 0.9rem;
  }

  .title-text {
      font-size: 0.9rem;
  }
  
  .card {
      margin: 0 -1rem; /* Allow card to stretch to edges */
      border-radius: 0 !important;
  }
  
  .card-body {
      padding: 1.5rem 1rem !important;
  }
  .main-content{
    margin-left: 0; /* Full width on small screens */
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 110; /* above sidebar */
  }
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 12rem;
    
    background-color: #266180 !important;
    padding: 7.5rem 1rem 1rem 1rem; /* top padding added to push content down */
    overflow-y: auto;
    z-index: 100;
  }

  .sidebar.show {
    display: block;
  }

  .top-navbar {
    position: relative; /* Below sidebar when open */
    z-index: 10;
  }

  .layout-wrapper {
    position: relative;
    z-index: 1;
  }

  .main-content {
    margin-left: 0;
    z-index: 1;
  }

}

/* Override for mobile sidebar background */
@media (max-width: 768px) {
    body .sidebar {
        background-color: #266180 !important;
    }
}
