:root {
    --vt-green: #14532d;
    --vt-green-2: #166534;
    --vt-green-light: #dcfce7;
    --vt-bg: #f4f7f5;
    --vt-card: #ffffff;
    --vt-text: #152118;
    --vt-muted: #64748b;
    --vt-border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--vt-bg);
    color: var(--vt-text);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: var(--vt-green-2);
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    background: linear-gradient(180deg, #0f3d22, #14532d);
    color: white;
    padding: 24px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 34px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a,
.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    color: inherit;
    font-weight: 600;
}

.sidebar-nav a {
    color: rgba(255,255,255,.86);
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,.12);
    color: white;
}

.sidebar-user {
    border-top: 1px solid rgba(255,255,255,.14);
    padding-top: 16px;
}

.sidebar-user a {
    color: #bbf7d0;
    font-size: 14px;
    text-decoration: none;
}

.mobile-menu a {
    color: #1f2937;
}

.mobile-menu a:hover {
    background: #f3f4f6;
}

.app-main {
    min-height: 100vh;
}

@media (min-width: 992px) {
    .app-main {
        margin-left: 270px;
    }
}

.bg-vettrack {
    background: linear-gradient(135deg, #14532d, #166534);
}

.page-title {
    font-weight: 800;
    letter-spacing: -.03em;
}

.card {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    margin-bottom: 18px;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
}

.btn-primary {
    background: var(--vt-green);
    border-color: var(--vt-green);
}

.btn-primary:hover {
    background: var(--vt-green-2);
    border-color: var(--vt-green-2);
}

.form-control,
.form-select,
input,
select,
textarea {
    border-radius: 14px !important;
}

label {
    font-weight: 700;
    margin-bottom: 6px;
}

.muted {
    color: var(--vt-muted);
}

.badge {
    border-radius: 999px;
    font-weight: 700;
}

.stat-card {
    min-height: 132px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vt-green-light);
    font-size: 26px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.quick-search {
    max-width: 520px;
}

.animal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 720px) {
    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1180px) {
    .animal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.animal-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.animal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .10);
    color: inherit;
}

.animal-card-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.animal-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: var(--vt-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.animal-card-name {
    font-size: 20px;
    font-weight: 800;
}

.health-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.health-green { background: #22c55e; }
.health-orange { background: #f59e0b; }
.health-red { background: #ef4444; }

.animal-hero {
    background: linear-gradient(135deg, #14532d, #15803d);
    color: white;
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 20px;
}

.animal-avatar {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    flex-shrink: 0;
}

.hero-badge {
    background: rgba(255,255,255,.14);
    color: white;
    border: 1px solid rgba(255,255,255,.18);
}

.metric-card {
    border-radius: 22px;
    background: white;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
}

.timeline-item {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--vt-border);
}

.timeline-item:last-child {
    border-bottom: 0;
}

.timeline-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-date {
    color: var(--vt-muted);
    font-size: 13px;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 18px;
    margin: 2px 0 8px;
    font-weight: 800;
}

.table a {
    font-weight: 700;
    color: var(--vt-green);
    text-decoration: none;
}

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

@media (max-width: 576px) {
    .animal-hero {
        padding: 20px;
    }

    .animal-avatar {
        width: 76px;
        height: 76px;
        font-size: 38px;
    }

    .stat-number {
        font-size: 30px;
    }
}

// PROFIL
.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-user {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.sidebar-user a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
}

.sidebar-user a:hover {
    background: rgba(255,255,255,0.08);
}
//
/* =========================================================
   VetTrack - Badges de statut profil / invitations / amitiés
   ========================================================= */

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.badge-pending {
    background: #fff7ed;
    color: #c2410c;
}

.badge-accepted {
    background: #ecfdf3;
    color: #027a48;
}

.badge-cancelled,
.badge-expired,
.badge-declined,
.badge-blocked {
    background: #fef3f2;
    color: #b42318;
}

.badge-default {
    background: #eef2ff;
    color: #3538cd;
}

.animal-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.animal-card-icon i {
    font-size: 1.25rem;
}
