.main-header {
  border-bottom: 1px solid #dee2e6;
  z-index: 1040;
}

/* Additional CSS to prevent navbar and sidebar overlap */
.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
}

.main-sidebar {
  position: fixed;
  top: 56px; /* height of navbar */
  left: 0;
  width: 250px;
  height: calc(100% - 56px);
  z-index: 1039;
  overflow-y: auto;
}

/* Adjust content wrapper to not be under navbar or sidebar */
.content-wrapper {
  margin-top: 56px; /* height of navbar */
  margin-left: 250px; /* width of sidebar */
  transition: margin-left 0.3s ease;
}

/* When sidebar is collapsed */
.sidebar-collapse .main-sidebar {
  margin-left: -250px;
}

.sidebar-collapse .content-wrapper {
  margin-left: 0;
}

/* Ensure navbar is above sidebar */
.navbar {
  z-index: 1040;
}
/* ============================================
   Professional Red Button Styles
   ============================================ */

.btn-red {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-red:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    color: white !important;
    text-decoration: none;
}

.btn-red:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-red:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* For disabled state */
.btn-red:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Alternative solid red version (no gradient) */
.btn-red-solid {
    background-color: #dc3545;
    border: 1px solid #dc3545;
    color: white;
    transition: all 0.2s ease;
}

.btn-red-solid:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}
