.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to right, #102844, #0e4c5f, #12736b);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 101;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.5s ease;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: #1abc9c;
  cursor: pointer;
  transition: 0.3s;
}

.menu-toggle:hover {
  color: white;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0;
  position: relative;
  user-select: none;
  cursor: default;
  line-height: 1.1;
}

.brand-top-row {
  display: flex;
  align-items: baseline;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(135deg, #ffffff 0%, #a2ebd6 50%, #1abc9c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  filter: drop-shadow(0 0 8px rgba(26, 188, 156, 0.3));
}

.brand-version {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 1px;
}

.brand-role-badge {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #a2ebd6;
  padding: 1px 8px;
  border-radius: 10px;
  margin-top: 2px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-self: flex-start;
}

.search-container {
  flex-grow: 1;
  margin: 0 30px;
  display: flex;
  max-width: 480px;
  min-width: 200px;
}

.search-container input {
  flex-grow: 1;
  padding: 6px 12px;
  border: none;
  border-radius: 20px 0 0 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  font-size: 14px;
  height: 35px;
}

.search-container input::placeholder {
  color: #bbb;
}

.search-container button {
  padding: 8px 14px;
  border: none;
  background: #1abc9c;
  color: white;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
  height: 35px;
}

.search-container button:hover {
  background: #17a589;
}

.profile-dropdown {
  position: relative;
}

.profile-btn {
  background: none;
  border: none;
  color: #1abc9c;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-btn:hover {
  color: white;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 110%;
  background: #1f2b38;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
  border-radius: 6px;
  overflow: hidden;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #1abc9c;
  color: white;
}

.dropdown-menu-end {
  left: auto !important;
  right: 0 !important;
}

.tools-menu {
  min-width: 240px !important;
}

.profile-text-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: left;
  margin-right: 8px;
  gap: 8px;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}

.position-badge {
  font-size: 10px;
  background: rgba(26, 188, 156, 0.2);
  color: #1abc9c;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 0;
  border: 1px solid rgba(26, 188, 156, 0.3);
}

