/* CSS Variables para compatibilidade com Tailwind */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 9% 17%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 10% 3.9%;
  --radius: 0.5rem;
  --ink: #111827;
  --paper: #f8fafc;
  --line: #d8dee8;
  --blue: #2563eb;
  --teal: #0f766e;
  --coral: #f97316;
}

/* Componentes personalizados */

body {
  background:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(248, 250, 252, 0.86), rgba(255, 255, 255, 0.96) 38%),
    url("../images/rafael-batista-cover.jpg") center top / cover fixed;
  background-size: 32px 32px, 32px 32px, auto, cover;
  color: var(--ink);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--coral));
  z-index: 60;
  transition: width 0.1s linear;
}

.site-hero {
  position: relative;
  min-height: 92vh;
  padding: 1rem;
  background:
    linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(115deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.91) 48%, rgba(15, 118, 110, 0.72) 100%),
    url("../images/rafael-batista-cover.jpg") center / cover;
  background-size: 34px 34px, 34px 34px, auto, cover;
  color: white;
}

.hero-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: white;
  color: rgb(15, 23, 42);
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  align-items: end;
  gap: 3rem;
  max-width: 72rem;
  min-height: calc(92vh - 5.5rem);
  margin: 0 auto;
  padding: 7rem 0 3rem;
}

.hero-copy {
  max-width: 49rem;
}

.eyebrow {
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 1rem;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
  font-weight: 900;
}

.hero-role {
  max-width: 42rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero-summary {
  max-width: 42rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.32);
  font-size: 0.875rem;
}

.backend-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: rgba(226, 232, 240, 0.82);
}

.backend-flow span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 0.5rem;
  background: rgba(2, 6, 23, 0.46);
  font-size: 0.82rem;
}

.backend-flow code {
  color: #67e8f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
}

.backend-flow svg {
  color: rgba(125, 211, 252, 0.56);
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 1rem;
  align-self: center;
}

.profile-photo {
  width: min(100%, 23rem);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  justify-self: end;
}

.tech-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  max-width: 100%;
  margin-top: -3.25rem;
  margin-left: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 0.5rem;
  background: rgba(2, 6, 23, 0.72);
  color: #dbeafe;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.tech-status span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}

.tech-status code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.backend-console {
  width: min(100%, 24rem);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.88);
  color: #dbeafe;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.console-topbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.96);
}

.console-topbar span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #f87171;
}

.console-topbar span:nth-child(2) {
  background: #facc15;
}

.console-topbar span:nth-child(3) {
  background: #22c55e;
}

.console-topbar code,
.console-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.console-topbar code {
  margin-left: auto;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.76rem;
}

.console-body {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  font-size: 0.77rem;
}

.console-body p {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.console-body span {
  color: #67e8f9;
  font-weight: 900;
}

.console-body strong {
  color: #86efac;
  font-weight: 800;
  white-space: nowrap;
}

.hero-stat-panel {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 21rem);
  margin-top: -1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: rgb(15, 23, 42);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.backend-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: 2rem;
  align-items: center;
  margin: 0 0 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background:
    linear-gradient(rgba(125, 211, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 94, 89, 0.92));
  background-size: 28px 28px, 28px 28px, auto;
  color: white;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
}

.backend-section-copy h2 {
  margin-top: 0.55rem;
  max-width: 42rem;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.12;
  font-weight: 900;
}

.backend-section-copy p:not(.eyebrow) {
  max-width: 42rem;
  margin-top: 0.85rem;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.75;
}

.backend-section .backend-console {
  justify-self: end;
}

.hero-stat-panel div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  gap: 0.75rem;
}

.hero-stat-panel strong {
  color: var(--teal);
  font-size: 1.45rem;
  font-weight: 900;
}

.hero-stat-panel span {
  color: rgb(71, 85, 105);
  font-size: 0.9rem;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
  gap: 3rem;
  margin: 4rem 0;
  align-items: start;
}

.story-panel {
  position: sticky;
  top: 6rem;
  min-height: 28rem;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(16px);
}

.story-panel h2 {
  margin-top: 0.75rem;
  color: rgb(15, 23, 42);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  font-weight: 900;
}

.story-panel p:not(.eyebrow) {
  margin-top: 1.25rem;
  color: rgb(71, 85, 105);
  line-height: 1.75;
}

.story-index {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
}

.story-index-item {
  position: relative;
  padding-left: 1.25rem;
  color: rgb(100, 116, 139);
  font-size: 0.875rem;
  font-weight: 700;
}

.story-index-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgb(203, 213, 225);
}

.story-index-item.is-active {
  color: rgb(15, 23, 42);
}

.story-index-item.is-active::before {
  background: var(--coral);
}

.story-steps {
  display: grid;
  gap: 1rem;
}

.story-step {
  min-height: 54vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.07);
  opacity: 0.58;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.story-step.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(249, 115, 22, 0.42);
}

.step-number {
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 900;
}

.story-step h3 {
  margin-top: 0.7rem;
  color: rgb(15, 23, 42);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
  font-weight: 850;
}

.story-step p {
  margin-top: 1rem;
  color: rgb(71, 85, 105);
  font-size: 1rem;
  line-height: 1.8;
}

