/* style.css - Visual aproximado Reclame Aqui 2025/2026 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.5;
}

/* Header superior (fixo ou sticky em mobile) */
header {
    background: #ffffff;          /* Verde escuro oficial RA */
    color: rgb(14, 71, 0);
    padding: 12px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #004d40;
    text-decoration: none;
}

.logo span {
    color: #00a650;               /* Verde principal RA */
}

.hamburger {
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #008c44;
}

/* Menu lateral (agora abrindo da DIREITA) */
.sidebar {
    position: fixed;
    top: 0;
    right: -280px;               /* Começa escondido à direita */
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 12px rgba(0,0,0,0.25);  /* Sombra à esquerda agora */
    transition: right 0.3s ease;   /* Transição no 'right' */
    z-index: 999;
    overflow-y: auto;
}

.sidebar.open {
    right: 0;                    /* Abre trazendo da direita */
}

/* Overlay continua igual */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    color: white;
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 20px;
}

.close-btn {
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

.sidebar-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.sidebar-content a,
.sidebar-content button {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.sidebar-content a:hover,
.sidebar-content button:hover {
    background: #f0f7f4;
}

.sidebar-content .icon {
    margin-right: 12px;
    font-size: 20px;
    color: #00a650;
}

.reclamar-btn {
    background: #d32f2f !important;
    color: white !important;
    border-radius: 6px !important;
    margin: 16px 0 !important;
    justify-content: center;
    font-weight: bold;
}

.footer-links {
    margin-top: 24px;
    font-size: 13px;
    color: #666;
}

.footer-links a {
    display: block;
    margin: 8px 0;
    color: #0066cc;
    text-decoration: none;
}

/* Conteúdo principal */
main {
    margin-top: 70px;           /* espaço pro header fixo */
    padding: 24px 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 28px;
    color: #004d40;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    color: #555;
    text-align: center;
    margin-bottom: 32px;
    font-size: 16px;
}

/* Cards de perfil */
.profile-choice {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.profile-card.consumidor .icon {
    color: #00a650;
}

.profile-card.empresa .icon {
    color: #1976d2;
}

.profile-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.profile-card h2 {
    font-size: 22px;
    margin: 8px 0 12px;
    color: #222;
}

.profile-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 16px;
    background: #00a650;
    color: white;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover {
    background: #008c44;
}

.btn-empresa {
    background: #1976d2;
}

.btn-empresa:hover {
    background: #1565c0;
}

/* Formulário de login (página inicial) */
.form-container {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

input:focus {
    border-color: #00a650;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,166,80,0.15);
}

.error {
    color: #d32f2f;
    font-size: 14px;
    margin: 8px 0;
    text-align: center;
}

/* OTP pages */
.otp-info {
    text-align: center;
    margin-bottom: 24px;
    font-size: 15px;
}

.otp-info strong {
    color: #004d40;
}

/* Responsividade */
@media (min-width: 768px) {
    main {
        max-width: 560px;
    }
}

/* Toast alerta amarelo suave - reforço de email enviado */
.toast-alert {
    position: fixed;
    top: -100px;                   /* Começa escondido acima */
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: 420px;
    background: #fff3cd;           /* Amarelo suave */
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2000;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.toast-alert.show {
    top: 80px;                     /* Desce para posição visível */
    visibility: visible;
    opacity: 1;
}

/* Animação de entrada (desce de cima) */
@keyframes slideInDown {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 80px;
        opacity: 1;
    }
}

/* Animação de saída (sobe para cima) */
@keyframes slideOutUp {
    from {
        top: 80px;
        opacity: 1;
    }
    to {
        top: -100px;
        opacity: 0;
    }
}

.toast-alert {
    animation: slideInDown 0.5s forwards;
}

.toast-alert.hide {
    animation: slideOutUp 0.5s forwards;
}

.toast-content strong {
    color: #664d03;
    font-size: 16px;
}

/* Botão X de fechar no toast */
.toast-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #856404;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
}

.toast-close-btn:hover {
    opacity: 1;
    color: #664d03;
}

/* Ajuste leve no padding do toast para caber o X */
.toast-alert {
    padding: 20px 40px 20px 20px;  /* mais espaço à direita pro X */
}


/* Estilo para erro no OTP (feedback visual) */
.otp-error-msg {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 6px;
}

input[name="code"]:focus {
    border-color: #00a650 !important;
    box-shadow: 0 0 0 3px rgba(0,166,80,0.15);
}


/* Toast de erro vermelho suave (para login após OTP falhar) */
.toast-error {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: 420px;
    background: #ffebee;           /* Vermelho suave */
    color: #b71c1c;
    border: 2px solid #d32f2f;    /* Contorno vermelho forte */
    border-radius: 8px;
    padding: 16px 40px 16px 20px;  /* Espaço pro X */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2000;
    font-size: 15px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.toast-error.show {
    top: 80px;
    visibility: visible;
    opacity: 1;
}

@keyframes slideInDownError {
    from { top: -100px; opacity: 0; }
    to   { top: 80px; opacity: 1; }
}

@keyframes slideOutUpError {
    from { top: 80px; opacity: 1; }
    to   { top: -100px; opacity: 0; }
}

.toast-error {
    animation: slideInDownError 0.5s forwards;
}

.toast-error.hide {
    animation: slideOutUpError 0.5s forwards;
}

.toast-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #b71c1c;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
}

.toast-close-btn:hover {
    opacity: 1;
}


/* Estilo para erro no login */
.login-error-msg {
    color: #d32f2f;
    font-weight: 500;
    padding: 8px;
    border-radius: 4px;
}

input[name="email"], input[name="password"] {
    transition: border-color 0.3s ease;
}


/* Rodapé completo ==========================================================================*/
.footer {
    margin-top: 40px;
    padding: 24px 16px;
    background: #fff;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    flex-wrap: nowrap;
    flex-direction: row;
}

.footer-links-principais {
    margin-bottom: 24px;
}

.footer-cadastro {
    margin-bottom: 16px;
}

.footer-cadastro a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.footer-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-lista li {
    margin: 12px 0;
}

.footer-lista a {
    color: #333;
    text-decoration: none;
}

.footer-redes {
    margin: 32px 0;
}

.footer-redes p {
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-redes-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 28px;
    color: #004d40;
}

.footer-redes-icons a {
    color: inherit;
}

.footer-logo {
    margin-top: 32px;
    font-size: 20px;
    font-weight: bold;
    color: #004d40;
}

.footer-logo span {
    color: #00a650;
}

/* Barra de navegação inferior fixa (mobile) */
.nav-inferior {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.nav-inferior a {
    text-align: center;
    color: #004d40;
    text-decoration: none;
    font-size: 12px;
}

.nav-inferior i {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.nav-inferior a:last-child {
    color: #00a650;
    font-weight: 600;
}

/* Espaçamento para não sobrepor o conteúdo principal */
.espacamento-inferior {
    height: 70px;
}

/* Responsividade para o rodapé */
@media (max-width: 480px) {
    .footer {
        padding: 16px 12px;
        font-size: 13px;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    .footer-redes-icons {
        gap: 16px;
        font-size: 24px;
    }
    
    .footer-lista li {
        margin: 8px 0;
    }
}
