@charset "utf-8";
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header:not(.navbar) {
    text-align: center;
    padding: 40px 0;
}

/* Logo - funciona para imagem OU texto */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 56px; /* ajuste fino aqui */
    width: auto;
}


.logo-small {
    width: 80px;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    color: #028090;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #666;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-logo img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #028090;
    color: white;
}

.btn-primary:hover {
    background: #016470;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-block {
    width: 100%;
    display: block;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #028090;
}

/* Auth Card */
.auth-card {
    max-width: 450px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #028090;
}

.form-card {
    max-width: 600px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Messages */
.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 8%;
    min-height: 90px;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Pets Grid */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.pet-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.pet-card:hover {
    transform: translateY(-5px);
}

.pet-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pet-card-content {
    padding: 20px;
}

.pet-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.pet-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.pet-card .qr-code {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.empty-state p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Photo Preview */
#photoPreview {
    margin-top: 15px;
}

#photoPreview img {
    max-width: 200px;
    border-radius: 8px;
}

/* Text Center */
.text-center {
    text-align: center;
    margin-top: 20px;
}

.text-center a {
    color: #028090;
    text-decoration: none;
    font-weight: 600;
}

.text-center a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: #999;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

.pet-detail-header {
    display: flex;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pet-detail-photo {
    flex-shrink: 0;
}

.pet-detail-photo img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

.pet-detail-photo .pet-photo-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 12px;
}

.pet-detail-info {
    flex-grow: 1;
}

.pet-detail-info h1 {
    margin-bottom: 20px;
    color: #1E293B;
}

.pet-detail-info p {
    margin-bottom: 10px;
    color: #64748B;
}

.pet-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1E293B;
}

.history-item {
    padding: 15px;
    background: #F8FAFC;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #028090;
}

.history-item strong {
    display: block;
    color: #1E293B;
    margin-bottom: 5px;
}

.history-item p {
    color: #64748B;
    font-size: 0.9rem;
    margin: 5px 0;
}

.history-item small {
    color: #94A3B8;
    font-size: 0.85rem;
}

.history-item.active {
    border-left-color: #10B981;
}

.history-item.inactive {
    border-left-color: #94A3B8;
    opacity: 0.7;
}

.history-item.completed {
    border-left-color: #10B981;
    opacity: 0.7;
}

.history-item.pending {
    border-left-color: #F59E0B;
}

.btn-danger {
    background: #EF4444;
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pet-detail-header {
        flex-direction: column;
    }
    
    .pet-detail-photo img,
    .pet-detail-photo .pet-photo-placeholder {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Adicionar no final do style.css */

/* Foto Atual */
#currentPhoto {
    margin-bottom: 15px;
    text-align: center;
}

#currentPhoto img {
    display: block;
    margin: 0 auto 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#currentPhoto .pet-photo-placeholder {
    margin: 0 auto;
    border-radius: 8px;
}

#currentPhoto small {
    color: #64748B;
}

#photoPreview img {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================================
   CSS ADICIONAL PARA BOTÕES DE EDITAR/DELETAR
   Adicionar no final do arquivo css/style.css
   ============================================ */

/* History item header com botões */
.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-item-header strong {
    flex-grow: 1;
}

.history-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Botões de ícone */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    opacity: 0.7;
}

.btn-icon:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.btn-icon:active {
    transform: scale(0.95);
}

/* Estilos específicos para cada tipo de item */
.history-item.pending {
    border-left-color: #F59E0B;
}

.history-item.completed {
    border-left-color: #10B981;
    opacity: 0.8;
}

.history-item.completed strong {
    text-decoration: line-through;
    color: #6B7280;
}

.history-item.active {
    border-left-color: #10B981;
}

.history-item.inactive {
    border-left-color: #94A3B8;
    opacity: 0.7;
}

/* Responsivo */
@media (max-width: 768px) {
    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-item-actions {
        margin-top: 10px;
        align-self: flex-end;
    }
}

/* ============================================
   CSS ADICIONAL PARA PÁGINA PÚBLICA DO QR CODE
   Adicionar no final do arquivo css/style.css
   ============================================ */

/* Pet Public Card */
.pet-public-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.pet-photo-public {
    margin-bottom: 20px;
}

