/* Farm Tracker - Custom Styles */

/* General */
body {
    font-size: 0.95rem;
    background-color: #f5f7f5;
}

/* Make cards slightly rounded */
.card {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
}

/* Animal cards on list page */
.animal-card {
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.animal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.animal-thumb {
    height: 140px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.animal-thumb-placeholder {
    height: 140px;
    border-radius: 10px 10px 0 0;
}

/* Profile photo */
.profile-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 120px;
    height: 120px;
}

/* Badge links */
a.badge {
    text-decoration: none;
    transition: background-color 0.15s;
}

a.badge:hover {
    background-color: #dee2e6 !important;
}

/* Table tweaks for mobile */
.table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6c757d;
}

/* Flash messages */
.alert {
    border-radius: 8px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    h4 {
        font-size: 1.2rem;
    }

    .animal-thumb,
    .animal-thumb-placeholder {
        height: 100px;
    }

    .profile-photo,
    .profile-photo-placeholder {
        width: 80px;
        height: 80px;
    }

    .card-body {
        padding: 0.75rem;
    }

    /* Make tables scroll nicely */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    /* Bigger touch targets */
    .btn-sm {
        padding: 0.35rem 0.65rem;
    }

    .form-select-sm,
    .form-control-sm {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    /* Stack filter form nicely */
    .navbar-nav .nav-link {
        padding: 0.6rem 0.5rem;
    }
}

/* Dashboard count cards */
.card h2 {
    color: #2d6a4f;
    font-weight: 700;
}

/* Care alert colors */
.table-danger td {
    background-color: #fff5f5 !important;
}

.table-warning td {
    background-color: #fffbeb !important;
}

/* Print styles */
@media print {
    .navbar, .btn, form, .alert {
        display: none !important;
    }
}
