/* Abas de lembretes (consulta/medicação) */
#reminder-modal .tabs-container {
    margin-bottom: 10px;
    display: flex;
    width: 100%;
}
#reminder-modal .tab-btn {
    padding: 8px 10px;
    border: none;
    background: #eee;
    color: #333;
    border-radius: 6px 6px 0 0;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
    text-align: center;
}
#reminder-modal .tab-btn.active {
    background: #89CFF0;
    color: #fff;
    font-weight: bold;
}
#reminder-modal .tab-content {
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}
#reminder-modal .tab-content.active {
    display: block;
}
/* Tela Splash */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFA500; /* Laranja */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
    background-color: transparent;
    /* Removida a animação pulse pois o GIF já tem animação própria */
}

.splash-loader {
    margin: 20px auto 0;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos básicos para o Petinho */

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
    position: relative;
}

/* Animações de animais nos cantos */
.pet-animations {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.pet-animation {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.pet-animation:hover {
    transform: scale(1.2);
}

.pet-animation.dog {
    top: 20px;
    left: 20px;
    animation: bounce 3s infinite alternate;
}

.pet-animation.cat {
    top: 20px;
    right: 20px;
    animation: bounce 4s infinite alternate-reverse;
}

.pet-animation.bird {
    bottom: 20px;
    left: 20px;
    animation: fly 5s infinite alternate;
}

.pet-animation.turtle {
    bottom: 20px;
    right: 20px;
    animation: wiggle 6s infinite alternate;
}

/* Animações para os animais */
@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes fly {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5px, -5px) rotate(5deg); }
    100% { transform: translate(-5px, -10px) rotate(-5deg); }
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

/* Coraçõezinhos acima do título */
.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.heart {
    position: absolute;
    font-size: 20px;
    top: -20px;
    opacity: 0.8;
    animation: float-heart 5s infinite linear;
}

.heart1 {
    left: calc(50% - 50px);
    animation-delay: 0s;
}

.heart2 {
    left: calc(50% - 25px);
    animation-delay: 1s;
}

.heart3 {
    left: 50%;
    animation-delay: 2s;
}

.heart4 {
    left: calc(50% + 25px);
    animation-delay: 3s;
}

.heart5 {
    left: calc(50% + 50px);
    animation-delay: 4s;
}

@keyframes float-heart {
    0% {
        top: -20px;
        transform: translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 60px;
        transform: translateX(10px) rotate(45deg);
        opacity: 0;
    }
}

header {
    background-color: #FFA500; /* Laranja */
    color: white;
    padding: 1em 0;
    text-align: center;
    position: relative;
}

#dev-link {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-top: -5px;
    margin-bottom: 5px;
    transition: color 0.3s;
}

#dev-link:hover {
    color: white;
    text-decoration: underline;
}

main {
    padding: 1em;
    text-align: center;
    margin-bottom: 20px; /* Reduzido após remoção do footer */
}

#pets-list {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #89CFF0; /* Azul Claro */
    border-radius: 5px;
    min-height: 50px; /* Altura mínima para visualização */
}

#add-pet-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #FFA500; /* Laranja */
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#add-pet-button:hover {
    background-color: #ff8c00; /* Laranja um pouco mais escuro */
}

#add-pet-form {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#add-pet-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.required {
    color: #f44336;
    font-weight: bold;
}

#add-pet-form input[type="text"],
#add-pet-form input[type="number"] {
    width: 100%;
    padding: 12px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#add-pet-form input:focus {
    border-color: #89CFF0;
    box-shadow: 0 0 0 2px rgba(137, 207, 240, 0.3);
    outline: none;
}

#add-pet-form input[aria-invalid="true"] {
    border-color: #f44336;
    background-color: #fff8f8;
}

#add-pet-form input[type="file"] {
    margin-top: 5px;
    margin-bottom: 5px;
    width: 100%;
}

#photo-help {
    color: #666;
    font-size: 0.85em;
    display: block;
    margin-bottom: 15px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#add-pet-form button {
    padding: 12px 20px;
    background-color: #89CFF0; /* Azul Claro */
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s, transform 0.1s;
    flex: 1;
}

#add-pet-form #save-pet-button {
    background-color: #89CFF0;
    font-weight: bold;
}

#add-pet-form #cancel-pet-button {
    background-color: #f0f0f0;
    color: #555;
}

#add-pet-form button:hover {
    background-color: #5dade2; /* Azul um pouco mais escuro */
}

#add-pet-form #cancel-pet-button:hover {
    background-color: #e0e0e0;
}

#add-pet-form button:active {
    transform: scale(0.98);
}

.pet-card {
    background-color: white;
    border: 1px solid #89CFF0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pet-card.has-reminders {
    border-left: 4px solid #FFA500;
}

