/*

  Main CSS For : 
    - Login & Register FORMS
    - Dashboard Sidebar Topbar Bottom Bar

*/


@media (max-width: 768px) {
   #sidebar.active #sidebarCloseMobile {
    display: block;
  }
  .fullscreen-icon {
    display: none;
  }
  #sidebar {
    position: fixed;
    top: 0;
    left: -240px;    
    z-index: 1040;   
    margin-left: 0;  
    width: 220px;
  }
  #sidebar.active {
    left: 0;        
  }
  /* content stays where it is */
  #content {
    margin-left: 0 !important;
  }
  /* Show backdrop only on mobile when sidebar is active */
  #sidebar.active ~ #sidebar-backdrop {
    display: block;
  }
}
@media (max-width: 576px) {
  #bottombar {
    flex-direction: column !important;
    text-align: center;
  }
  #bottombar .footer-right {
    margin-top: 0.5rem;
  }
}
@media (min-width: 769px) {
  #sidebar.active {
    margin-left: -240px;
  }
}
html, body {
  height: 100%;
  margin: 0;
}
 
.login-container {
      max-width: 380px;
      width: 100%;
    }
.login-box {
  background: #fff;
  padding: 2rem;
  border-radius: .5rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.swal-bottom-padding {
  padding-bottom: 5em !important;
}

.login-logo {
  max-width: 250px;  
  width: 100%;
  height: auto;
}
.login-register-body {
      background: #f0f2f5;
    }
.register-container { 
  max-width: 410px; 
  width: 100%; 
}
    .register-box {
      background: #fff;
      padding: 2rem;
      border-radius: .5rem;
      box-shadow: 0 0 15px rgba(0,0,0,0.1);
    }
 .g-recaptcha { 
  transform: scale(0.90); 
  transform-origin: 0 0; 
}
    .toggle-eye-btn {
      border: none;
      background: none;
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      color: #0d6efd;
      cursor: pointer;
    }
.register-logo { 
  max-width: 180px; 
  display: block; 
  margin: 0 auto 1.5rem; 
}
.home-body {
    background: #f0f2f5;
    overflow-x: hidden;
  }
/* Sidebar */
  #sidebar {
    width: 240px;
    min-width: 240px;    
    max-width: 240px;   
    background: #fff;
    transition: margin 0.3s;
    height: 100vh;
    border-right: 1px solid #dee2e6;
    flex: 0 0 240px;
    padding-top: 0;
    overflow-y: auto;
    overflow-x: hidden; 
  }
/* Sidebar header (logo area) */
  #sidebar-header {
    text-align: center;
    height: 56px;
    margin: 0;                         
    border-bottom: 1px solid #dee2e6;  
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #sidebar-header img {
    max-height: 40px;
    width: auto;
  }
  /* close-icon in sidebar header */
#sidebarCloseMobile {
  display: none;           
  font-size: 1.25rem;
  color: #495057;
  cursor: pointer;
  margin-left: 0.75rem;
}

  /* Section headers */
  .sidebar-section {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }
  .sidebar-section h6 {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
  }

  /* Sidebar links */
  #sidebar .nav-link {
    color: #495057;
    padding: 0.4rem 0.25rem 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.90rem;
  }
  #sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.35rem;
    font-size: 1rem;
  }
  #sidebar .nav-link:hover {
    background: #f8f9fa;
    color: #000;
  }

  /* Topbar */
  #topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    padding: 0 1rem;
  }
  #topbar .toggle-icon-top {
    font-size: 1.25rem;
    color: #495057;
    cursor: pointer;
    margin-right: 1rem;
  }

  /* Custom sidebar scrollbar */
  #sidebar::-webkit-scrollbar {
    width: 6px;
  }
  #sidebar::-webkit-scrollbar-track {
    background: #f0f2f5;
  }
  #sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }
  /* Firefox */
  #sidebar {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f2f5;
  }

/* Sidebar backdrop (modal-style overlay) */
#sidebar-backdrop {
  display: none;             
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1030;              
}
/* Fullscreen icon styling */
.fullscreen-icon {
  font-size: 1.25rem;
  color: #495057;
  cursor: pointer;
  margin-right: 1rem;
}
/* Footer Bar */
#bottombar {
  background: #fff;
  border-top: 1px solid #dee2e6;
  font-size: 0.9rem;
}
/* Let left side take up remaining space, keep right auto-sized */
#bottombar .footer-left {
  flex: 1;
}
/* prevent wrapping on desktop */
#bottombar .footer-right {
  flex: none;
  white-space: nowrap;  
}
/* Ensure links are blue */
#bottombar a {
  color: #0d6efd; 
}
/* Uniform circular user image */
#topBarUserImage {
  width: 32px;              
  height: 32px;             
  object-fit: cover;        
  border-radius: 50%;       
}

/* Larger, centered user image in dropdown */
#dropdownUserImage {
  width: 64px;            
  height: 64px;
  object-fit: cover;
  border-radius: 50%;     
  display: block;
  margin: 0 auto;  
}

/* Align dropdown icons + text */
.dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
}
/* fixes all icons to the same start position */
.dropdown-menu .dropdown-item i {
  min-width: 1.25rem;  
  text-align: center;
}
.topBarDropdown {
    margin-right: 1.5rem;
  }
  #topbar .dropdown-toggle::after {
    display: none;
  }
/* Body except sidebar */
#content {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;                 
}

/* Body except sidebar & topbar */
.main-area {
  padding: 20px;
  flex: 1;
}
.home-body > .d-flex {
  height: 100%;
  flex-direction: row;
}
