/* ============================================
   macOS Menu Bar CSS
   ============================================ */

#menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--menubar-height);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 1000;
  font-size: 13.5px;
  color: white;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

body.dark-mode #menu-bar {
  background: rgba(0, 0, 0, 0.4);
}

.menu-left,
.menu-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.menu-item {
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: default;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: -0.1px;
  transition: background 0.12s ease;
  white-space: nowrap;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-item.active {
  background: rgba(255, 255, 255, 0.2);
}

.menu-item strong {
  font-weight: 600;
}

.menu-apple {
  padding: 0 12px;
}

.menu-apple svg {
  opacity: 0.95;
}

.menu-icon {
  padding: 0 6px;
}

.menu-clock {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}

.kbd-layout {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.3px;
}

/* ============ MENU DROPDOWNS ============ */
.menu-dropdown {
  position: fixed;
  top: var(--menubar-height);
  background: var(--vibrancy-bg);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.08), inset 0 0 0 0.5px rgba(255,255,255,0.04);
  min-width: 220px;
  padding: 4px 0;
  z-index: 1001;
  display: none;
  border: 0.5px solid var(--border-color);
  animation: menuDropIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menuDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-dropdown.visible {
  display: block;
}

.menu-dropdown-item {
  padding: 4px 20px;
  font-size: 13px;
  cursor: default;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  border-radius: 5px;
  margin: 1px 5px;
  transition: all 0.08s ease;
}

.menu-dropdown-item:hover {
  background: var(--accent-color);
  color: white;
}

.menu-dropdown-item.disabled {
  color: var(--text-tertiary);
  pointer-events: none;
}

.menu-separator {
  height: 1px;
  background: var(--separator-color);
  margin: 4px 12px;
}

.menu-shortcut {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 30px;
}

.menu-dropdown-item:hover .menu-shortcut {
  color: rgba(255, 255, 255, 0.7);
}

.menu-arrow {
  font-size: 10px;
  color: var(--text-secondary);
}

.menu-dropdown-item:hover .menu-arrow {
  color: rgba(255, 255, 255, 0.7);
}

.menu-dropdown-search {
  padding: 4px 12px;
  margin-bottom: 4px;
}

.menu-dropdown-search input {
  width: 100%;
  height: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  font-family: var(--system-font);
}

.menu-dropdown-search input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* ============ CONTROL CENTER ============ */
#control-center {
  position: fixed;
  top: calc(var(--menubar-height) + 6px);
  right: 100px;
  width: 320px;
  background: var(--vibrancy-bg);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border-radius: 16px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  padding: 14px;
  z-index: 1002;
  border: 0.5px solid var(--border-color);
  animation: ccIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ccIn {
  from { opacity: 0; transform: scale(0.94) translateY(-8px); filter: blur(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.cc-section {
  margin-bottom: 10px;
}

.cc-section:last-child {
  margin-bottom: 0;
}

.cc-row {
  display: flex;
  gap: 10px;
}

.cc-tile {
  flex: 1;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .cc-tile {
  background: rgba(255, 255, 255, 0.08);
}

.cc-tile:hover {
  transform: scale(1.02);
}

.cc-tile:active {
  transform: scale(0.97);
}

.cc-tile.active {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.3);
}

.cc-tile-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-tile-label {
  font-size: 12px;
  font-weight: 600;
}

.cc-tile-sublabel {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 1px;
}

.cc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cc-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
}

body.dark-mode .cc-slider-wrap {
  background: rgba(255, 255, 255, 0.08);
}

.cc-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  outline: none;
}

body.dark-mode .cc-slider {
  background: rgba(255, 255, 255, 0.15);
}

.cc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
}

.cc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0,0,0,0.04);
}

.cc-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

.cc-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .cc-toggle {
  background: rgba(255, 255, 255, 0.08);
}

.cc-toggle:hover {
  transform: scale(1.02);
}

.cc-toggle:active {
  transform: scale(0.97);
}

.cc-toggle.active {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.3);
}

/* ============ NOTIFICATION CENTER ============ */
#notification-center {
  position: fixed;
  top: calc(var(--menubar-height) + 6px);
  right: 6px;
  width: 340px;
  max-height: calc(100vh - var(--menubar-height) - 100px);
  background: var(--vibrancy-bg);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border-radius: 16px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  z-index: 999;
  border: 0.5px solid var(--border-color);
  overflow: hidden;
  animation: ncSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ncSlideIn {
  from { opacity: 0; transform: translateX(30px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.nc-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--separator-color);
}

.nc-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.nc-widgets {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nc-widget {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 14px;
}

body.dark-mode .nc-widget {
  background: rgba(255, 255, 255, 0.06);
}

.nc-widget-header {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.nc-widget-date {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}

.nc-widget-day {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.nc-weather-temp {
  font-size: 48px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -2px;
}

.nc-weather-desc {
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
}

.nc-weather-loc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* GitHub Widget */
.nc-github-widget .nc-widget-header {
  display: flex;
  align-items: center;
}

.nc-github-repo {
  display: block;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

body.dark-mode .nc-github-repo {
  background: rgba(255, 255, 255, 0.06);
}

.nc-github-repo:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.02);
}

body.dark-mode .nc-github-repo:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nc-github-repo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: -0.2px;
}

.nc-github-repo-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.3;
}

.nc-github-repo-stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.nc-github-stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nc-github-lang-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f1e05a;
  margin-right: 2px;
}

.nc-no-notifications {
  padding: 30px 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}
