/* macOS Personal Website Styles */

/* CSS Variables for dark mode theming */
:root {
  --bg-primary: rgba(40, 40, 40, 0.85);
  --bg-secondary: rgba(30, 30, 30, 0.9);
  --bg-dark: rgba(0, 0, 0, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666666;
  --text-white: #ffffff;
  --accent-blue: #0a84ff;
  --accent-red: #ff453a;
  --accent-yellow: #ffd60a;
  --accent-green: #32d74b;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-strong: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-heavy: 0 16px 64px rgba(0, 0, 0, 0.6);
  --blur-light: blur(10px);
  --blur-medium: blur(20px);
  --blur-heavy: blur(40px);
  --border-radius: 12px;
  --border-radius-large: 20px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --z-menubar: 1000;
  --z-dock: 999;
  --z-window-base: 100;
  --z-toast: 2000;
}

/* System fonts */
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset and base styles */
body,
html {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%); */
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: url("bg.png");
  background-size: cover;
  background-position: center;
}

/* Desktop container */
.desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Menu Bar */
.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: var(--z-menubar);
  font-size: 13px;
  font-weight: 400;
}

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

.menu-item {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color var(--transition-fast);
  font-size: 13px;
  display: flex;
  align-items: center;
}

.menu-item:hover,
.menu-item:focus {
  background: var(--bg-glass-hover);
  outline: none;
}

.dot-logo {
  width: 18px;
  height: 18px;
  background: var(--text-primary);
  border-radius: 50%;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.clock {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  min-width: 42px;
  text-align: center;
}

/* Desktop Area */
.desktop-area {
  flex: 1;
  position: relative;
  margin-top: 28px;
  margin-left: 55px;
}

/* Dock */
.dock-container {
  position: fixed;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-dock);
}

.dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-medium);
  -webkit-backdrop-filter: var(--blur-medium);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-fast);
}

.dock-icon {
  position: relative;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.dock-icon:hover {
  transform: scale(1.1) translateX(-8px);
  background: var(--bg-glass-hover);
}

.dock-icon:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.dock-icon.active::after {
  content: "";
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--text-primary);
  border-radius: 50%;
}

.dock-icon.bounce {
  animation: dock-bounce 0.6s ease-out;
}

@keyframes dock-bounce {
  0% {
    transform: scale(1) translateX(0);
  }
  25% {
    transform: scale(1.15) translateX(-12px);
  }
  50% {
    transform: scale(1.08) translateX(-6px);
  }
  75% {
    transform: scale(1.03) translateX(-3px);
  }
  100% {
    transform: scale(1) translateX(0);
  }
}

.dock-tooltip {
  position: absolute;
  left: 90%;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-icon:hover .dock-tooltip {
  opacity: 1;
}

/* Windows */
.window {
  position: absolute;
  background: var(--bg-primary);
  backdrop-filter: var(--blur-medium);
  -webkit-backdrop-filter: var(--blur-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  min-width: 400px;
  min-height: 300px;
  max-width: 90vw;
  max-height: 90vh;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: all var(--transition-medium);
  overflow: hidden;
  resize: both;
  /* Hardware acceleration for smooth dragging */
  will-change: transform, left, top;
  transform-origin: top left;
}

.window.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.window.minimized {
  opacity: 0;
  transform: scale(0.1) translateY(100vh);
  pointer-events: none;
}

.window.maximized {
  top: 0px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 28px) !important;
  border-radius: 0;
  max-width: unset !important;
  max-height: unset !important;
}

/* Optimized dragging state */
.window.dragging {
  transition: none !important;
  will-change: left, top;
  cursor: grabbing !important;
  /* Force hardware acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.window.dragging * {
  pointer-events: none;
  user-select: none;
}

/* Optimize window content during drag */
.window.dragging .window-content {
  pointer-events: none;
  overflow: hidden;
}

/* Smooth transitions for non-dragging states */
.window:not(.dragging) {
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.window-titlebar {
  height: 40px;
  background: var(--bg-secondary);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.traffic-lights {
  display: flex;
  gap: 8px;
  margin-right: 16px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.traffic-light:hover {
  opacity: 0.8;
}

.traffic-light.close {
  background: var(--accent-red);
}

.traffic-light.minimize {
  background: var(--accent-yellow);
}

.traffic-light.maximize {
  background: var(--accent-green);
}

.window-title {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  text-align: center;
}

.window-content {
  padding: 24px;
  height: calc(100% - 40px);
  overflow-y: auto;
}

.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  cursor: se-resize;
  background: linear-gradient(
    -45deg,
    transparent 30%,
    var(--border-color) 30%,
    var(--border-color) 70%,
    transparent 70%
  );
}

/* Window Content Styles */
.about-content {
  text-align: center;
}

.profile-section {
  margin-bottom: 32px;
}

.profile-picture {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.about-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.bio {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-blue);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Projects Content */
.projects-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: all var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-4px);
  background: var(--bg-glass-hover);
  border-color: var(--border-color-strong);
}

.project-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.project-card p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tag {
  background: var(--accent-blue);
  color: var(--text-white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 12px;
}

.btn {
  background: var(--accent-blue);
  color: var(--text-white);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: #0056cc;
  transform: translateY(-1px);
}

.btn.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-color-strong);
}

/* Contact Content */
.contact-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  text-align: center;
}

.contact-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: var(--bg-glass-hover);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Resume Content */
.resume-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  text-align: center;
}

