/* --- Variáveis "Natureza & Vida" --- */
:root {
    --primary: #10b981; /* Verde Esmeralda */
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --accent: #f59e0b; /* Laranja/Âmbar para destaque */
    --bg-gradient: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    --text-main: #064e3b;
    --text-muted: #065f46;
    --border: #a7f3d0;
    --radius: 20px; 
    --shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1), 0 2px 4px -1px rgba(16, 185, 129, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(16, 185, 129, 0.15), 0 10px 10px -5px rgba(16, 185, 129, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-gradient);
    /* Textura de bolinhas de fundo */
    background-image: radial-gradient(#10b981 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-main);
    line-height: 1.7;
    padding-bottom: 80px;
    min-height: 100vh;
    cursor: default;
}

/* --- Cursor Brilhante Global --- */
.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(255,255,255,0) 70%);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease-out;
    display: none;
}

@media (hover: hover) {
    .cursor-glow { display: block; }
}

/* --- Animações --- */
@keyframes popUp {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* --- Vagalumes --- */
.firefly-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: -1; overflow: hidden;
}
.firefly {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px 2px rgba(255, 255, 200, 0.4);
    animation: float-up linear infinite;
}

/* --- Header Vida --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 40px;
}

header h1 { 
    font-size: 2.6rem; 
    background: linear-gradient(to right, #059669, #047857);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px; 
    letter-spacing: -1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
header .logo-icon {
    font-size: 2rem;
    background: none;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    animation: pulse 2s infinite ease-in-out;
}
header p { color: var(--text-muted); font-size: 1.1rem; font-weight: 500; }

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

/* --- Cards --- */
.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 35px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.card h2 {
    margin-bottom: 25px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
}

/* --- Formulário --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid transparent;
    background: #f0fdf4;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    background: #fff;
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

/* --- Botão --- */
.btn {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

.btn:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.5);
}
.btn:active { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; filter: grayscale(1); }

/* --- Lista de Casos Profissional --- */
.case-list { display: grid; gap: 25px; perspective: 1000px; }

.case-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --mouse-x: 50%;
    --mouse-y: 50%;
    animation: popUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

/* Efeito Spotlight */
.case-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y), 
        rgba(255, 255, 255, 0.4), 
        transparent 40%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.case-item:hover::before { opacity: 1; }

/* Conteúdo por cima do brilho */
.case-item > * { position: relative; z-index: 2; }

/* Hover 3D */
.case-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(16, 185, 129, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Linha Lateral Colorida */
.case-item::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--bg-gradient);
    transition: width 0.3s ease;
}
.case-item[data-status="Sucesso"]::after { background: linear-gradient(to bottom, #34d399, #059669); }
.case-item[data-status="Insucesso"]::after { background: linear-gradient(to bottom, #fca5a5, #ef4444); }
.case-item[data-status="Pendente"]::after { background: linear-gradient(to bottom, #cbd5e1, #64748b); }

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #d1fae5;
    flex-wrap: wrap;
    gap: 10px;
}

.author-info { font-weight: 800; font-size: 1.2rem; color: #065f46; display: flex; align-items: center; gap: 8px;}
.author-info::before { content: '🐾'; font-size: 1.1rem; }

.species-tag {
    background: #ecfdf5;
    color: #047857;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-details { color: var(--text-muted); font-size: 1rem; padding-left: 5px; }
.case-row { display: flex; margin-bottom: 10px; gap: 10px; align-items: baseline;}
.case-label { font-weight: 700; min-width: 100px; color: #059669; font-size: 0.9rem; }

/* --- Badges de Status --- */
.status-badge {
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-left: auto;
}
.status-pendente { background: #f3f4f6; color: #4b5563; border: 1px solid #d1d5db; }
.status-sucesso { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.status-insucesso { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* --- Responsividade --- */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    header h1 { font-size: 2rem; }
    .case-header { flex-direction: column; align-items: flex-start; }
    .status-badge { margin-left: 0; margin-top: 8px; }
}

.loading-msg { text-align: center; padding: 40px; color: var(--text-muted); }
.empty-msg { text-align: center; padding: 40px; color: var(--text-muted); font-style: italic; }