/* danbako UI Enhancements */

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes pulse-gentle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes bounce-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Animation utility classes */
.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.4s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

.animate-pulse-gentle {
  animation: pulse-gentle 2s ease-in-out infinite;
}

.animate-bounce-gentle {
  animation: bounce-gentle 1s ease-in-out infinite;
}

/* Stagger children animation */
.stagger-children > * {
  animation: fadeInUp 0.4s ease-out backwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }

/* ===== Loading Skeleton ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(229, 231, 235, 1) 0%,
    rgba(243, 244, 246, 1) 50%,
    rgba(229, 231, 235, 1) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 0.375rem;
}

.dark .skeleton {
  background: linear-gradient(
    90deg,
    rgba(55, 65, 81, 1) 0%,
    rgba(75, 85, 99, 1) 50%,
    rgba(55, 65, 81, 1) 100%
  );
  background-size: 200% 100%;
}

.skeleton-text {
  height: 1rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.skeleton-text-sm {
  height: 0.75rem;
  width: 60%;
}

.skeleton-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
}

.skeleton-card {
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.dark .skeleton-card {
  background: rgb(31, 41, 55);
}

/* ===== Card Hover Effects ===== */
.note-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dark .note-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.note-card:hover .note-card-title {
  color: rgb(34, 197, 94);
}

.dark .note-card:hover .note-card-title {
  color: rgb(74, 222, 128);
}

/* Pin indicator pulse */
.pin-indicator {
  animation: pulse-gentle 2s ease-in-out infinite;
}

/* ===== Interactive Elements ===== */
.btn-hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hover-lift:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-hover-lift:active {
  transform: translateY(0);
}

/* Focus ring improvements */
.focus-ring {
  outline: none;
}

.focus-ring:focus-visible {
  outline: 2px solid rgb(34, 197, 94);
  outline-offset: 2px;
}

/* ===== Form Enhancements ===== */
.input-glow:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.dark .input-glow:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* ===== Tag Pills ===== */
.tag-pill {
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.tag-pill:hover {
  transform: scale(1.05);
}

/* ===== Progress Bar ===== */
.progress-bar {
  height: 3px;
  background: linear-gradient(90deg, rgb(34, 197, 94), rgb(16, 185, 129));
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* ===== Empty State ===== */
.empty-state-icon {
  animation: bounce-gentle 2s ease-in-out infinite;
}

.empty-state-tip {
  animation: fadeInUp 0.5s ease-out backwards;
}

.empty-state-tip:nth-child(1) { animation-delay: 0.2s; }
.empty-state-tip:nth-child(2) { animation-delay: 0.3s; }
.empty-state-tip:nth-child(3) { animation-delay: 0.4s; }

/* ===== Navigation highlight ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgb(34, 197, 94);
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== Dropdown Animations ===== */
details[open] > summary ~ * {
  animation: fadeInDown 0.2s ease-out;
}

/* ===== Scrollbar Styling ===== */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.5);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.7);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.5);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(75, 85, 99, 0.7);
}

/* ===== Backdrop Blur for Modals ===== */
.modal-backdrop {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ===== Quick Actions Fab ===== */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgb(34, 197, 94), rgb(16, 185, 129));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.fab:active {
  transform: scale(0.95);
}

/* ===== Tooltip ===== */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 0.5rem 0.75rem;
  background: rgb(31, 41, 55);
  color: white;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 50;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

.dark .tooltip::after {
  background: rgb(75, 85, 99);
}

/* ===== Keyboard Shortcut Badge ===== */
.kbd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.375rem;
  font-size: 0.625rem;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  color: inherit;
  opacity: 0.7;
}

.dark .kbd-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.prose code:not(.highlight code) {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.prose pre.highlight {
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.prose pre.highlight code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.prose-sm code:not(.highlight code) {
  font-size: 0.8125em;
  padding: 0.1rem 0.3rem;
}

.prose-sm pre.highlight {
  padding: 0.75rem;
  margin: 1rem 0;
}

.prose-sm pre.highlight code {
  font-size: 0.8125rem;
}

.prose pre.highlight::-webkit-scrollbar {
  height: 8px;
}

.prose pre.highlight::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 0.25rem;
}

.prose pre.highlight::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 0.25rem;
}

