/*
==================================================
File: public/CSS/header.css
Global header bar – OTS
==================================================
*/

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;

  height: 56px;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  flex-shrink: 0;

  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

/* ================= LEFT ================= */

.app-header-left {
  display: flex;
  align-items: center;
}

.app-logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--primary);
}

/* ================= RIGHT ================= */

.app-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ================= THEME SWITCH ================= */

.theme-switch {
  display: flex;
  gap: 6px;
}

.theme-switch button {
  width: 34px;
  height: 34px;
  border-radius: 8px;

  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);

  color: var(--text-muted);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-switch button:hover,
.theme-switch button.active {
  color: var(--primary);
  border-color: var(--primary);
}

/* ================= USER ================= */

.app-user {
  display: flex;
  align-items: center;
  gap: 8px;

  padding-left: 16px;
  border-left: 1px solid var(--border-color);

  font-size: 13px;
  color: var(--text-main);
}

.app-user i {
  color: var(--text-muted);
}

.app-settings {
  position: relative;
}

.app-settings button {
  width: 34px;
  height: 34px;
  border-radius: 8px;

  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);

  color: var(--text-muted);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: color 0.15s ease, border-color 0.15s ease;
}

.app-settings button:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.settings-box {
  position: absolute;
  top: 44px;
  right: 0;

  min-width: 180px;
  padding: 12px;

  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-card);

  z-index: 200;
}

.settings-box.hidden {
  display: none;
}

.settings-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