.resume-summary {
  text-align: center;
  margin-bottom: 24px;
}

.resume-summary p {
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}

.resume-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.resume-sections {
  display: grid;
  gap: 24px;
}

.resume-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 8px;
}

.resume-item {
  margin-bottom: 20px;
}

.resume-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.company {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 8px 0;
}

.resume-item p {
  line-height: 1.5;
  margin: 0;
}

.skills-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.skill {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
}

.toast {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transform: translateX(100%);
  transition: transform var(--transition-medium);
  backdrop-filter: var(--blur-medium);
  -webkit-backdrop-filter: var(--blur-medium);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: var(--accent-green);
}

.toast.error {
  background: var(--accent-red);
}

/* Notification Center Styles */
.notifications-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.notifications-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  transition: all var(--transition-fast);
  position: relative;
}

.notification-item:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-color-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.notification-time {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.notification-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.notification-type {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.notification-type.success {
  background: var(--accent-green);
}

.notification-type.error {
  background: var(--accent-red);
}

.notification-type.warning {
  background: var(--accent-yellow);
}

.no-notifications {
  text-align: center;
  color: var(--text-tertiary);
  font-style: italic;
  padding: 40px 20px;
}

.no-notifications p {
  margin: 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menubar {
    padding: 0 12px;
    font-size: 12px;
  }

  .menubar-left,
  .menubar-right {
    gap: 8px;
  }

  .desktop-area {
    margin-left: 0;
    margin-bottom: 80px;
  }

  .dock-container {
    left: 50%;
    top: auto;
    bottom: 8px;
    transform: translateX(-50%);
  }

  .dock {
    flex-direction: row;
    padding: 8px 16px;
    gap: 6px;
  }

  .dock-icon {
    width: 40px;
    height: 40px;
  }

  .dock-icon:hover {
    transform: scale(1.2) translateY(-8px);
  }

  .dock-icon.active::after {
    right: auto;
    top: auto;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
  }

  .dock-tooltip {
    left: 50%;
    top: auto;
    bottom: 100%;
    transform: translateX(-50%) translateY(-8px);
  }

  .window {
    min-width: 90vw;
    min-height: 70vh;
    top: 40px !important;
    left: 5vw !important;
    width: 90vw !important;
    height: calc(100vh - 120px) !important;
  }

  .window-content {
    padding: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    gap: 12px;
  }

  .project-links {
    flex-direction: column;
  }

  .resume-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --bg-primary: rgba(20, 20, 20, 0.95);
    --bg-secondary: rgba(10, 10, 10, 0.95);
    --border-color: rgba(255, 255, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
  }
}

/* Login Screen */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  background: url("bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-direction: column;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
  color: #ffffff;
}

.login-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Status Bar */
.login-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.1);
}

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

.login-wifi-icon,
.login-battery,
.login-power {
  display: flex;
  align-items: center;
  opacity: 0.9;
}

/* Date and Time Section */
.login-datetime {
  position: absolute;
  top: 17%;
  left: 50%;
  transform: translate(-50%, -60%);
  text-align: center;
  color: #ffffffcc;
}

