/* ==================== ANIMATIONS ==================== */
@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* ==================== CUSTOM CLASSES ==================== */
.code-line {
  opacity: 0;
  animation: slideIn 0.6s ease-out forwards;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #00ff99;
  margin-left: 2px;
  animation: blink 1s infinite;
}

.gradient-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.code-window {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
}

.glow {
  box-shadow: 0 0 30px rgba(0, 255, 153, 0.1);
  transition: all 0.5s;
}

.glow:hover {
  box-shadow: 0 0 50px rgba(0, 255, 153, 0.2);
}

/* ==================== TAILWIND UTILITY CLASSES ==================== */

/* Layout & Display */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.flex-1 {
  flex: 1 1 0%;
}

/* Sizing */
.w-3 {
  width: 0.75rem; /* 12px */
}

.h-3 {
  height: 0.75rem; /* 12px */
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-1 {
  height: 0.25rem; /* 4px */
}

.max-w-4xl {
  max-width: 56rem; /* 896px */
}

.min-w-[3rem] {
  min-width: 3rem; /* 48px */
}

.min-h-[280px] {
  min-height: 280px;
}

.w-0 {
  width: 0px;
}

/* Spacing */
.gap-2 {
  gap: 0.5rem; /* 8px */
}

.px-4 {
  padding-left: 1rem; /* 16px */
  padding-right: 1rem; /* 16px */
}

.py-3 {
  padding-top: 0.75rem; /* 12px */
  padding-bottom: 0.75rem; /* 12px */
}

.px-3 {
  padding-left: 0.75rem; /* 12px */
  padding-right: 0.75rem; /* 12px */
}

.py-6 {
  padding-top: 1.5rem; /* 24px */
  padding-bottom: 1.5rem; /* 24px */
}

.px-6 {
  padding-left: 1.5rem; /* 24px */
  padding-right: 1.5rem; /* 24px */
}

.ml-4 {
  margin-left: 1rem; /* 16px */
}

/* Borders */
.rounded-2xl {
  border-radius: 1rem; /* 16px */
}

.rounded-full {
  border-radius: 9999px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-gray-700 {
  border-color: rgb(55, 65, 81);
}

/* Colors - Background */
.bg-red-500 {
  background-color: rgb(239, 68, 68);
}

.bg-yellow-400 {
  background-color: rgb(250, 204, 21);
}

.bg-green-500 {
  background-color: rgb(34, 197, 94);
}

.bg-[#2d2d2d] {
  background-color: #2d2d2d;
}

.bg-[#252525] {
  background-color: #252525;
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-[#00ff99] {
  --tw-gradient-from: #00ff99;
  --tw-gradient-to: rgb(0 255 153 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-[#00cc7a] {
  --tw-gradient-to: #00cc7a;
}

/* Colors - Text */
.text-gray-400 {
  color: rgb(156, 163, 175);
}

.text-gray-500 {
  color: rgb(107, 114, 128);
}

.text-gray-600 {
  color: rgb(75, 85, 99);
}

.text-[#00ff99] {
  color: #00ff99;
}

.text-blue-400 {
  color: rgb(96, 165, 250);
}

.text-orange-400 {
  color: rgb(251, 146, 60);
}

/* Typography */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.text-xs {
  font-size: 0.75rem; /* 12px */
  line-height: 1rem; /* 16px */
}

.text-sm {
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
}

.text-base {
  font-size: 1rem; /* 16px */
  line-height: 1.5rem; /* 24px */
}

.text-lg {
  font-size: 1.125rem; /* 18px */
  line-height: 1.75rem; /* 28px */
}

.text-right {
  text-align: right;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Effects */
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.overflow-hidden {
  overflow: hidden;
}

.select-none {
  user-select: none;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

/* Transitions */
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-[3000ms] {
  transition-duration: 3000ms;
}

.ease-linear {
  transition-timing-function: linear;
}

/* Hover States */
.hover\:bg-red-400:hover {
  background-color: rgb(248, 113, 113);
}

.hover\:bg-yellow-300:hover {
  background-color: rgb(253, 224, 71);
}

.hover\:bg-green-400:hover {
  background-color: rgb(74, 222, 128);
}

/* Responsive - Small screens (640px+) */
@media (min-width: 640px) {
  .sm\:text-base {
    font-size: 1rem; /* 16px */
    line-height: 1.5rem; /* 24px */
  }
}

/* Responsive - Large screens (1024px+) */
@media (min-width: 1024px) {
  .lg\:text-lg {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem; /* 28px */
  }
}