/* Custom styles for admin panel */

:root {
  --brand: #eb5636; /* orange */
  --nav-height: 80px; /* navbar height */
}

/* Global dark background and white text */
body {
  padding: 0 !important;
}

a {
  text-decoration: none;
  cursor: pointer;
}

.text-primary {
  color: var(--brand) !important;
}

/* Global Button Standrads */
.btn-outline-warning {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
  background-color: transparent !important;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
  background-color: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
}

/* Navbar Fix */
.navbar {
  /* Use min-height instead of height to prevent content clipping 
     and remove !important if possible to let flexbox work */
  min-height: var(--nav-height);
  padding-top: 0;
  padding-bottom: 0;
}

/* Ensure the toggle and brand center correctly in a tall navbar */
.navbar .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
}

/* Ensure sidebar has a fixed width for the animation calculation */
#sidebarMenu {
  min-width: 280px;
  max-width: 280px;
  transition: all 0.3s ease-in-out;
  z-index: 1000;
  border-right: 0px !important;
}

/* Collapse by sliding it off-screen */
#sidebarMenu.collapsed {
  margin-left: -280px;
}

#mainContent {
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh; /* Force full height */
}

/* Reset Bootstrap's default col behavior which interferes with toggle */
@media (min-width: 768px) {
  .col-md-3.sidebar {
    flex: 0 0 auto;
    width: 280px;
  }
}