.login-date {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.9;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.login-time {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* User Section */
.login-user-section {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  min-width: 250px;
}

.user-avatar {
  margin-bottom: 16px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.avatar-circle:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
}

.avatar-circle svg {
  width: 80px;
  height: 80px;
  fill: rgba(255, 255, 255, 0.9);
}

.user-name {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  color: #ffffff;
}

.login-form {
  margin-bottom: 12px;
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.password-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.password-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.password-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.password-help {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.password-help:hover {
  color: rgba(255, 255, 255, 1);
}

.password-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 8px;
}

/* Login shake animation */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

.login-user-section.shake {
  animation: shake 0.6s ease-in-out;
}

.login-user-section.shake .password-input {
  border-color: rgba(255, 69, 58, 0.8);
  background: rgba(255, 69, 58, 0.1);
}

/* Terminal Styles */
#terminal .window-content {
  padding: 0 !important;
}

#terminal .window-titlebar {
  background: #2d2d2d;
  border-bottom: 1px solid #1a1a1a;
}

#terminal .window-title {
  color: #ffffff;
  font-size: 13px;
}

.terminal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", "Courier New",
    monospace;
  background: #1e1e1e;
  color: #ffffff;
  padding: 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  position: relative;
}

.terminal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.4;
  background: #1e1e1e;
  font-weight: 400;
}

.terminal-line {
  /* margin-bottom: 10px; */
  display: flex;
  align-items: flex-start;
  min-height: 18px;
}

.prompt {
  color: #4fc1ff;
  margin-right: 10px;
  user-select: none;
  font-weight: 600;
  font-size: 13px;
}

.command-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  caret-color: transparent;
  position: relative;
  font-weight: 400;
}

.typing-input {
  position: relative;
  overflow: visible;
  flex: 1;
}

.typing-cursor {
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #4fc1ff;
  animation: terminal-cursor 1.2s infinite;
  pointer-events: none;
  border-radius: 1px;
}

@keyframes terminal-cursor {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

.terminal-output {
  /* margin-bottom: 10px; */
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #ffffff;
  line-height: 1.5;
}

.terminal-error {
  color: #ff5f56;
  font-weight: 500;
}

.terminal-success {
  color: #28ca42;
  font-weight: 500;
}

.terminal-highlight {
  color: #ffcc02;
  font-weight: 500;
}

.terminal-info {
  color: #4fc1ff;
  font-weight: 400;
}

.terminal-warning {
  color: #ff9500;
  font-weight: 500;
}

.terminal-command-list {
  margin: 12px 0;
}

.terminal-command-item {
  margin: 6px 0;
  padding-left: 20px;
  color: #d4d4d4;
}

.terminal-project-item {
  margin: 12px 0;
  padding-left: 20px;
  color: #d4d4d4;
}

.terminal-skill-category {
  margin: 12px 0 6px 0;
  font-weight: 600;
  color: #4fc1ff;
  font-size: 14px;
}

.terminal-skill-list {
  margin: 6px 0 16px 20px;
  color: #d4d4d4;
}

.terminal-contact-item {
  margin: 6px 0;
  padding-left: 20px;
  color: #d4d4d4;
}

.terminal-contact-link {
  color: #4fc1ff;
  text-decoration: none;
  font-weight: 500;
}

.terminal-contact-link:hover {
  text-decoration: underline;
  color: #66d9ff;
}

/* Terminal scrollbar styling */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}
input.command-input:focus {
  outline: transparent;
}

/* Browser Content Styles */
.browser-content-area {
  flex: 1;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.browser-page {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
}

.browser-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* Dummy Page Styles */
.dummy-page {
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  overflow-y: auto;
}

.dummy-page h1 {
  font-size: 32px;
  font-weight: 300;
  margin: 0 0 20px 0;
  color: #333333;
}

.dummy-page h2 {
  font-size: 24px;
  font-weight: 400;
  margin: 30px 0 15px 0;
  color: #333333;
}

.dummy-page h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 20px 0 10px 0;
  color: #555555;
}

.dummy-page p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 15px 0;
  color: #666666;
}

.dummy-page a {
  color: #1a73e8;
  text-decoration: none;
}

.dummy-page a:hover {
  text-decoration: underline;
}

.dummy-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.dummy-page .header {
  background: #f8f9fa;
  border-bottom: 1px solid #dadce0;
  padding: 16px 0;
  margin-bottom: 20px;
}

