/* ---------------------- GENERAL ---------------------- */
body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* ---------------------- HEADINGS ---------------------- */
h4, h2 {
  font-weight: 600;
  color: #333;
}

/* ---------------------- FORMS ---------------------- */
input.form-control, select.form-control {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input.form-control:focus, select.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  outline: none;
}

/* ---------------------- INVALID INPUT ---------------------- */
.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  display: block;
  font-size: 0.875rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

/* ---------------------- BUTTONS ---------------------- */
.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.35);
}

.btn-sm.rounded-circle {
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.btn-success {
  border-radius: 8px;
}

/* ---------------------- LINKS ---------------------- */
a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------------------- DASHBOARD / HEADER ---------------------- */
header, .navbar {
  background-color: #fff;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;  /* ensure z-index works */
  z-index: 1060;       /* above sidebar for logo visibility */
}

.navbar-brand, .logo {
  color: #0d6efd;
  font-weight: 600;
}

/* ---------------------- SIDEBAR ---------------------- */
#sidebar {
  width: 240px;
  min-height: 100vh;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
  padding-top: 56px;
}

#sidebar ul.nav {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

#sidebar .nav-link {
  color: #333;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

#sidebar .nav-link.active, 
#sidebar .nav-link:hover {
  background-color: #e9ecef;
}

/* ---------------------- SIDEBAR OVERLAY ---------------------- */
#sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* darker overlay */
  z-index: 1049;
  display: none;
}

#sidebar-overlay.show {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------------------- CONTENT PANE ---------------------- */
main {
  background-color: #f8f9fa;
  overflow-y: auto;
  padding: 1rem;
  flex: 1;
  margin-left: 240px; /* space for sidebar on desktop */
  transition: margin-left 0.3s ease-in-out;
}

@media (max-width: 768px) {
  main {
    margin-left: 0;
  }
}

/* ---------------------- BREADCRUMB ---------------------- */
.breadcrumb-item.active::before {
  content: "┃"; 
  color: #333; 
  margin: 0 5px;
  font-weight: bold;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

/* ---------------------- FORM SECTION ---------------------- */
section#authScreen, section.vh-100 {
  padding: 0 15px;
}

.text-center.small {
  font-size: 0.875rem;
  color: #6c757d;
}

/* ---------------------- MODALS ---------------------- */
.modal-content {
  border-radius: 12px;
}

.modal-header .btn-close {
  background-color: transparent;
  border: none;
}

/* ---------------------- HAMBURGER ---------------------- */
#hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  position: relative;
  z-index: 1060;
}

#hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  background-color: #333;
  border-radius: 2px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform-origin: center;
}

#hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
}

#hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
}

/* ---------------------- MOBILE SIDEBAR ---------------------- */
@media (max-width: 768px) {
  #sidebar {
    width: 220px;
    transform: translateX(-100%);
    position: fixed;
    z-index: 1051;
  }

  #sidebar.show {
    transform: translateX(0);
  }

  #hamburger {
    display: block;
  }

  #sidebar-overlay {
    display: none;
  }

  #sidebar-overlay.show {
    display: block;
  }
}

/* ---------------------- RESPONSIVE ---------------------- */
@media (max-width: 576px) {
  .card {
    margin: 0 10px;
  }
  .btn-sm.rounded-circle {
    width: 32px;
    height: 32px;
  }
  #sidebar {
    width: 180px;
  }
}
/* Dashboard-specific cards */
/* Dashboard Cards */
.dashboard-card {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.dashboard-card h6 {
  font-size: 0.875rem;
  color: #333;
}

.dashboard-card p {
  margin-bottom: 0.5rem;
}

.dashboard-card i {
  font-size: 1.25rem;
}

