/* ============================================
   Apadrinhe uma Criança — Estilos Customizados
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary:    #25b0e6;
    --primary-dk: #2caddd;
    --secondary:  #205d83;
    --accent:     #90e0fd;
    --light-bg:   #fef9f5;
    --card-shadow: 0 4px 20px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: #333;
}

/* ---- Navbar ---- */
.navbar-public {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 2px 10px rgba(231,111,81,.3);
}
.navbar-public .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff !important;
    letter-spacing: -.3px;
}
.navbar-public .tagline {
    color: rgba(255,255,255,.85);
    font-size: .85rem;
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    background-image: url("/bg.png");
    color: #fff;
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.hero h1 { font-weight: 700; font-size: 2.2rem; margin-bottom: .5rem; }
.hero p  { font-size: 1.05rem; opacity: .9; max-width: 560px; margin: 0 auto; }

/* ---- Children Cards ---- */
.card-crianca {
    border: none;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    transition: transform .25s, box-shadow .25s;
    overflow: hidden;
    height: 100%;
    background: #fff;
}
.card-crianca:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(0,0,0,.13);
}
.crianca-emoji {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: .6rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
.crianca-genero {
    font-weight: 700;
    font-size: 1.15rem;
    color: #222;
    margin-bottom: .2rem;
}
.crianca-detalhe {
    font-size: .9rem;
    color: #666;
    margin-bottom: .15rem;
}
.crianca-tamanho {
    display: inline-block;
    background: #fff3e8;
    color: var(--primary);
    border-radius: 50px;
    padding: .2rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    margin-top: .35rem;
}
.btn-apadrinhar {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: .92rem;
    padding: .5rem 1.5rem;
    width: 100%;
    transition: opacity .2s, transform .2s;
}
.btn-apadrinhar:hover {
    opacity: .9;
    transform: scale(1.02);
    color: #fff;
}

/* ---- Badge Menina (pink) ---- */
.badge-pink {
    background-color: #f48fb1;
    color: #fff;
}

/* ---- Form Apadrinhar ---- */
.form-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}
.form-label { font-weight: 500; font-size: .9rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(231,111,81,.2);
}
.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: .65rem 2.5rem;
    font-size: 1rem;
    transition: opacity .2s;
}
.btn-submit:hover { opacity: .9; color: #fff; }

/* ---- Success Page ---- */
.success-card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    max-width: 560px;
    margin: 4rem auto;
}
.success-icon { font-size: 5rem; }

/* ---- Criança Selecionada (form top) ---- */
.crianca-selecionada {
    background: linear-gradient(135deg, #fff7f0, #fff);
    border: 2px solid var(--accent);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.crianca-selecionada img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
}
.crianca-selecionada .nome { font-weight: 700; font-size: 1.1rem; color: #222; }

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #999;
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }

/* ---- Admin Sidebar ---- */
.admin-wrapper { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar .sidebar-brand {
    padding: 1.4rem 1.2rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    border-bottom: 1px solid #334155;
    line-height: 1.3;
}
.sidebar .sidebar-brand small { font-weight: 400; font-size: .75rem; color: #94a3b8; display: block; }
.sidebar .nav-link {
    color: #cbd5e1;
    padding: .65rem 1.2rem;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    border-radius: 0;
    transition: background .15s, color .15s;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: #334155;
    color: #fff;
}
.sidebar .nav-section {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    padding: 1rem 1.2rem .3rem;
}
.sidebar .logout-link {
    margin-top: auto;
    border-top: 1px solid #334155;
    padding: .9rem 1.2rem;
    color: #2caddd;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    transition: background .15s;
}
.sidebar .logout-link:hover { background: #334155; }

.admin-content { flex: 1; padding: 2rem; background: #f8fafc; overflow-x: hidden; }
.admin-content .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

/* ---- Admin Cards (stats) ---- */
.stat-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: #1e293b; }
.stat-card .stat-label { font-size: .82rem; color: #64748b; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .admin-wrapper { flex-direction: column; }
    .sidebar { width: 100%; height: auto; min-height: unset; position: relative; }
    .admin-content { padding: 1rem; }
    .hero h1 { font-size: 1.6rem; }
}