.reminder-badge {
    background-color: #FFA500;
    color: white;
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 5px;
}

.pet-created {
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
}

.pet-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pet-photo-container {
    position: relative;
    margin-right: 15px;
}

.pet-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #FFA500;
    background: #eee;
}



.pet-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #FFA500;
    background: #eee;
    cursor: pointer;
    transition: transform 0.2s;
}

.pet-photo:hover {
    transform: scale(1.05);
}

.pet-card h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.pet-card p {
    margin: 2px 0;
    color: #555;
    font-size: 0.95em;
}

.pet-card button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.pet-card button:hover {
    background-color: #ff5252;
}

.pet-card .reminder-btn {
    background-color: #89CFF0;
    color: #333;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
}

.pet-card .reminder-btn:hover {
    background-color: #5dade2;
}

.pet-card .history-btn {
    background-color: #FFA500;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
}

.pet-card .history-btn:hover {
    background-color: #e69500;
}

/* Removido bloco duplicado/antigo de modal para evitar conflitos e garantir visual profissional */

/* MODAL PROFISSIONAL E RESPONSIVO */
.modal-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 32, 38, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    transition: background 0.3s;
    backdrop-filter: blur(2px);
}
.modal-content {
    background: #23272f;
    color: #f3f3f3;
    padding: 22px 18px 18px 18px;
    border-radius: 16px;
    width: 95%;
    max-width: 370px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
    position: relative;
    margin: 16px auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    animation: modalFadeIn 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.confirm-modal {
    text-align: center;
    max-width: 340px;
    margin: 0 auto;
}
.modal-content h3 {
    font-size: 1.25em;
    margin: 0 0 10px 0;
    color: #89CFF0;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.modal-content p {
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 18px;
}
.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.confirm-buttons button {
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    min-width: 120px;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.18s, color 0.18s, transform 0.1s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    outline: none;
}
.confirm-buttons button:active {
    transform: scale(0.97);
}
.confirm-buttons .danger-button {
    background: linear-gradient(90deg, #f44336 60%, #d32f2f 100%);
    color: #fff;
}
.confirm-buttons .danger-button:hover {
    background: linear-gradient(90deg, #d32f2f 60%, #f44336 100%);
}
#confirm-delete-no {
    background: #23272f;
    color: #89CFF0;
    border: 1px solid #89CFF0;
}
#confirm-delete-no:hover {
    background: #1a1d22;
    color: #fff;
    border-color: #fff;
}
.close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.5em;
    color: #89CFF0;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}
.close:hover {
    color: #fff;
}
#reminders-list {
    margin-bottom: 16px;
}
#reminders-list ul {
    padding-left: 18px;
}
#reminders-list li {
    margin-bottom: 6px;
    font-size: 0.98em;
}

/* Footer removido conforme solicitado */

/* Notificação de status */
#notification-status {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease;
    max-width: 90%;
}

#notification-status.success {
    background-color: #4CAF50;
}

#notification-status.error {
    background-color: #f44336;
}

#notification-status.info {
    background-color: #2196F3;
}

/* Estilos para erros de validação */
.reminder-error {
    color: #f44336;
    font-size: 0.85em;
    margin-top: 4px;
    margin-bottom: 8px;
    display: block;
}

.photo-preview-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.photo-preview {
    max-width: 100%;
    max-height: 200px;
    margin: 10px 0;
    border-radius: 5px;
    border: 2px solid #FFA500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#reminder-modal input[aria-invalid="true"] {
    border-color: #f44336;
    box-shadow: 0 0 0 1px #f44336;
}

#reminder-modal input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 1px #4CAF50;
    outline: none;
}

#reminder-modal input[aria-invalid="true"]:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 1px #f44336;
}

/* Estilos para textos de ajuda */
.form-help {
    color: #666;
    font-size: 0.85em;
    margin-top: 4px;
    display: block;
}

/* Estilos para botões primários e secundários */
.primary-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s, transform 0.1s;
}

.primary-button:hover {
    background-color: #3e8e41;
}

.primary-button:active {
    transform: scale(0.98);
}

.secondary-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s, transform 0.1s;
}

.secondary-button:hover {
    background-color: #e0e0e0;
}

.secondary-button:active {
    transform: scale(0.98);
}

/* Estilos para os lembretes */
.reminder-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reminder-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reminder-today {
    border-left: 4px solid #4CAF50;
}