.profile-btn:hover .position-badge {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.header-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon-btn {
  background: none;
  border: none;
  color: #1abc9c;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  padding: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -4px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-blue {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  box-shadow: 0 2px 5px rgba(0, 198, 255, 0.4);
}

.badge-red {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  box-shadow: 0 2px 5px rgba(255, 65, 108, 0.4);
}

.header-separator {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0 12px;
}

.header-separator.tight {
  margin: 0 4px;
}

body {
  padding-top: 60px;
}

.glow-ball {
  position: fixed;
  top: 15px;
  left: -50px;
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, #1abc9c, #ffffff);
  border-radius: 50%;
  box-shadow: 0 0 15px #1abc9c;
  opacity: 0;
  z-index: 2000;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@keyframes flyToSearch {
  0% {
    transform: translateX(0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translateX(700px) translateY(5px) scale(1.3);
    opacity: 1;
  }

  100% {
    transform: translateX(950px) translateY(0px) scale(0.5);
    opacity: 0;
  }
}

.top-header {
  left: 0;
  transition: all 0.3s ease;
}

.top-header.collapsed {
  left: 0 !important;
}

.sidebar.collapsed~.top-header {
  left: 0 !important;
}

.content {
  margin-left: 230px;
  transition: margin-left 0.3s ease;
}

.sidebar.collapsed~.content,
.content.expanded {
  margin-left: 0 !important;
}

.profile-dropdown input:checked~.dropdown-content {
  display: block !important;
}

.profile-dropdown input:not(:checked)~.dropdown-content {
  display: none !important;
}

@media (max-width: 992px) {
  .top-header {
    left: 0;
    width: 100%;
    justify-content: space-between;
    padding: 0 14px;
    z-index: 2100;
  }

  .profile-dropdown {
    display: none;
  }

  .content {
    margin-left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    display: none;
    z-index: 1500;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .search-container {
    display: none !important;
  }

  .profile-dropdown {
    display: flex !important;
    align-items: center;
  }

  .profile-btn {
    color: #1abc9c;
    font-size: 18px;
    padding: 6px 10px;
  }

  .top-header {
    justify-content: space-between;
  }
}

body[data-theme="white"] .top-header {
  background: linear-gradient(to right, #ffffff, #f3f4f6, #e5e7eb);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body[data-theme="white"] .sidebar {
  background: linear-gradient(to bottom, #ffffff, #f3f4f6, #e5e7eb) !important;
  border-right: 1px solid #e5e7eb;
}

body[data-theme="white"] .profile-btn,
body[data-theme="white"] .header-icon-btn {
  color: #4b5563;
}

body[data-theme="white"] .profile-btn:hover,
body[data-theme="white"] .header-icon-btn:hover {
  color: #1abc9c;
}

body[data-theme="white"] .menu-toggle {
  color: #5f6368;
}

body[data-theme="white"] .menu-toggle:hover {
  color: #1abc9c;
}

body[data-theme="white"] .header-separator {
  background-color: #ccc;
}

body[data-theme="white"] .profile-btn .fa-caret-down {
  color: #7f8c8d;
}

body[data-theme="white"] .search-container input {
  background: #f1f3f4;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

body[data-theme="white"] .search-container input::placeholder {
  color: #9ca3af;
}

body[data-theme="white"] .brand-name {
  background: none;
  -webkit-text-fill-color: initial;
  color: #4b5563;
  filter: none;
  text-shadow: none;
}

body[data-theme="white"] .brand-role-badge {
  background: rgba(0, 0, 0, 0.06);
  color: #4b5563;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="white"] .position-badge {
  background: rgba(0, 0, 0, 0.06);
  color: #4b5563;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="white"] .profile-btn:hover .position-badge {
  background: rgba(0, 0, 0, 0.1);
  color: #1abc9c;
  border-color: rgba(0, 0, 0, 0.2);
}

body[data-theme="white"] .sidebar a {
  color: #4b5563 !important;
}

body[data-theme="white"] .sidebar a:hover {
  background: #f1f3f4 !important;
  color: #1abc9c !important;
}

body[data-theme="white"] .sidebar li.active>a,
body[data-theme="white"] .sidebar .submenu li.active>a {
  background: #e2e8f0 !important;
  color: #1abc9c !important;
  font-weight: 600;
}

body[data-theme="white"] .sidebar a i {
  color: #4b5563 !important;
}

body[data-theme="white"] .sidebar .fa-chevron-down,
body[data-theme="white"] .sidebar .fa-caret-down,
body[data-theme="white"] .sidebar .arrow {
  color: #4b5563 !important;
}

body[data-theme="white"] .sidebar li.active>a i,
body[data-theme="white"] .sidebar .submenu li.active>a i {
  color: #1abc9c !important;
}

body[data-theme="white"] .sidebar a:hover i {
  color: #1abc9c !important;
}

body[data-theme="black"] .top-header {
  background: linear-gradient(to right, #000000, #1a1a1a, #2c2c2c);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="black"] .sidebar {
  background: linear-gradient(to bottom, #000000, #1a1a1a, #2c2c2c) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-theme="black"] .sidebar a {
  color: #b0b0b0 !important;
}

body[data-theme="black"] .sidebar a:hover {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent) !important;
  color: #ffffff !important;
}

body[data-theme="black"] .sidebar a i {
  color: #666 !important;
}

body[data-theme="black"] .sidebar a:hover i {
  color: #fff !important;
}

body[data-theme="gray"] .top-header {
  background: linear-gradient(to right, #37474f, #455a64, #546e7a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="gray"] .sidebar {
  background: linear-gradient(to bottom, #37474f, #455a64, #546e7a) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-theme="gray"] .sidebar a {
  color: #cfd8dc !important;
}

body[data-theme="gray"] .sidebar a:hover {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent) !important;
  color: #ffffff !important;
}

body[data-theme="gray"] .sidebar a i {
  color: #90a4ae !important;
}

body[data-theme="gray"] .sidebar a:hover i {
  color: #fff !important;
}

body[data-theme="rose"] .top-header {
  background: linear-gradient(to right, #4a2c34, #754450, #9e5763);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="rose"] .sidebar {
  background: linear-gradient(to bottom, #4a2c34, #754450, #9e5763) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-theme="rose"] .sidebar a {
  color: #e6cce0 !important;
}

body[data-theme="rose"] .sidebar a:hover {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent) !important;
  color: #ffffff !important;
}

body[data-theme="rose"] .sidebar a i {
  color: #c29ba3 !important;
}

body[data-theme="rose"] .sidebar a:hover i {
  color: #fff !important;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  margin-right: 8px;
  flex-shrink: 0;
  /* Küçülmesini engelle */
}
