/* ============================================
   SIDEBAR
============================================ */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: #0f1a2e;
  color: #b0c0d4;
  padding: 16px 14px;
  overflow-y: auto;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #2a3a5a;
  border-radius: 2px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== HEADER ===== */
.sidebar-header h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
}

.sidebar-header small {
  color: #6b7f9a;
  font-size: 11px;
  display: block;
}

.sidebar-header .header-actions {
  display: flex;
  gap: 12px;
  color: #6b7f9a;
  font-size: 18px;
  cursor: pointer;
}

.sidebar-header .header-actions i:hover {
  color: white;
}

/* ===== CREATE INVOICE BUTTON ===== */
.btn-create {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  width: 100%;
  cursor: pointer;
  margin: 12px 0 16px 0;
}

.btn-create:hover {
  background: #1557b0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-create i {
  font-size: 16px;
}

/* ===== SECTIONS ===== */
.sidebar-section {
  margin-bottom: 14px;
}

.section-title {
  font-size: 10px;
  font-weight: 700;
  color: #4a6a8a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

/* ===== LINKS ===== */
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8aa0b8;
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.15s;
  margin-bottom: 1px;
}

.sidebar a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #4a6a8a;
  transition: color 0.15s;
}

.sidebar a:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.sidebar a:hover i {
  color: white;
}

.sidebar a.active {
  background: #1a73e8;
  color: white;
}

.sidebar a.active i {
  color: white;
}

/* ===== FOOTER ===== */
.sidebar-footer {
  border-top: 1px solid #1a2a42;
  padding-top: 10px;
  margin-top: auto;
}

.sidebar-footer a {
  color: #6a8aaa;
}

.sidebar-footer a i {
  color: #4a6a8a;
}

.sidebar-footer a:hover {
  color: white;
}



/* Patient Search Dropdown */
.suggestion-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.suggestion-box div {
  padding: 10px;
  cursor: pointer;
}

.suggestion-box div:hover {
  background-color: #f1f1f1;
}

.suggestion-box .add-new {
  color: #0d6efd;
  font-weight: 500;
}

.modal-title {
  font-weight: 600;
}