/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    line-height: 1.5;
}

/* Container principal */
.page-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.main-content {
    text-align: center;
}

/* Título do site */
.site-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    line-height: 1.2;
}

/* Mensagens de status */
.status-message {
    font-size: 18px;
    color: #000000;
    margin-bottom: 32px;
    font-weight: 400;
}

.security-message {
    font-size: 16px;
    color: #000000;
    margin: 24px 0;
    font-weight: 400;
}

/* Container de verificação */
.verification-container {
    margin: 32px 0;
}

/* Caixa de verificação principal */
.verification-box {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Container do checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Checkbox personalizado */
.human-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
}

.human-checkbox:hover {
    border-color: #9ca3af;
}

.human-checkbox:checked {
    background: #10b981;
    border-color: #10b981;
}

.human-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Label do checkbox */
.checkbox-label {
    font-size: 16px;
    color: #000000;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

/* Branding da Cloudflare */
.cloudflare-branding {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cloudflare-logo svg {
    width: 20px;
    height: 20px;
}

.branding-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.5px;
    line-height: 1;
}

.privacy-terms {
    font-size: 10px;
    color: #6b7280;
    line-height: 1;
    margin-top: 2px;
}

/* Status de verificação */
.verification-status {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading dots animation */
.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-text {
    font-size: 16px;
    color: #000000;
    font-weight: 400;
}

/* Status de sucesso */
.success-status {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.success-icon {
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 16px;
    height: 16px;
}

.success-text {
    font-size: 16px;
    color: #000000;
    font-weight: 400;
}

/* Seção expansível */
.expandable-section {
    margin-top: 32px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.expandable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 1px solid #e1e5e9;
    font-size: 14px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.expandable-header:hover {
    color: #374151;
}

.expand-icon {
    transition: transform 0.2s ease;
    color: #6b7280;
}

.expandable-header.expanded .expand-icon {
    transform: rotate(180deg);
}

.expandable-content {
    padding: 16px 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    border-bottom: 1px solid #e1e5e9;
}

/* Animações de transição */
.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Responsividade */
@media (max-width: 640px) {
    .page-container {
        padding: 16px;
    }
    
    .site-title {
        font-size: 28px;
    }
    
    .status-message {
        font-size: 16px;
    }
    
    .verification-box,
    .verification-status,
    .success-status {
        max-width: 100%;
        padding: 16px;
    }
    
    .checkbox-label {
        font-size: 14px;
    }
    
    .brand-name {
        font-size: 11px;
    }
    
    .privacy-terms {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 24px;
    }
    
    .status-message {
        font-size: 14px;
    }
    
    .security-message {
        font-size: 14px;
    }
    
    .verification-box {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .cloudflare-branding {
        justify-content: center;
    }
    
    .branding-text {
        align-items: center;
    }
}

/* Estados de hover e interação */
.human-checkbox:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.expandable-header:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .site-title,
    .status-message,
    .security-message,
    .checkbox-label,
    .status-text,
    .success-text,
    .brand-name {
        color: #ffffff;
    }
    
    .verification-box,
    .verification-status,
    .success-status {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .human-checkbox {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .expandable-header {
        border-color: #404040;
        color: #9ca3af;
    }
    
    .expandable-header:hover {
        color: #d1d5db;
    }
    
    .expandable-content {
        border-color: #404040;
        color: #9ca3af;
    }
}