/* Application styles */

/* Round the last row cells to match table rounded corners */
table.rounded-b-lg tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}

table.rounded-b-lg tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}

/* Opt-In Form Editor - Drag and Drop Styles */

/* Ghost element (placeholder where item will be dropped) */
.opt-in-block-ghost {
  opacity: 0.4;
  background-color: #dbeafe; /* blue-100 */
  border: 2px dashed #3b82f6; /* blue-500 */
  border-radius: 0.5rem;
}

/* Currently dragged element */
.opt-in-block-drag {
  opacity: 0.9;
  transform: rotate(2deg);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Selected/chosen element before drag starts */
.opt-in-block-chosen {
  background-color: #eff6ff; /* blue-50 */
  border-radius: 0.5rem;
}

/* Palette item being dragged as clone */
.opt-in-palette-ghost {
  opacity: 0.6;
}

.opt-in-palette-chosen {
  background-color: #dbeafe; /* blue-100 */
  border-radius: 0.5rem;
}

/* Widget Preview Animations */
@keyframes zoom-in-95 {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-from-bottom {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-from-right {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-in {
  animation-fill-mode: both;
}

.zoom-in-95 {
  animation: zoom-in-95 0.2s ease-out;
}

.slide-in-from-bottom-4 {
  animation: slide-in-from-bottom 0.3s ease-out;
}

.slide-in-from-right-4 {
  animation: slide-in-from-right 0.3s ease-out;
}

.duration-200 {
  animation-duration: 0.2s;
}

.duration-300 {
  animation-duration: 0.3s;
}

/* Prism.js Syntax Highlighting - Dark Theme (Tomorrow Night) */
code[class*="language-"],
pre[class*="language-"],
pre.language-markup {
  color: #c5c8c6;
  text-shadow: none;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  tab-size: 2;
  hyphens: none;
}

pre[class*="language-"] {
  padding: 1rem;
  margin: 0;
  overflow: auto;
  border-radius: 0.5rem;
  background: #1d1f21;
}

:not(pre) > code[class*="language-"] {
  padding: 0.1em 0.3em;
  border-radius: 0.3em;
  background: #1d1f21;
}

/* Tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #969896;
}

.token.punctuation {
  color: #c5c8c6;
}

.token.namespace {
  opacity: 0.7;
}

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

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

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

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

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

.token.keyword {
  color: #b294bb;
}

.token.regex,
.token.important {
  color: #8abeb7;
}

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

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}
