/* macOS Style Interface Components */
/* Note: CSS variables are inherited from main style.css */

/* macOS Layer Container */
.macos-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999999999999;
}

/* macOS Menubar */
.macos-menubar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  background: light-dark(rgba(255, 255, 255, 0.6), rgba(40, 40, 40, 0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid
    light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: light-dark(#000, #fff);
  pointer-events: auto;
  z-index: 10000;
  transition: all 0.3s ease;
}

/* Remove old dark mode overrides */

.menubar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
}

.menu-item:hover {
  background: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
}

.menu-item.active {
  background: rgba(0, 122, 255, 0.8);
  color: white;
}

.menu-item .material-symbols-rounded {
  font-size: 16px;
  margin-right: 4px;
}

.apple-logo {
  font-size: 16px;
  font-weight: 500;
}

.time-display {
  font-size: 13px;
  font-weight: 400;
  min-width: 60px;
  text-align: center;
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 45px;
  right: 12px;
  width: 320px;
  z-index: 9998;
  pointer-events: none;
}

.notification {
  background: light-dark(rgba(255, 255, 255, 0.85), rgba(50, 50, 50, 0.85));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: light-dark(#000, #fff);
  pointer-events: auto;
  will-change: transform, opacity;
  animation-fill-mode: both;
}

/* Remove old dark mode overrides for notifications */

.notification.show {
  transform: translateX(0);
  opacity: 1;
  animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification.hide {
  transform: translateX(100%);
  opacity: 0;
  animation: slideOutRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.notification + .notification {
  margin-top: -4px;
}

/* Notification Header */
.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.notification-app {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.notification-app-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  animation: iconPulse 2s ease-in-out infinite;
}

.notification-time {
  font-size: 11px;
  opacity: 0.7;
}

/* Notification Content - Left Aligned */
.notification-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.2;
  text-align: left;
  width: 100%;
}

.notification-body {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.3;
  text-align: left;
  margin-bottom: 8px;
  width: 100%;
}

/* Notification Actions - Right Aligned */
.notification-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
  width: 100%;
}

.notification-button {
  padding: 4px 12px;
  border-radius: 6px;
  border: none;
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.notification-button:hover {
  background: rgba(0, 122, 255, 0.2);
}

.notification-button.secondary {
  background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.1));
  color: light-dark(#000, #fff);
}

/* Smooth transitions for theme changes */
* {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive Design */
@media screen and (max-width: 500px) {
  .macos-menubar {
    padding: 0 8px;
  }

  .menubar-left {
    gap: 8px;
  }

  .menubar-right {
    gap: 4px;
  }

  .menu-item {
    padding: 0 4px;
  }

  /* Hide menu options in mobile view to save space */
  .menubar-left .menu-item:not(.apple-logo) {
    display: none;
  }

  .menubar-right .menu-item:not(.time-display) {
    display: none;
  }

  .notification-container {
    width: calc(100% - 30px);
    right: 15px;
  }
}

/* Body padding adjustment for menubar */
body {
  padding-top: 24px !important;
}
