* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  overflow: hidden;
  height: 100vh;
}

@keyframes loadingBar {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.loading-bar-track {
  overflow: hidden;
  position: relative;
}

.loading-bar-fill {
  animation: loadingBar 1.8s ease-in-out infinite;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.pulse-dot {
  animation: pulse 1.2s ease-in-out infinite;
}

.globe-spin {
  animation: spin 2s linear infinite;
  display: inline-block;
}

.sidebar-enter {
  animation: slideIn 0.25s ease-out forwards;
}

.url-input:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.content-area {
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.08);
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: default;
  transition: opacity 0.15s;
}

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

.bookmark-chip {
  transition: all 0.15s ease;
}
.bookmark-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.history-item {
  transition: background 0.1s ease;
}
.history-item:hover {
  background: rgba(255,255,255,0.06);
}

@keyframes searchPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.search-active {
  animation: searchPulse 2s ease-in-out infinite;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

.generated-page ::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
}
.generated-page ::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}