/**
 * okaidia theme for JavaScript, CSS and HTML
 * Loosely based on Monokai textmate theme by http://www.monokai.nl/
 * @author ocodia
 */

code[class*="language-"],
pre[class*="language-"] {
	color: #f8f8f2;
	background: none;
	text-shadow: 0 1px rgba(0, 0, 0, 0.3);
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
	font-size: 1em;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;

	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	margin: .5em 0;
	overflow: auto;
	border-radius: 0.3em;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #272822;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: .1em;
	border-radius: .3em;
	white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #8292a2;
}

.token.punctuation {
	color: #f8f8f2;
}

.token.namespace {
	opacity: .7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
	color: #f92672;
}

.token.boolean,
.token.number {
	color: #ae81ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: #a6e22e;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #f8f8f2;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
	color: #e6db74;
}

.token.keyword {
	color: #66d9ef;
}

.token.regex,
.token.important {
	color: #fd971f;
}

.token.important,
.token.bold {
	font-weight: bold;
}
.token.italic {
	font-style: italic;
}

.token.entity {
	cursor: help;
}
/* Tour Guide Styles */

.tour-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  animation: tour-pulse 2s ease-in-out infinite;
}

@keyframes tour-pulse {
  0%, 100% {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  }
}

.tour-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: transparent;
  cursor: pointer;
}

.tour-tooltip {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  max-width: 380px;
  width: 90%;
  padding: 24px;
  animation: tour-slide-in 0.4s ease-out;
  border: 2px solid #3b82f6;
}

@keyframes tour-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tour-tooltip.tour-bottom {
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 20px;
}

.tour-tooltip.tour-top {
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 20px;
}

.tour-tooltip.tour-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tour-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tour-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  flex: 1;
}

.tour-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.tour-close:hover {
  color: #ef4444;
}

.tour-description {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

.tour-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.tour-dots {
  display: flex;
  gap: 6px;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  cursor: pointer;
  transition: all 0.3s;
}

.tour-dot.active {
  background: #3b82f6;
  width: 24px;
  border-radius: 4px;
  animation: tour-dot-pulse 1s ease-in-out infinite;
}

@keyframes tour-dot-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
  }
}

.tour-dot.completed {
  background: #10b981;
}

.tour-dot:hover {
  background: #3b82f6;
  transform: scale(1.2);
}

.tour-counter {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 600;
}

.tour-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tour-btn {
  flex: 1;
  min-width: 80px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
}

.tour-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #3b82f6;
  color: #3b82f6;
}

.tour-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tour-btn-primary {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.tour-btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.tour-play-btn {
  min-width: 50px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.tour-skip-btn {
  flex: 1;
  min-width: 60px;
  border-color: #fecaca;
  color: #dc2626;
}

.tour-skip-btn:hover {
  background: #fee2e2;
  border-color: #dc2626;
}

/* Restart button */
.tour-restart-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s;
  animation: tour-float 3s ease-in-out infinite;
}

@keyframes tour-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.tour-restart-button:hover {
  background: #2563eb;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 640px) {
  .tour-tooltip {
    max-width: 100%;
    width: calc(100% - 32px);
    padding: 16px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .tour-title {
    font-size: 1.1rem;
  }

  .tour-description {
    font-size: 0.9rem;
  }

  .tour-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tour-btn {
    min-width: auto;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .tour-tooltip {
    background: #1f2937;
    border-color: #2563eb;
  }

  .tour-title {
    color: #f9fafb;
  }

  .tour-description {
    color: #d1d5db;
  }

  .tour-btn {
    background: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
  }

  .tour-btn:hover:not(:disabled) {
    background: #4b5563;
  }

  .tour-btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
  }

  .tour-btn-primary:hover {
    background: #2563eb;
  }

  .tour-close {
    color: #6b7280;
  }

  .tour-close:hover {
    color: #f87171;
  }
}
/**
 * prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
 * Based on https://github.com/chriskempson/tomorrow-theme
 * @author Rose Pritchard
 */

code[class*="language-"],
pre[class*="language-"] {
	color: #ccc;
	background: none;
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
	font-size: 1em;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;

	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;

}

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	margin: .5em 0;
	overflow: auto;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #2d2d2d;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: .1em;
	border-radius: .3em;
	white-space: normal;
}

.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #999;
}

.token.punctuation {
	color: #ccc;
}

.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
	color: #e2777a;
}

.token.function-name {
	color: #6196cc;
}

.token.boolean,
.token.number,
.token.function {
	color: #f08d49;
}

.token.property,
.token.class-name,
.token.constant,
.token.symbol {
	color: #f8c555;
}

.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
	color: #cc99cd;
}

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
	color: #7ec699;
}

.token.operator,
.token.entity,
.token.url {
	color: #67cdcc;
}

.token.important,
.token.bold {
	font-weight: bold;
}
.token.italic {
	font-style: italic;
}

.token.entity {
	cursor: help;
}

.token.inserted {
	color: green;
}
