/* =========================================
   PETJOY - ESTILO VISUAL (Kyore Enterprise)
   ========================================= */

:root {
    /* PALETA CYBER-POP */
    --primary: #ff9ff3;       /* Rosa Pastel (Fundo) */
    --primary-dark: #f368e0;  /* Rosa Choque (Botões/Ações) */
    
    --cyan: #48dbfb;          /* Ciano Claro (Detalhes) */
    --cyan-dark: #0abde3;     /* Ciano Forte (Links/Destaques) */
    
    --dark: #2d3436;          /* Texto Escuro (Quase preto) */
    --gray: #8395a7;          /* Texto Secundário */
    --light: #f7f9fc;         /* Fundo das telas */
    
    --shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sombra suave */
    --radius: 25px;           /* Arredondamento padrão */
}

/* 1. RESET E TIPOGRAFIA GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif; /* Fonte fofa e arredondada */
    -webkit-tap-highlight-color: transparent; /* Remove clique azul no mobile */
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark);
    font-size: 16px;
}

/* 2. O CONTAINER "APP" (A Mágica do Mobile-First) */
.app-container {
    background: var(--light);
    width: 100%;
    height: 100vh; /* No celular ocupa tudo */
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Ajuste para Desktop (Simula um celular flutuando) */
@media (min-width: 500px) {
    .app-container {
        max-width: 420px;
        height: 90vh;
        border-radius: 35px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.25);
        border: 4px solid rgba(255,255,255,0.3);
    }
}

/* 3. HEADER (Topo Fixo) */
.app-header {
    background: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    z-index: 10;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
}
.logo-pet { color: var(--primary-dark); }
.logo-joy { color: var(--cyan-dark); }

.tag-kyore {
    font-size: 0.65rem;
    color: var(--gray);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #eee;
    padding: 4px 8px;
    border-radius: 10px;
}

.btn-logout {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

/* 4. ÁREA DE CONTEÚDO (Scrollável) */
.app-content {
    flex: 1;
    overflow-y: auto; /* Scroll suave */
    padding: 25px;
    padding-bottom: 80px; /* Espaço pro footer não cobrir conteúdo */
}

/* Esconde a barra de rolagem feia */
.app-content::-webkit-scrollbar { width: 0px; background: transparent; }

/* 5. BOTÕES (O "Call to Action") */
.btn-main {
    display: block;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--primary-dark), var(--cyan-dark));
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(243, 104, 224, 0.4); /* Sombra rosa brilhante */
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 15px;
}

.btn-main:active {
    transform: scale(0.96);
    box-shadow: 0 5px 15px rgba(243, 104, 224, 0.3);
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--gray);
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: 0.3s;
}

.btn-secondary:hover {
    color: var(--cyan-dark);
    border-color: #eee;
}

/* 6. CARDS (Estilo Vidro/Branco) */
.card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.02);
    transition: 0.2s;
}

.card:active {
    transform: scale(0.99); /* Efeito tátil */
}

/* 7. FORMULÁRIOS & INPUTS */
input, select, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #eee;
    border-radius: 15px;
    background: #fafafa;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--cyan);
    background: white;
}

/* 8. ALERTS (Mensagens de Erro/Sucesso) */
.alert {
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}
.alert-error {
    background: #ffeaa7;
    color: #d63031;
    border: 2px solid #fdcb6e;
}
.alert-success {
    background: #55efc4;
    color: #00b894;
    border: 2px solid #00b894;
}

/* 9. FOOTER */
.app-footer {
    text-align: center;
    padding: 15px;
    background: white;
    font-size: 0.7rem;
    color: var(--gray);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ANIMAÇÃO DE ENTRADA SUAVE */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.app-content { animation: fadeIn 0.4s ease-out; }