html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Header Styling */
.app-header {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-header .app-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
}

#sidebar-toggle {
  border: none;
  padding: 4px 8px;
}

#sidebar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Sidebar Toggle Animation */
.sidebar {
  transition: transform 0.3s ease-in-out;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 56px;
    height: calc(100vh - 56px);
    z-index: 999;
  }

  .sidebar.hidden {
    transform: translateX(-100%);
  }
}

/* User Avatar in Header */
.user-avatar-small {
  border: 2px solid white;
}

/* Notification Badge */
.badge.bg-warning {
  font-size: 0.65rem;
}

/* ============ USER DROPDOWN GLASSMORPHISM ============ */
.user-dropdown-glass {
  background: rgba(30, 30, 30, 0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px !important;
  padding: 16px !important;
  min-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 9999 !important;
}

.user-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: white;
  font-size: 0.9rem;
}

.user-info-row .material-icons {
  font-size: 20px;
  color: #e5e7eb;
}

.user-info-row strong {
  color: white;
}

.user-menu-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  color: white !important;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.user-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.user-menu-item .material-icons {
  font-size: 20px;
}

.user-menu-item.text-danger {
  color: #f87171 !important;
}

.user-menu-item.text-danger:hover {
  background-color: rgba(239, 68, 68, 0.2) !important;
}