.app-header {
  background: linear-gradient(90deg, #500707 0%, #2e0303 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 98%;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  height: 70px;
  gap: 2rem;
}

/* Logo */
.header-logo {
  justify-self: start;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.05em;
}

/* Search Bar */
.header-search {
  justify-self: center;
  width: 100%;
  max-width: 500px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-button {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Profile Section */
.header-profile {
  position: relative;
  justify-self: end;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #800000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
}

.profile-arrow {
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s;
}

.profile-arrow.rotated {
  transform: rotate(180deg);
}

/* Profile Dropdown */
.profile-dropdown {
  position: absolute;
  top: calc(100%);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  min-width: 200px;
  overflow: hidden;
  z-index: 1000;
}

.dropdown-item {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background: #f9fafb;
}

.dropdown-item svg {
  color: #6b7280;
}

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

.logout-item {
  color: #dc2626;
}

.logout-item:hover {
  background: #fef2f2;
}

.logout-item svg {
  color: #dc2626;
}

.logout-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 0.5rem;
    gap: 1rem;
    height: 60px;
    grid-template-columns: auto 1fr auto;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  .header-search {
    max-width: none;
    margin: 0 1rem;
  }
  
  .search-input {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    padding-right: 2.5rem;
  }
  
  .profile-name {
    display: none;
  }
  
  .profile-trigger {
    padding: 0.5rem;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .header-container {
    gap: 0.5rem;
    grid-template-columns: auto 1fr auto;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .header-search {
    margin: 0 0.5rem;
  }
  
  .search-input {
    padding: 0.5rem 0.75rem;
    padding-right: 2.25rem;
  }
}