.pet-info-content p {
    margin-bottom: 10px;
    color: #475569;
}

.pet-info-content strong {
    color: #1E293B;
}

/* Botão de tamanho pequeno */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* QR Code Section Styles */
#qrCodeImage {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#qrCodeImage img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* Responsivo para página pública */
@media (max-width: 768px) {
    .pet-public-card {
        padding: 20px;
    }
    
    .pet-photo-public img,
    .pet-photo-placeholder {
        max-width: 200px !important;
    }
}

/* ==================================================
   CSS PARA SELETOR DE IDIOMAS
   ================================================== */

/* Language Selector */

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector select {
    padding: 8px 12px;
    border: 2px solid #028090;
    border-radius: 8px;
    background: white;
    color: #1E293B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.language-selector select:hover {
    background: #F0FDFA;
    border-color: #00A896;
}

.language-selector select:focus {
    outline: none;
    border-color: #00A896;
    box-shadow: 0 0 0 3px rgba(2, 128, 144, 0.1);
}

/* Ou integrado na navbar */
.navbar .language-selector {
    position: static;
    margin-left: auto;
}

.navbar .language-selector select {
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #E5E7EB;
}

/* Mobile */
@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .language-selector select {
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* ==================================================
   LANDING PAGE PROFISSIONAL (NOVO LAYOUT)
   ================================================== */

/* Navbar nova versão */
.navbar {
    border-radius: 0;
    margin-bottom: 0;
    padding: 20px 10%;
}

.navbar nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.btn-outline {
    border: 2px solid #028090;
    color: #028090;
    background: transparent;
}

.btn-outline:hover {
    background: #028090;
    color: white;
}

/* Hero nova estrutura */
.hero {
    max-width: 900px;
    margin: 80px auto;
    padding: 80px 40px;
    text-align: center;
    box-shadow: none;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #1E293B;
}

.hero p {
    font-size: 1.2rem;
    color: #64748B;
    margin-bottom: 30px;
}

/* Seções padrão */
.section {
    padding: 80px 10%;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.section-alt {
    background: #F8FAFC;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1E293B;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.grid-3 div,
.grid-4 div {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Footer landing */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #94A3B8;
    border-top: 1px solid #E5E7EB;
    margin-top: 60px;
}

/* Responsivo */
@media (max-width: 900px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}

/* BRAND (logo + nome) */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* FORÇA TAMANHO DA LOGO NA NAVBAR */
header.navbar .brand img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #028090;
    letter-spacing: -0.5px;
}


/* ==========================================================
   MELHORIAS PARA NAVBAR MOBILE
   Adicione estas regras no final do seu style.css
   ========================================================== */

/* Navbar melhorada */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 5%;
    min-height: 90px;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.navbar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navbar nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.navbar nav a:hover {
    background: #F0F9FF;
    color: #028090;
}

/* Language selector ajustado */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* Responsive melhorado */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px 4% !important;
        min-height: auto !important;
        align-items: center !important; /* FIX IPHONE */
    }
    
    .navbar .brand {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important; /* FIX IPHONE */
    }
    
    .navbar nav {
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important; /* FIX IPHONE */
        gap: 10px !important;
    }
    
    .navbar nav a {
        padding: 10px 15px !important;
        font-size: 14px !important;
        text-align: center !important; /* FIX IPHONE */
    }
    
    .navbar nav .btn {
        width: auto !important;
        min-width: 100px !important;
        text-align: center !important; /* FIX IPHONE */
    }
}

/* Mobile pequeno (celulares) - IPHONE FIX */
@media (max-width: 600px) {
    .navbar {
        align-items: center !important; /* FIX IPHONE */
    }
    
    .navbar nav {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
        align-items: center !important; /* FIX IPHONE */
    }
    
    .navbar nav a {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 20px !important;
        display: block !important; /* FIX IPHONE */
    }
    
    .navbar nav .btn {
        width: 100% !important;
        text-align: center !important;
        display: block !important; /* FIX IPHONE */
    }
}


/* Landscape phones */
@media (max-width: 900px) and (orientation: landscape) {
    .navbar nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .navbar nav a {
        width: auto;
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* ==========================================================
   FIM DAS MELHORIAS MOBILE
   ========================================================== */