.prose pre.highlight::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
  color: #75715e;
  font-style: italic;
}
.highlight .cm {
  color: #75715e;
  font-style: italic;
}
.highlight .c1 {
  color: #75715e;
  font-style: italic;
}
.highlight .cp {
  color: #75715e;
  font-weight: bold;
}
.highlight .cs {
  color: #75715e;
  font-weight: bold;
  font-style: italic;
}
.highlight .err {
  color: #960050;
  background-color: #1e0010;
}
.highlight .gi {
  color: #ffffff;
  background-color: #324932;
}
.highlight .gd {
  color: #ffffff;
  background-color: #493131;
}
.highlight .ge {
  font-style: italic;
}
.highlight .ges {
  font-weight: bold;
  font-style: italic;
}
.highlight .gr {
  color: #aa0000;
}
.highlight .gt {
  color: #aa0000;
}
.highlight .gh {
  color: #999999;
}
.highlight .go {
  color: #888888;
}
.highlight .gp {
  color: #555555;
}
.highlight .gs {
  font-weight: bold;
}
.highlight .gu {
  color: #aaaaaa;
}
.highlight .k, .highlight .kv {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kc {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kd {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kp {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kr {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kt {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kn {
  color: #f92672;
  font-weight: bold;
}
.highlight .ow {
  color: #f92672;
  font-weight: bold;
}
.highlight .o {
  color: #f92672;
  font-weight: bold;
}
.highlight .mf {
  color: #ae81ff;
}
.highlight .mh {
  color: #ae81ff;
}
.highlight .il {
  color: #ae81ff;
}
.highlight .mi {
  color: #ae81ff;
}
.highlight .mo {
  color: #ae81ff;
}
.highlight .m, .highlight .mb, .highlight .mx {
  color: #ae81ff;
}
.highlight .se {
  color: #ae81ff;
}
.highlight .sa {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .sb {
  color: #e6db74;
}
.highlight .sc {
  color: #e6db74;
}
.highlight .sd {
  color: #e6db74;
}
.highlight .s2 {
  color: #e6db74;
}
.highlight .sh {
  color: #e6db74;
}
.highlight .si {
  color: #e6db74;
}
.highlight .sx {
  color: #e6db74;
}
.highlight .sr {
  color: #e6db74;
}
.highlight .s1 {
  color: #e6db74;
}
.highlight .ss {
  color: #e6db74;
}
.highlight .s, .highlight .dl {
  color: #e6db74;
}
.highlight .na {
  color: #a6e22e;
}
.highlight .nc {
  color: #a6e22e;
  font-weight: bold;
}
.highlight .nd {
  color: #a6e22e;
  font-weight: bold;
}
.highlight .ne {
  color: #a6e22e;
  font-weight: bold;
}
.highlight .nf, .highlight .fm {
  color: #a6e22e;
  font-weight: bold;
}
.highlight .no {
  color: #66d9ef;
}
.highlight .bp {
  color: #f8f8f2;
}
.highlight .nb {
  color: #f8f8f2;
}
.highlight .ni {
  color: #f8f8f2;
}
.highlight .nn {
  color: #f8f8f2;
}
.highlight .vc {
  color: #f8f8f2;
}
.highlight .vg {
  color: #f8f8f2;
}
.highlight .vi {
  color: #f8f8f2;
}
.highlight .nv, .highlight .vm {
  color: #f8f8f2;
}
.highlight .w {
  color: #f8f8f2;
}
.highlight .nl {
  color: #f8f8f2;
  font-weight: bold;
}
.highlight .nt {
  color: #f92672;
}
.highlight {
  color: #f8f8f2;
  background-color: #49483e;
}
/* Code block wrapper with header */
.code-block-wrapper {
  margin: 1rem 0;
}

.code-block-header {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

.code-block-wrapper pre.highlight {
  margin: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  border-top: none;
}

pre.highlight {
  background-color: #0d1117;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid #30363d;
}

pre.highlight code {
  background-color: transparent;
  color: #c9d1d9;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  display: block;
}

pre.highlight .c,
pre.highlight .c1,
pre.highlight .cm,
pre.highlight .cs,
pre.highlight .cd {
  color: #8b949e;
  font-style: italic;
}

pre.highlight .k,
pre.highlight .kd,
pre.highlight .kn,
pre.highlight .kp,
pre.highlight .kr,
pre.highlight .kt,
pre.highlight .kv {
  color: #ff7b72;
}

pre.highlight .s,
pre.highlight .s1,
pre.highlight .s2,
pre.highlight .sb,
pre.highlight .sc,
pre.highlight .sd,
pre.highlight .se,
pre.highlight .sh,
pre.highlight .si,
pre.highlight .sx,
pre.highlight .sr,
pre.highlight .ss {
  color: #a5d6ff;
}

pre.highlight .m,
pre.highlight .mf,
pre.highlight .mh,
pre.highlight .mi,
pre.highlight .mo,
pre.highlight .mb,
pre.highlight .mx,
pre.highlight .il {
  color: #79c0ff;
}

pre.highlight .nf,
pre.highlight .fm {
  color: #d2a8ff;
}

pre.highlight .nc,
pre.highlight .nn {
  color: #ffa657;
}

pre.highlight .na {
  color: #79c0ff;
}

pre.highlight .nt {
  color: #7ee787;
}

pre.highlight .nv,
pre.highlight .vi,
pre.highlight .vc,
pre.highlight .vg {
  color: #ffa657;
}

pre.highlight .nb {
  color: #ffa657;
}

pre.highlight .o,
pre.highlight .ow {
  color: #ff7b72;
}

pre.highlight .p {
  color: #c9d1d9;
}

pre.highlight .err {
  color: #f85149;
}

pre.highlight .gd {
  color: #ffa198;
  background-color: #490202;
}

pre.highlight .gi {
  color: #7ee787;
  background-color: #04260f;
}

pre.highlight .gh {
  color: #79c0ff;
  font-weight: bold;
}

pre.highlight .gu {
  color: #79c0ff;
}

pre.highlight .ge {
  font-style: italic;
}

pre.highlight .gs {
  font-weight: bold;
}

pre.highlight .w {
  color: #6e7681;
}

pre.highlight .bp {
  color: #79c0ff;
}

pre.highlight .cp {
  color: #8b949e;
}

.hljs {
  color: #c9d1d9;
  background: #0d1117;
}

.hljs-comment,
.hljs-quote {
  color: #8b949e;
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-addition {
  color: #ff7b72;
}

.hljs-string,
.hljs-meta .hljs-string {
  color: #a5d6ff;
}

.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
  color: #79c0ff;
}

.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_,
.hljs-attr,
.hljs-attribute {
  color: #d2a8ff;
}

.hljs-type,
.hljs-built_in,
.hljs-params {
  color: #ffa657;
}

.hljs-symbol,
.hljs-bullet,
.hljs-regexp,
.hljs-meta {
  color: #7ee787;
}

.hljs-deletion {
  color: #ffa198;
  background-color: #490202;
}

.hljs-section,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class {
  color: #79c0ff;
  font-weight: bold;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

.hljs-link {
  text-decoration: underline;
}

.hljs-tag {
  color: #7ee787;
}

.hljs-name {
  color: #7ee787;
}

.hljs-operator {
  color: #ff7b72;
}

.hljs-doctag {
  color: #d2a8ff;
}

.hljs-template-tag {
  color: #ff7b72;
}

.hljs-variable.language_ {
  color: #ffa657;
}

pre.highlight::-webkit-scrollbar {
  height: 0.5rem;
}

pre.highlight::-webkit-scrollbar-track {
  background: #161b22;
  border-radius: 0.25rem;
}

pre.highlight::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 0.25rem;
}

pre.highlight::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

.hljs-ln-numbers {
  text-align: right;
  color: #6e7681;
  border-right: 1px solid #30363d;
  padding-right: 0.5rem;
  margin-right: 0.5rem;
  user-select: none;
}

.hljs-ln-code {
  padding-left: 0.5rem;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