.dummy-page .search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 8px 16px;
  box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
}

.dummy-page .search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.dummy-page .search-btn {
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  border-radius: 6px;
  color: white;
  padding: 8px 16px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.browser-go-btn:hover {
  background: #0056cc;
  border-color: #0056cc;
  transform: translateY(-1px);
}

.dummy-page .search-btn:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  border: 1px solid #dadce0;
  color: #202124;
}

.dummy-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.dummy-page .card {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dummy-page .card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dummy-page .btn {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  margin: 5px 5px 5px 0;
}

.dummy-page .btn:hover {
  background: #1557b0;
}

.dummy-page .btn-secondary {
  background: #f8f9fa;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.dummy-page .btn-secondary:hover {
  background: #f1f3f4;
}

.dummy-page .code {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  padding: 12px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  overflow-x: auto;
  margin: 10px 0;
}

.dummy-page .error {
  color: #d93025;
  background: #fce8e6;
  border: 1px solid #fce8e6;
  border-radius: 4px;
  padding: 12px;
  margin: 10px 0;
}

.dummy-page .success {
  color: #137333;
  background: #e6f4ea;
  border: 1px solid #e6f4ea;
  border-radius: 4px;
  padding: 12px;
  margin: 10px 0;
}

/* Google Page Specific Styles */
.google-page .logo {
  text-align: center;
  margin: 100px 0 30px 0;
}

.google-page .logo h1 {
  font-size: 90px;
  font-weight: 400;
  color: #4285f4;
  margin: 0;
  letter-spacing: -2px;
}

.google-page .search-container {
  text-align: center;
  margin: 30px 0;
}

.google-page .search-box {
  max-width: 584px;
  margin: 0 auto 30px auto;
}

.google-page .search-buttons {
  text-align: center;
  margin: 20px 0;
}

/* GitHub Page Specific Styles */
.github-page {
  background: #0d1117;
  color: #f0f6fc;
}

.github-page .header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.github-page .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.github-page .logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 600;
  color: #f0f6fc;
}

.github-page .nav-links {
  display: flex;
  gap: 20px;
}

.github-page .nav-links a {
  color: #f0f6fc;
  text-decoration: none;
  font-size: 14px;
}

.github-page .nav-links a:hover {
  color: #58a6ff;
}

.github-page .container {
  background: #0d1117;
}

.github-page .card {
  background: #161b22;
  border: 1px solid #30363d;
  color: #f0f6fc;
}

.github-page .btn {
  background: #238636;
  color: #ffffff;
}

.github-page .btn:hover {
  background: #2ea043;
}

.github-page .btn-secondary {
  background: #21262d;
  color: #f0f6fc;
  border: 1px solid #30363d;
}

.github-page .btn-secondary:hover {
  background: #30363d;
}

/* Stack Overflow Page Specific Styles */
.stackoverflow-page {
  background: #f1f2f3;
}

.stackoverflow-page .header {
  background: #f8f9f9;
  border-bottom: 3px solid #f48024;
}

.stackoverflow-page .logo {
  color: #f48024;
  font-size: 28px;
  font-weight: 600;
}

.stackoverflow-page .search-box {
  background: #ffffff;
  border: 1px solid #babfc4;
  border-radius: 3px;
}

.stackoverflow-page .btn {
  background: #0a95ff;
  color: #ffffff;
}

.stackoverflow-page .btn:hover {
  background: #0074cc;
}

.stackoverflow-page .btn-secondary {
  background: #ffffff;
  color: #0a95ff;
  border: 1px solid #0a95ff;
}

.stackoverflow-page .btn-secondary:hover {
  background: #f1f2f3;
}
/* Window Snap Preview */
.snap-preview {
  position: fixed;
  background: rgba(0, 122, 255, 0.3);
  border: 2px solid rgba(0, 122, 255, 0.8);
  border-radius: var(--border-radius);
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Widget Panel Styles */
.widget-toggle {
  position: relative;
}

.widget-panel {
  position: fixed;
  top: 28px;
  right: 0;
  width: 400px;
  height: calc(100vh - 28px);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform var(--transition-medium);
  z-index: 10000;
  overflow: hidden;
}

.widget-panel.open {
  transform: translateX(0);
}

.widget-panel-content {
  height: 100%;
  padding: 20px;
  overflow-y: auto;
}

.widgets-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 16px;
  height: 100%;
}

