/* ================================================================== */
/* === WEB HEADER STİLLERİ: >= 769px === */
/* ================================================================== */

/* ===== Toolbar (Genel) ===== */
.toolbar {
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  box-sizing: border-box;
  background-color: #000;
  border-bottom: 1px solid #222;
  color: #fff;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
}

/* Sol kısım (hamburger + logo + başlık) */
.sidebar-header-left {
  min-width: 236px;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  gap: 6px;
}

.menu-icon {
  fill: #fff;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background-color 0.2s;
}

.menu-icon:hover {
  background-color: #111;
}

.menu-icon svg {
  width: 20px;
  height: 20px;
}

.logo-image {
  width: 32px;
  height: 32px;
}

.logo-text {
  font: 400 22px/1 'Google Sans', 'Product Sans', Arial, sans-serif;
  color: #fff;
  letter-spacing: 0;
}

/* Header date controls */
.header-date-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-left-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* "Today" butonu */
.btn-today {
  height: 36px;
  min-width: 70px;
  padding: 0 16px;
  background-color: #111;
  border: 1px solid #333;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-today:hover {
  background-color: #181818;
  box-shadow: none;
}

/* Ay-yıl yazısı */
.current-month-title {
  font-size: 22px;
  color: #fff;
  font-weight: 400;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  letter-spacing: 0;
  margin-left: 8px;
}

/* ===== Sağ araçlar ===== */
.header-right-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background-color: #111;
}

.icon-btn .material-icons,
.icon-btn i {
  font-size: 30px;
  line-height: 1;
}

.header-left-section .icon-btn + .icon-btn,
.header-date-controls .icon-btn + .icon-btn {
  margin-left: -4px;
}

.header-left-section .icon-btn .material-icons,
.header-date-controls .icon-btn .material-icons {
  font-size: 30px;
}

/* Ayarlar ikonundaki mavi bildirim noktası */
.icon-btn.has-dot::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #1a73e8;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}

/* "Week" seçici – beyaz zeminli köşeli buton */
.view-selector {
  height: 36px;
  min-width: 90px;
  padding: 0 12px 0 16px;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-selector:hover {
  background-color: #181818;
  box-shadow: none;
}

.view-selector .material-icons {
  font-size: 18px;
  color: #ccc;
}

/* ===== View Segmented Toggle (Day / 3 days / Week) ===== */
.view-toggle {
  display: inline-flex;
  height: 36px;
  width: 252px;
  background: #000;
  border: 1px solid #222;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 8px;
}

.view-btn {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  color: #e5e7eb;
  cursor: pointer;
  gap: 4px;
  transition: background-color 0.2s;
}

.view-btn + .view-btn {
  border-left: 1px solid #111;
}

.view-btn:hover {
  background-color: #111;
}

.view-btn.active {
  background-color: #111;
  color: #fff;
}

.view-btn.active .material-icons {
  font-size: 18px;
}

/* Segmentli anahtar (iki parça) */
.seg-toggle {
  display: inline-flex;
  height: 36px;
  width: 88px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  overflow: hidden;
}

.seg-btn {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.seg-btn + .seg-btn {
  border-left: 1px solid #dadce0;
}

.seg-btn .material-icons {
  font-size: 20px;
  color: #5f6368;
}

.seg-btn:hover {
  background-color: #f1f3f4;
}

.seg-btn.active {
  background: #e8f0fe;
}

.seg-btn.active .material-icons {
  color: #1967d2;
}

/* Uygulamalar ve avatar */
.apps-btn .material-icons {
  font-size: 24px;
}

.avatar-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(#34a853, #fbbc05, #ea4335, #4285f4, #34a853);
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.avatar-ring:hover {
  transform: scale(1.05);
}

.avatar-ring img,
.header-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.header-account-avatar {
  cursor: pointer;
}

/* Dropdown menü (sağda açılan görünüm seçimi) */
.dropdown-custom {
  position: relative;
  display: inline-block;
}

.header-right-controls .dropdown-custom {
  width: auto;
}

.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: -195px;
  right: 0;
  background: #000;
  border: 1px solid #111;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  min-width: 285px;
  padding: 8px 0;
  margin-top: 4px;
}

.view-dropdown-menu {
  min-width: 285px;
}

.dropdown-item-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background-color 0.2s;
}

.dropdown-item-custom:hover,
.view-dropdown-item:hover {
  background: #111;
}

.dropdown-divider-custom,
.view-dropdown-divider {
  height: 1px;
  background: #111;
  margin: 8px 0;
}

.keyboard-shortcut {
  margin-left: auto;
  font-size: 12px;
  color: #5f6368;
}

.checkbox-item,
.view-option-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
}

.checkbox-item input {
  margin-right: 12px;
}

.view-name {
  flex-grow: 1;
}

/* Account dropdown menu */
.account-dropdown-menu {
  position: absolute;
  top: 56px;
  right: 16px;
  width: 320px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  padding: 16px 0;
  border: 1px solid #dadce0;
}

/* Header variants for different states */
.header-main {
  /* Normal header */
}

.header-event-form-open {
  /* Header when event form is open */
}
