@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600&display=swap");

.pres-switcher,
.pres-switcher *,
.pres-tour-overlay,
.pres-tour-overlay *,
.pres-tour-box,
.pres-tour-box *,
.pres-notes-panel,
.pres-notes-panel * {
  font-family: "Outfit", "Inter", sans-serif !important;
}

.pres-notes-panel textarea {
  font-family: "Inter", sans-serif !important;
}

.pres-switcher {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 9999;
  font-family: "Outfit", "Inter", sans-serif;
}

.pres-switcher-pill {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.5rem;
  background: rgba(249, 245, 240, 0.92);
  border: 1px solid rgba(200, 180, 156, 0.7);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(28, 60, 74, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 56px;
  max-height: 56px;
  overflow: hidden;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pres-switcher:hover .pres-switcher-pill,
.pres-switcher:focus-within .pres-switcher-pill {
  max-width: 56px;
  max-height: 280px;
}

.pres-switcher a,
.pres-switcher button {
  width: 38px;
  height: 38px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: #1C3C4A;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.pres-switcher a:hover,
.pres-switcher button:hover {
  background: rgba(28, 60, 74, 0.08);
  transform: translateX(-2px);
}

.pres-switcher a[aria-current="page"] {
  background: #1C3C4A;
  color: #F9F5F0;
}

.pres-switcher a[aria-current="page"]:hover {
  background: #1C3C4A;
  transform: none;
  cursor: default;
}

.pres-switcher button[aria-expanded="true"] {
  background: #4E9BAC;
  color: #F9F5F0;
}

.pres-switcher .pres-divider {
  height: 1px;
  background: rgba(200, 180, 156, 0.55);
  margin: 0.15rem 0.5rem;
  flex-shrink: 0;
}

.pres-switcher svg {
  width: 16px;
  height: 16px;
  display: block;
}

.pres-tour-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 10000;
  clip-path: circle(80px at calc(100% - 2rem) 50%);
  animation: presFadeIn 0.3s ease;
}

.pres-tour-overlay.active {
  display: block;
}

.pres-tour-box {
  display: none;
  position: fixed;
  top: 50%;
  right: 7rem;
  transform: translateY(-50%);
  background: #1C3C4A;
  color: #F9F5F0;
  padding: 1.2rem 2.5rem 1.2rem 1.5rem;
  border-radius: 8px;
  z-index: 10001;
  max-width: 220px;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  animation: presSlideUp 0.4s ease;
  font-family: "Outfit", "Inter", sans-serif;
}

.pres-tour-box.active {
  display: block;
}

.pres-tour-box::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid #1C3C4A;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.pres-tour-close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #F9F5F0;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pres-tour-close:hover,
.pres-tour-close:focus-visible {
  background: rgba(249, 245, 240, 0.14);
  outline: none;
}

.pres-notes-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: min(100%, 360px);
  max-width: 360px;
  height: auto;
  max-height: 70vh;
  background: #F9F5F0;
  border-left: 1px solid rgba(200, 180, 156, 0.7);
  box-shadow: -2px 0 15px rgba(28, 60, 74, 0.15);
  z-index: 9998;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(200, 180, 156, 0.7);
  display: flex;
  flex-direction: column;
}

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

.pres-notes-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(200, 180, 156, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  font-family: "Outfit", sans-serif;
}

.pres-notes-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1C3C4A;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pres-notes-close {
  background: none;
  border: none;
  color: #1C3C4A;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  border-radius: 4px;
}

.pres-notes-close:hover {
  background: rgba(28, 60, 74, 0.08);
}

.pres-notes-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.pres-note-item {
  background: white;
  border: 1px solid rgba(200, 180, 156, 0.6);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.825rem;
  line-height: 1.4;
  color: #1C3C4A;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.pres-note-content {
  flex: 1;
  min-width: 0;
}

.pres-note-tag {
  color: #4E9BAC;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.pres-note-text {
  word-break: break-word;
}

.pres-note-delete {
  background: none;
  border: none;
  color: #C47A3C;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.pres-note-delete:hover {
  color: #8B5A2B;
}

.pres-notes-input {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(200, 180, 156, 0.5);
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
}

.pres-notes-input textarea {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(200, 180, 156, 0.6);
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  resize: none;
  color: #1C3C4A;
  background: #F9F5F0;
}

.pres-notes-input textarea:focus {
  outline: none;
  border-color: #4E9BAC;
  box-shadow: 0 0 0 2px rgba(78, 155, 172, 0.1);
}

.pres-notes-add,
.pres-notes-export {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.pres-notes-add {
  padding: 0.6rem 0.75rem;
  background: #1C3C4A;
  color: #F9F5F0;
}

.pres-notes-add:hover {
  background: #142d38;
}

.pres-notes-export {
  width: calc(100% - 2.5rem);
  margin: 0 1.25rem 1rem;
  padding: 0.6rem 0.75rem;
  background: #4E9BAC;
  color: #F9F5F0;
}

.pres-notes-export:hover {
  background: #3a7a8c;
}

@keyframes presFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes presSlideUp {
  from { opacity: 0; transform: translateY(-50%) translateY(10px); }
  to { opacity: 1; transform: translateY(-50%) translateY(0); }
}

@media (max-width: 600px) {
  .pres-switcher-pill {
    max-width: 48px;
    max-height: 48px;
    padding: 0.45rem 0.4rem;
  }

  .pres-switcher:hover .pres-switcher-pill,
  .pres-switcher:focus-within .pres-switcher-pill {
    max-height: 245px;
  }

  .pres-switcher a,
  .pres-switcher button {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .pres-note-item {
    font-size: 0.75rem;
  }

  .pres-notes-panel {
    max-width: 100%;
  }
}

@media print {
  .pres-switcher,
  .pres-notes-panel {
    display: none;
  }
}