.reminder-past {
    border-left: 4px solid #f44336;
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reminder-header h4 {
    margin: 0;
    font-size: 1.1em;
    flex: 1;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: 8px;
}

.today-badge {
    background-color: #4CAF50;
    color: white;
}

.past-badge {
    background-color: #f44336;
    color: white;
}

.reminder-details {
    margin-bottom: 15px;
}

.reminder-details p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.reminder-details i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.reminder-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.reminder-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.reminder-actions button i {
    margin-right: 5px;
}

.delete-reminder {
    background-color: #f8d7da;
    color: #721c24;
}

.delete-reminder:hover {
    background-color: #f5c6cb;
}

.complete-reminder {
    background-color: #d4edda;
    color: #155724;
}

.complete-reminder:hover {
    background-color: #c3e6cb;
}

.empty-state {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}


/* RESPONSIVIDADE AVANÇADA PARA SMARTPHONES */
@media (max-width: 600px) {
    html, body {
        font-size: 15px;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }
    main {
        padding: 0.2em 0.2em 1.5em 0.2em;
        margin-bottom: 10px;
    }
    header {
        padding: 0.7em 0.2em;
    }
    .pet-card {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 6px;
        margin: 10px 0;
        min-width: 0;
    }
    .pet-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 8px;
    }
    .pet-photo {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
    .pet-card > div:last-child {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        align-items: stretch;
    }
    .modal-content {
        width: 99vw;
        max-width: 99vw;
        min-width: unset;
        padding: 10px 2vw;
        margin: 4px auto;
        font-size: 0.98em;
        border-radius: 10px;
    }
    .modal-content h3 {
        font-size: 1em;
        margin-top: 0;
        margin-bottom: 6px;
    }
    .modal-content p {
        font-size: 0.95em;
    }
    .confirm-buttons button {
        font-size: 0.95em;
        min-width: 90px;
        padding: 8px 0;
    }
    #reminder-modal label {
        font-size: 0.93em;
        margin-bottom: 2px;
    }
    #add-pet-form input[type="text"],
    #add-pet-form input[type="number"],
    #reminder-modal input[type="text"],
    #reminder-modal input[type="datetime-local"],
    #reminder-modal input[type="tel"],
    #reminder-modal select {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 6px;
        padding: 7px;
        font-size: 15px;
    }
    #reminder-modal .primary-button,
    #reminder-modal .secondary-button {
        width: 100%;
        padding: 9px;
        margin-top: 8px;
        font-size: 15px;
    }
    #add-pet-button {
        width: 44px;
        height: 44px;
        font-size: 1.7em;
    }
    .close {
        font-size: 1.5em;
        top: 3px;
        right: 7px;
    }
    .input-group {
        flex-direction: column;
        gap: 3px;
    }
    .input-group button {
        width: 100%;
    }
    .reminder-item {
        padding: 10px 6px;
    }
    .reminder-header h4 {
        font-size: 1em;
    }
    .badge {
        font-size: 0.7em;
        padding: 3px 6px;
    }
    #notification-status {
        top: 10px;
        font-size: 0.95em;
        padding: 8px 10px;
        border-radius: 6px;
    }
}

/* Melhorias de acessibilidade para inputs */
input[aria-invalid="true"] {
    border: 2px solid #ff5252;
    background-color: #fff8f8;
}

/* Acessibilidade: foco visível */
button:focus, input:focus, select:focus {
    outline: 2px solid #FFA500;
    outline-offset: 2px;
}

/* Evita zoom automático em iOS ao focar inputs */
@media (max-width: 600px) {
    input, select, button {
        font-size: 16px;
    }
}

/* Estilo para grupo de input com botão */
.input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.input-group input {
    flex: 1;
    margin-bottom: 0;
}
.input-group button {
    width: auto;
    white-space: nowrap;
    margin-bottom: 0;
}

/* Estilos para a Seção de Promoção do App */
.app-promo {
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    color: white;
    padding: 25px 20px;
    text-align: center;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.app-promo::before {
    content: '🐾';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 40px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.app-promo::after {
    content: '🦴';
    position: absolute;
    bottom: -15px;
    right: 15px;
    font-size: 40px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.promo-content h2 {
    margin: 0 0 10px 0;
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.promo-content p {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.google-play-button {
    display: inline-flex;
    align-items: center;
    background-color: #2c3e50; /* Cinza-azulado escuro */
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    overflow: hidden; /* Para conter o brilho */
}

.google-play-button:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

.google-play-button .fab {
    margin-right: 10px;
    font-size: 1.2em;
    animation: play-icon-colors 6s infinite linear;
}

.google-play-button span {
    background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335, #4285F4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gradient-animation 6s infinite linear;
}

.google-play-button:hover .fab,
.google-play-button:hover span {
    animation-play-state: paused;
}

@keyframes play-icon-colors {
    0%, 100% { color: #4285F4; } /* Blue */
    25% { color: #34A853; } /* Green */
    50% { color: #FBBC05; } /* Yellow */
    75% { color: #EA4335; } /* Red */
}

@keyframes text-gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
