:root {
    --bg-color: #f5f2eb;
    /* Beige arena */
    --text-color: #333333;
    --primary-color: #7b9e87;
    /* Verde salvia */
    --accent-color: #40e0d0;
    /* Turquesa */
    --alert-color: #ffb347;
    /* Naranja suave */
    --danger-color: #ff6b6b;
    /* Rojo para perdido */
    --card-bg: #ffffff;
    --border-radius: 24px;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    line-height: 1.6;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-header {
    background-color: var(--card-bg);
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin: 0 auto 1rem;
    display: block;
}

.text-center {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.lost {
    background-color: var(--danger-color);
    color: white;
}

.badge.safe {
    background-color: var(--primary-color);
    color: white;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    margin-bottom: 1rem;
    border-radius: 30px;
}

.btn:hover {
    transform: scale(1.02);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #1a1a1a;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.alert-box {
    background-color: #fff3e0;
    border-left: 4px solid var(--alert-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-box h3 {
    color: var(--alert-color);
    display: flex;
    align-items: center;
}

.pet-list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.pet-list-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.pet-info {
    flex-grow: 1;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--danger-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.fab-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: var(--accent-color);
    color: #1a1a1a;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
    transition: transform 0.2s;
    z-index: 900;
    text-decoration: none;
}

.fab-btn:hover {
    transform: scale(1.1);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1000;
}

.nav-item {
    text-align: center;
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}

.tabs {
    display: flex;
    margin-bottom: 1rem;
    background: #e9e6df;
    border-radius: 999px;
    padding: 0.25rem;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline {
    border-left: 2px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid white;
}

.timeline-date {
    font-size: 0.85rem;
    color: #888;
}