/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a66c2;
    --secondary: #25d366;
    --accent: #168aad;
    --bg: #ffffff;
    --bg-light: #f3f4f6;
    --text: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

header nav {
    display: flex;
    gap: 24px;
}

header nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--primary);
}

/* Logo */
header .logo {
    height: 40px;
    width: auto;
    display: block;
    transition: opacity 0.3s;
}

header .logo:hover {
    opacity: 0.8;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: #0552a0;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-secondary:hover {
    background: #1fa853;
}

/* Seções */
section {
    padding: 80px 20px;
}

section.hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0ebff 100%);
    padding: 80px 20px;
}

section.white {
    background: white;
}

section.gray {
    background: var(--bg-light);
}

/* Títulos */
h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Grid */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.card-header {
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-content {
    color: var(--text-light);
    font-size: 14px;
}

/* Accordion */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 16px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 16px;
}

.accordion-content.active {
    max-height: 500px;
    padding: 16px;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

table th {
    background: var(--bg-light);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

table tr:hover {
    background: var(--bg-light);
}

/* Listas */
ul, ol {
    margin-left: 20px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-major {
    background: #fee2e2;
    color: #991b1b;
}

.badge-feature {
    background: #dcfce7;
    color: #166534;
}

.badge-bugfix {
    background: #dbeafe;
    color: #1e40af;
}

.badge-improvement {
    background: #fef3c7;
    color: #92400e;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    margin-bottom: 32px;
    position: relative;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 2px;
    height: calc(100% + 20px);
    background: var(--border);
}

.timeline-item:last-child::after {
    display: none;
}

/* Formulários */
input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    section {
        padding: 40px 20px;
    }

    header nav {
        display: none;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}

/* Utilitários */
.text-center {
    text-align: center;
}

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

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-8 {
    margin-top: 32px;
}

.mb-8 {
    margin-bottom: 32px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.gap-8 {
    gap: 32px;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.opacity-90 {
    opacity: 0.9;
}

.rounded-lg {
    border-radius: 8px;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.italic {
    font-style: italic;
}

.font-bold {
    font-weight: 700;
}

.space-y-2 > * + * {
    margin-top: 8px;
}

.space-y-4 > * + * {
    margin-top: 16px;
}

/* Footer */
footer {
    background: #111827;
    color: #d1d5db;
    padding: 48px 0;
    border-top: 1px solid #1f2937;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

footer h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 16px;
}

footer p {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: white;
}

footer .footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    margin-top: 40px;
    text-align: center;
}

footer .footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
}

@media (max-width: 768px) {
    footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    footer {
        padding: 40px 0;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover {
    background-color: #1fa853;
    box-shadow: 2px 2px 5px #666;
    transform: scale(1.05);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Estilos para a lista de atualizações (atualizacoes.php) */
.update-description ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 8px;
    margin-bottom: 0; /* Remove a margem inferior padrão para evitar espaço extra */
}

.update-description li {
    margin-bottom: 4px;
    color: var(--text); /* Cor mais escura para melhor leitura */
    line-height: 1.5;
    font-size: 15px;
}

/* Estilos para o conteúdo do FAQ (ajuda.php) */
.accordion-content {
    /* Garante que o texto dentro do accordion não tenha formatação de pré-formatação */
    white-space: normal;
    padding: 0 16px; /* Padding horizontal, vertical 0 */
}

.accordion-content.active {
    max-height: 500px;
    padding: 16px;
}

.accordion-content p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text);
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* Cookie */
    .cookie-notification {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: #333;
      color: #fff;
      padding: 10px;
      text-align: center;
      display: none;
      box-sizing: border-box;
      z-index: 998;
    }

    .cookie-notification button {
      background-color: #fff;
      border-radius: 10px;
      color: #333;
      padding: 5px 10px;
      border: none;
      cursor: pointer;
      margin-left: 10px;
    }