.curriculum-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
}

.snapshot-item {
  position: relative;
  display: grid;
  gap: 0.45rem;
  min-height: 8.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 253, 250, 0.7)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34%);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.snapshot-item::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--coral));
  opacity: 0.9;
}

.snapshot-item svg {
  color: var(--teal);
}

.snapshot-item span {
  color: rgb(100, 116, 139);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.snapshot-item strong {
  color: rgb(15, 23, 42);
  font-size: 1.05rem;
  font-weight: 850;
}

.resume-grid {
  align-items: start;
}

.resume-main,
.resume-sidebar {
  min-width: 0;
}

.resume-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}

.card[id] {
  scroll-margin-top: 7rem;
}

#story,
#topo {
  scroll-margin-top: 7rem;
}

/* Card Components */
.card {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 0.5rem;
  box-shadow: 0 16px 45px rgb(15 23 42 / 0.07);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--coral));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.6)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(17 24 39);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0;
}

.card-content {
  padding: 1.5rem;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
  padding: 0.5rem 1rem;
  height: 2.5rem;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgb(59 130 246 / 0.5);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  background-color: var(--blue);
  color: white;
}

.btn-primary:hover {
  background-color: rgb(30 64 175);
}

.btn-secondary {
  background-color: rgb(243 244 246);
  color: rgb(17 24 39);
}

.btn-secondary:hover {
  background-color: rgb(229 231 235);
}

.btn-outline {
  border: 1px solid rgb(209 213 219);
  background-color: transparent;
  color: rgb(55 65 81);
}

.btn-outline:hover {
  background-color: rgb(249 250 251);
}

.btn-ghost {
  background-color: transparent;
  color: rgb(75 85 99);
}

.btn-ghost:hover {
  background-color: rgb(243 244 246);
}

.btn-sm {
  height: 2.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* Badge Components */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgb(224 242 241);
  color: rgb(15 118 110);
}

.badge-secondary {
  background-color: rgb(243 244 246);
  color: rgb(31 41 55);
}

.badge-outline {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-color: rgba(255, 255, 255, 0.55);
  color: rgb(55 65 81);
}

/* Timeline Components */
.timeline-item {
  border-left: 1px solid rgb(203 213 225);
  padding-left: 1.5rem;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -0.55rem;
  top: 0;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.timeline-content h3 {
  color: rgb(15, 23, 42);
}

.timeline-content > div:first-child {
  gap: 0.75rem;
}

.timeline-item:hover .timeline-content h3 {
  color: var(--blue);
}

/* Project Card */
.project-card {
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.5rem;
  padding: 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 32%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--teal));
  opacity: 0.65;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

.project-card h3 {
  color: rgb(15, 23, 42);
  font-weight: 800;
}

.project-card .btn {
  min-width: 2.25rem;
  width: auto;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}

.resume-sidebar .card {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.resume-sidebar .card-content > div:not(.separator) {
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.5rem;
  background: rgba(248, 250, 252, 0.72);
}

.resume-sidebar h4,
.resume-sidebar h3 {
  color: rgb(15, 23, 42);
}

/* Separator */
.separator {
  height: 1px;
  background-color: rgb(229 231 235);
  width: 100%;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hover effects */
.card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.2s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .site-hero {
    min-height: auto;
    padding: 0.75rem;
  }

  .hero-nav {
    top: 0.75rem;
    width: calc(100% - 1.5rem);
    border-radius: 1rem;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a {
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding: 4rem 0 2rem;
  }

  .hero-actions,
  .contact-strip,
  .backend-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .contact-strip span,
  .backend-flow span {
    width: 100%;
    justify-content: center;
  }

  .backend-flow svg {
    display: none;
  }

  .profile-photo,
  .backend-console,
  .hero-stat-panel {
    justify-self: center;
  }

  .tech-status {
    margin: -3rem auto 0;
  }

  .hero-stat-panel {
    margin-top: 0;
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
  }

  .story-panel {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 1.25rem;
  }

  .story-index {
    display: none;
  }

  .story-step {
    min-height: auto;
    padding: 1.25rem;
  }

  .curriculum-snapshot {
    grid-template-columns: 1fr;
  }

  .snapshot-item {
    min-height: auto;
  }

  .backend-section {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .backend-section .backend-console {
    justify-self: center;
  }

  .resume-sidebar {
    position: static;
  }

  .card-content {
    padding: 1rem;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
  }
  
  .timeline-item {
    padding-left: 1rem;
  }
  
  .timeline-dot {
    left: -0.375rem;
    width: 0.75rem;
    height: 0.75rem;
  }
}

/* Animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.6s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* Print styles */
@media print {
  .btn {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid rgb(209 213 219);
  }
  
  body {
    background-color: white;
  }
}

/* Focus styles for accessibility */
.btn:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgb(59 130 246 / 0.5), 0 0 0 4px rgb(59 130 246 / 0.25);
}

/* Loading state */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(to right, rgb(37 99 235), rgb(147 51 234));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Width utility */
.w-full {
  width: 100%;
}

/* Dark mode support (opcional) */
@media (prefers-color-scheme: dark) {
  :root {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 9% 17%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
  }
}
