/* Header Component Styles */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  height: 70px;
  position: fixed;
  top: 0;
  right: 0;
  left: 280px; /* Match the sidebar width */
  z-index: 100;
  transition: left 0.3s;
}

.sidebar.collapsed ~ .primary .header {
  left: 80px; /* Match the collapsed sidebar width */
}

/* Left section with toggle and search */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sidebar-toggle:hover {
  background-color: #f1f5f9;
}

/* Search container */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f1f5f9;
  border-radius: 0.5rem;
  padding: 0 0.75rem;
  width: 400px;
  height: 44px;
}

.search-icon {
  color: #64748b;
  margin-right: 0.5rem;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  height: 100%;
  padding: 0;
  color: #1e293b;
  font-family: 'Open Sans', sans-serif;
}

.search-input:focus {
  outline: none;
}

.search-input::placeholder {
  color: #94a3b8;
}

.filter-button {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.375rem;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.filter-button:hover {
  background-color: #e2e8f0;
}

/* Right section with actions and user menu */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.action-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.action-btn:hover {
  background-color: #f1f5f9;
}

.badge {
  position: absolute !important;
  top: 0;
  right: 0;
  background-color: #ef4444;
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(25%, -25%);
}

/* User menu */
.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.user-menu-btn:hover {
  background-color: #f1f5f9;
}

.avatar {
  width: 40px;
  height: 40px;
  background-color: #0ea5e9;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.user-info {
  text-align: left;
}

.user-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.875rem;
}

.user-role {
  color: #64748b;
  font-size: 0.75rem;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 100;
  display: none;
}

.user-dropdown.show {
  display: block;
}

.dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.dropdown-header strong {
  display: block;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.dropdown-header small {
  color: #64748b;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
}

.dropdown-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 0.5rem 0;
} 