/* Widget Styles */
.widget {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  color: #ffffff;
}

.widget:hover {
  background: rgba(40, 40, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Analog Clock Widget */
.analog-clock-widget {
  background: #000000 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.analog-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.clock-face {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #000000;
  border: 2px solid #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-center {
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  z-index: 10;
}

.clock-hand {
  position: absolute;
  background: #ffffff;
  border-radius: 2px;
  transform-origin: bottom center;
  transition: transform 0.1s ease;
}

.hour-hand {
  width: 3px;
  height: 25px;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.minute-hand {
  width: 2px;
  height: 35px;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.second-hand {
  width: 1px;
  height: 35px;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b35;
  z-index: 5;
}

.clock-numbers {
  position: absolute;
  width: 100%;
  height: 100%;
}

.clock-numbers span {
  position: absolute;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.clock-12 {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
}
.clock-3 {
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}
.clock-6 {
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}
.clock-9 {
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.clock-info {
  text-align: center;
}

.clock-time-display {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.clock-date-display {
  font-size: 12px;
  color: #ffffff;
  opacity: 0.8;
}

/* Calendar Widget */
.calendar-widget {
  background: rgba(50, 50, 50, 0.9) !important;
}

.calendar-header h3 {
  margin: 0 0 12px 0;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  font-size: 10px;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  font-size: 9px;
  color: #ffffff;
  text-align: center;
}

.calendar-date {
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calendar-date:hover {
  background: rgba(255, 255, 255, 0.1);
}

.calendar-date.today {
  background: #ff453a;
  color: #ffffff;
  font-weight: 600;
}

/* Date and Events Widget */
.date-events-widget {
  background: rgba(50, 50, 50, 0.9) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.day-name {
  font-size: 12px;
  color: #ff453a;
  font-weight: 600;
  margin-bottom: 8px;
}

.day-number {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1;
}

.events-text {
  font-size: 10px;
  color: #a0a0a0;
}

/* Battery Widget */
.battery-widget {
  background: rgba(50, 50, 50, 0.9) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.battery-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#32d74b 0deg 309.6deg, #e5e5e7 309.6deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
}

.battery-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.battery-icon {
    color: #ffffff;
    z-index: 2;
    position: relative;
}

.battery-percentage {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

/* Weather Widget Large */
.weather-widget-large {
  grid-column: span 2;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weather-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}

.weather-temp-large {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.weather-condition {
  font-size: 16px;
  color: #ffffff;
  font-weight: 500;
}

.weather-range {
  font-size: 14px;
  color: #ffffff;
  opacity: 0.9;
}

.weather-forecast {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin-top: 8px;
}

.forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #ffffff;
}

.forecast-time {
  font-weight: 500;
}

.forecast-icon {
  font-size: 16px;
}

.forecast-icon.sunrise {
  color: #ffd60a;
}

.forecast-temp {
  font-weight: 500;
}

/* System Stats Widget */
.system-stats-widget {
  /* grid-column: span 2; */
  background: #000000 !important;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content:space-between
}

.network-stats {
  display: flex;
  gap: 24px;
}

.network-item {
  text-align: center;
}

.network-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.network-label {
  font-size: 10px;
  color: #a0a0a0;
  text-transform: uppercase;
}

.system-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item {
  font-size: 12px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
}

.ram-usage {
  display: flex;
  justify-content: center;
}

.ram-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#0a84ff 0deg 259.2deg, #e5e5e7 259.2deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ram-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.ram-text {
    font-size: 10px;
    color: #ffffff;
    font-weight: 600;
    z-index: 2;
    position: relative;
}

.disk-usage {
    display: flex;
    gap: 6px;
    flex-direction: column;
}

.disk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #ffffff;
  justify-content: space-between;
}

.disk-icon {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.disk-icon.used {
  background: #0a84ff;
}

.disk-icon.free {
  background: #a0a0a0;
}

.pressure-level {
  font-size: 12px;
  color: #ffffff;
}

/* App Usage Widget */
.app-usage-widget {
  background: rgba(50, 50, 50, 0.9) !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.usage-time {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.usage-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 40px;
}

.chart-bar {
  background: #0a84ff;
  border-radius: 2px;
  min-height: 4px;
  flex: 1;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a0a0a0;
}

.usage-category {
  font-size: 12px;
  color: #0a84ff;
  font-weight: 500;
}

.usage-total {
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
}

/* Recent Apps Widget */
.recent-apps-widget {
  background: rgba(50, 50, 50, 0.9) !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-apps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.app-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.app-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.app-icon.arc {
  background: #8b5cf6;
}
.app-icon.cursor {
  background: #3b82f6;
}
.app-icon.chrome {
  background: #4285f4;
}
.app-icon.iterm {
  background: #10b981;
}
.app-icon.finder {
  background: #06b6d4;
}

.app-name {
  flex: 1;
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
}

.app-time {
  font-size: 12px;
  color: #a0a0a0;
}

/* Weather Widget */
.weather-main {
  /* display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px; */
  display: flex;
  justify-content: space-between;
}

.weather-icon {
  font-size: 32px;
}

.weather-temp {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
}

.weather-location {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.weather-description {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Clock Widget */
.clock-time {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.clock-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.clock-timezone {
  font-size: 12px;
  color: var(--text-secondary);
}

/* System Widget */
.system-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.system-item:last-child {
  margin-bottom: 0;
}

.system-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

.system-label svg {
  color: var(--text-secondary);
}

.system-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-blue);
}

/* Placeholder Widget */
.placeholder-widget .widget-content p {
  text-align: center;
  font-style: italic;
  margin: 0;
  font-size: 13px;
}

/* Widget Panel Scrollbar */
.widgets-container::-webkit-scrollbar {
  width: 6px;
}

.widgets-container::-webkit-scrollbar-track {
  background: transparent;
}

.widgets-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.widgets-container::-webkit-scrollbar-thumb:hover {
  background: var(--border-color-strong);
}

/* Widget Panel Responsive */
@media (max-width: 768px) {
  .widget-panel {
    width: 280px;
  }

  .widgets-container {
    padding: 16px;
    gap: 12px;
  }

  .widget {
    padding: 12px;
  }

  .weather-temp,
  .clock-time {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .widget-panel {
    width: 100vw;
    left: 0;
    right: 0;
    transform: translateX(100%);
  }

  .widget-panel.open {
    transform: translateX(0);
  }
}

/* Print styles */
@media print {
  .menubar,
  .dock-container,
  .toast-container,
  .login-screen,
  .widget-panel {
    display: none;
  }

  .desktop-area {
    margin: 0;
  }

  .window {
    position: static;
    width: 100% !important;
    height: auto !important;
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}

:focus-visible {
  outline: transparent;
}

/* Chrome Browser Styles */
#browser .window-content {
  padding: 0 !important;
}

.browser-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* Browser Toolbar */
.browser-toolbar {
  display: flex;
  align-items: center;
  background: #f1f3f4;
  border-bottom: 1px solid #dadce0;
  padding: 8px 12px;
  gap: 12px;
  min-height: 48px;
}

.browser-nav-buttons {
  display: flex;
  gap: 4px;
}

.browser-nav-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6368;
  transition: background-color 0.2s ease;
}

.browser-nav-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.browser-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Address Bar */
.browser-address-bar {
  flex: 1;
  max-width: 600px;
}

.browser-address-container {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 24px;
  padding: 0 16px;
  height: 40px;
  transition: box-shadow 0.2s ease;
}

.browser-address-container:focus-within {
  box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
  border-color: #4285f4;
}

.browser-security-icon {
  margin-right: 8px;
  color: #34a853;
}

.browser-url-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #202124;
  font-family: inherit;
}

.browser-url-input::placeholder {
  color: #5f6368;
}

.browser-page-actions {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.browser-actions {
  display: flex;
  gap: 4px;
}

.browser-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6368;
  transition: background-color 0.2s ease;
}

.browser-action-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Browser Tabs */
.browser-tabs {
  display: flex;
  background: #f1f3f4;
  border-bottom: 1px solid #dadce0;
  padding: 0 8px;
  min-height: 40px;
  align-items: center;
}

.browser-tab {
  display: flex;
  align-items: center;
  background: #e8eaed;
  border: 1px solid #dadce0;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin-right: 2px;
  min-width: 200px;
  max-width: 240px;
  height: 32px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.browser-tab:hover {
  background: #f1f3f4;
}

.browser-tab.active {
  background: #ffffff;
  border-bottom: 1px solid #ffffff;
  z-index: 1;
}

.browser-tab-content {
  display: flex;
  align-items: center;
  padding: 0 12px;
  width: 100%;
  gap: 8px;
}

.browser-tab-favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #5f6368;
}

.browser-tab-title {
  flex: 1;
  font-size: 13px;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-tab-close {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6368;
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.browser-tab-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.browser-new-tab {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6368;
  font-size: 18px;
  font-weight: 300;
  transition: background-color 0.2s ease;
  margin-left: 4px;
}

.browser-new-tab:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Browser Content Area */
.browser-content-area {
  flex: 1;
  background: #ffffff;
  overflow: hidden;
}

.browser-page {
  height: 100%;
  overflow: hidden;
}

.browser-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  display: block;
}

.browser-page-content {
  padding: 40px 20px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.browser-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.browser-logo {
  color: #4285f4;
}

.browser-welcome h1 {
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  margin: 0;
}

.browser-welcome p {
  font-size: 16px;
  color: #5f6368;
  margin: 0;
  line-height: 1.5;
}

.browser-search-box {
  display: flex;
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 24px;
  padding: 0 16px;
  height: 44px;
  box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
  transition: box-shadow 0.2s ease;
}

.browser-search-box:focus-within {
  box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.28);
}

.browser-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #202124;
  font-family: inherit;
}

.browser-search-input::placeholder {
  color: #5f6368;
}

.browser-search-btn {
  background: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-size: 14px;
  padding: 8px 16px;
  margin: 8px 0;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.browser-search-btn:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  background: #f1f3f4;
  border-color: #dadce0;
}

/* Dark mode support for browser */
@media (prefers-color-scheme: dark) {
  .browser-content {
    background: #202124;
    color: #e8eaed;
  }

  .browser-toolbar {
    background: #2d2d30;
    border-bottom-color: #3c4043;
  }

  .browser-address-container {
    background: #3c4043;
    border-color: #5f6368;
  }

  .browser-url-input {
    color: #e8eaed;
  }

  .browser-url-input::placeholder {
    color: #9aa0a6;
  }

  .browser-tabs {
    background: #2d2d30;
    border-bottom-color: #3c4043;
  }

  .browser-tab {
    background: #3c4043;
    border-color: #5f6368;
  }

  .browser-tab:hover {
    background: #424242;
  }

  .browser-tab.active {
    background: #202124;
    border-bottom-color: #202124;
  }

  .browser-tab-title {
    color: #e8eaed;
  }

  .browser-content-area {
    background: #202124;
  }

  .browser-welcome h1 {
    color: #e8eaed;
  }

  .browser-welcome p {
    color: #9aa0a6;
  }

  .browser-search-box {
    background: #3c4043;
    border-color: #5f6368;
  }

  .browser-search-input {
    color: #e8eaed;
  }

  .browser-search-input::placeholder {
    color: #9aa0a6;
  }

  .browser-search-btn {
    background: #5f6368;
    border-color: #5f6368;
    color: #e8eaed;
  }

  .browser-search-btn:hover {
    background: #6f7579;
    border-color: #6f7579;
  }
}

/* Browser Loading and Results */
.browser-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  gap: 16px;
}

.browser-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4285f4;
  border-radius: 50%;
  animation: browser-spin 1s linear infinite;
}

@keyframes browser-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.browser-results {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.browser-results h2 {
  font-size: 20px;
  font-weight: 400;
  color: #5f6368;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #dadce0;
}

.browser-result-item {
  margin-bottom: 24px;
  padding: 8px 0;
}

.browser-result-link {
  color: #1a0dab;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  display: block;
  margin-bottom: 4px;
}

.browser-result-link:hover {
  text-decoration: underline;
}

.browser-result-url {
  color: #006621;
  font-size: 14px;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.browser-result-description {
  color: #545454;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

/* Dark mode for browser results */
@media (prefers-color-scheme: dark) {
  .browser-loading-spinner {
    border-color: #3c4043;
    border-top-color: #4285f4;
  }

  .browser-results h2 {
    color: #9aa0a6;
    border-bottom-color: #3c4043;
  }

  .browser-result-link {
    color: #8ab4f8;
  }

  .browser-result-url {
    color: #34a853;
  }

  .browser-result-description {
    color: #bdc1c6;
  }
}
