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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-header {
  height: 56px;
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.brand-icon {
  width: 22px;
  height: 22px;
  color: #38bdf8;
}

.badge-pro {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.page-meta {
  display: flex;
  flex-direction: column;
  max-width: 320px;
}

.meta-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f8fafc;
}

.meta-url {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-url:hover {
  text-decoration: underline;
  color: #38bdf8;
}

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

.divider {
  width: 1px;
  height: 24px;
  background-color: #334155;
  margin: 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn:hover {
  background-color: #334155;
  border-color: #475569;
}

.btn-studio {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: #38bdf8;
  color: #ffffff;
}

.btn-studio:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.btn-icon {
  padding: 6px 8px;
}

.btn-danger:hover {
  background-color: #dc2626;
  border-color: #ef4444;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 2px 6px;
}

.zoom-controls span {
  font-size: 11px;
  color: #94a3b8;
  min-width: 48px;
  text-align: center;
  font-weight: 600;
}

.zoom-controls button {
  background: none;
  border: none;
  color: #f8fafc;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.zoom-controls button:hover {
  background-color: #334155;
}

.viewer-workspace {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px;
  background-color: #0b1120;
}

.image-wrapper {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  transition: width 0.15s ease;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e293b;
  color: #f8fafc;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.25s ease;
  border: 1px solid #334155;
}

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