:root {
  --brand-pink-light: #FFD1DC;
  --brand-pink-default: #F472B6;
  --brand-pink-dark: #DB2777;
  --brand-gray-light: #F9FAFB; /* Um pouco mais claro que o F3F4F6 */
  --brand-gray-default: #6B7280;
  --brand-gray-dark: #374151;
}

body {
  background-color: var(--brand-gray-light);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Header */
.nav-link {
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    color: var(--brand-gray-dark);
}
.nav-link:hover {
    color: var(--brand-pink-dark);
}
.nav-link.active {
    color: var(--brand-pink-dark);
    border-bottom-color: var(--brand-pink-default);
}

/* Mobile Nav */
.nav-link-mobile {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--brand-gray-dark);
    border-bottom: 1px solid var(--brand-gray-light);
    text-align: center;
}
.nav-link-mobile:hover {
    background-color: var(--brand-gray-light);
    color: var(--brand-pink-dark);
}


/* Cards */
.info-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
}
.info-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}
.info-card .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #FEF2F2;
    border-radius: 9999px;
    color: var(--brand-pink-dark);
    margin-bottom: 1rem;
}
.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-card .icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.content-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    width: 100%;
}

/* Chat */
.chat-bubble {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
    max-width: 80%;
}
.chat-bubble.ai {
    align-self: flex-start;
}
.chat-bubble.user {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
}
.chat-bubble .message-content {
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    word-break: break-word;
}
.chat-bubble.ai .message-content {
    background-color: white;
    color: var(--brand-gray-dark);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border-top-left-radius: 0.25rem;
}
.chat-bubble.user .message-content {
    background-color: #3B82F6;
    color: white;
    border-top-right-radius: 0.25rem;
}
.chat-bubble.system .message-content {
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    font-style: italic;
    color: #9CA3AF;
    background-color: transparent;
    box-shadow: none;
}
.chat-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    color: white;
}
.chat-icon.ai { background-color: var(--brand-pink-default); }
.chat-icon.user { background-color: #3B82F6; }

.suggestion-chip {
    padding: 0.5rem 1rem;
    background-color: #FFF1F2;
    color: var(--brand-pink-dark);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}
.suggestion-chip:hover {
    background-color: #FFE4E6;
}

/* Spinner for Loading Bubble */
.spinner {
  margin: 0;
  width: 40px;
  text-align: center;
}
.spinner > div {
  width: 8px;
  height: 8px;
  background-color: var(--brand-pink-default);
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
@-webkit-keyframes sk-bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0) }
  40% { -webkit-transform: scale(1.0) }
}
@keyframes sk-bouncedelay {
  0%, 80%, 100% { 
    transform: scale(0);
    -webkit-transform: scale(0);
  } 40% { 
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }
}

/* Generated Content */
.generated-content-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #FEF2F2;
    border-radius: 0.5rem;
    border: 1px solid #FFE4E6;
    color: var(--brand-gray-dark);
    min-height: 50px;
}
.generated-content {
    white-space: pre-wrap;
    animation: fadeIn 0.5s ease-in-out;
}
.loading-placeholder {
    color: var(--brand-gray-default);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Pix Card */
.pix-card {
    max-width: 42rem; /* Tailwind's max-w-3xl */
    margin-left: auto;
    margin-right: auto;
    background-color: #FEF2F2;
    border: 1px solid var(--brand-pink-light);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}
.pix-key-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border: 1px solid #FFD1DC;
    border-radius: 9999px;
    padding-left: 1.5rem;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.pix-key-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.125rem;
    color: var(--brand-gray-dark);
    font-weight: 600;
}
.copy-pix-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-pink-default);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.copy-pix-btn:hover {
    background-color: var(--brand-pink-dark);
}
.copy-pix-btn.copied {
    background-color: #16A34A; /* green-600 */
}

/* Transparency Page */
.report-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--brand-gray-light);
    border-radius: 0.5rem;
    color: var(--brand-gray-dark);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid #E5E7EB;
}
.report-link:hover {
    background-color: white;
    border-color: var(--brand-pink-light);
    color: var(--brand-pink-dark);
    transform: translateX(4px);
}
.report-link svg {
    color: var(--brand-pink-default);
    flex-shrink: 0;
}
.report-link.disabled {
    background-color: #F3F4F6;
    color: #9CA3AF;
    pointer-events: none;
}
.report-link.disabled svg {
    color: #9CA3AF;
}

/* Sponsors Page */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-gray-light);
    height: 8rem;
    border-radius: 0.5rem;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease-in-out;
}
.sponsor-card:hover {
    border-color: var(--brand-pink-light);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

/* Footer */
.footer-link {
    background: none;
    border: none;
    color: #FCE7F3; /* pink-100 */
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Legal Text Pages */
.legal-text-container {
    color: var(--brand-gray-dark);
    line-height: 1.75;
}
.legal-text-container h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--brand-pink-dark);
}
.legal-text-container p, .legal-text-container ul {
    margin-bottom: 1rem;
}
.legal-text-container ul {
    list-style-position: inside;
    list-style-type: disc;
    padding-left: 1rem;
}
.legal-text-container a {
    color: var(--brand-pink-dark);
    text-decoration: underline;
}