* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7f9;
    color: #17212b;
    min-height: 100vh;
}

/* =========================
   NAVIGATION
========================= */

.navbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e3e8ec;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: min(1200px, 92%);
    min-height: 70px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #17212b;
    text-decoration: none;

    font-size: 17px;
    font-weight: 700;

    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a {
    color: #5f6b76;
    text-decoration: none;

    font-size: 13px;

    padding: 9px 12px;
    border-radius: 8px;

    transition: 0.2s ease;
}

.nav-links a:hover {
    background: #f1f3f5;
    color: #17212b;
}

.nav-links a.active {
    background: #17212b;
    color: #ffffff;
}

.menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 9px;

    background: #eef2f5;

    font-size: 20px;
    cursor: pointer;
}

/* =========================
   PAGE
========================= */

.page-container {
    width: min(1100px, 92%);
    margin: auto;
    padding-bottom: 60px;
}

.page-header {
    margin: 35px 0 25px;
}

.page-label {
    color: #78838d;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.page-header h1 {
    font-size: 28px;
    margin: 7px 0;
}

.page-header p {
    color: #6d7984;

    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   SUMMARY
========================= */

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

    margin-bottom: 30px;
}

.summary-card {
    background: #ffffff;

    border: 1px solid #e3e8ec;
    border-radius: 14px;

    padding: 20px;
}

.summary-card span {
    display: block;

    color: #78838d;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.8px;

    margin-bottom: 7px;
}

.summary-card strong {
    font-size: 26px;
}

/* =========================
   SECTIONS
========================= */

.report-section {
    margin-bottom: 30px;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.section-heading p {
    color: #737e88;
    font-size: 12px;
}

/* =========================
   RECORDS
========================= */

.records-list {
    background: #ffffff;

    border: 1px solid #e3e8ec;
    border-radius: 14px;

    overflow: hidden;
}

.record-row {
    min-height: 70px;

    padding: 12px 17px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-bottom: 1px solid #edf0f2;
}

.record-row:last-child {
    border-bottom: none;
}

.record-icon {
    width: 42px;
    height: 42px;

    background: #f0f3f5;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.record-name {
    flex: 1;
}

.record-name strong {
    display: block;

    font-size: 14px;

    margin-bottom: 3px;
}

.record-name span {
    color: #7a858e;

    font-size: 10px;
}

.record-row > strong {
    font-size: 19px;
}

/* =========================
   ACTIVITY
========================= */

.activity-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.activity-card {
    background: #ffffff;

    border: 1px solid #e3e8ec;
    border-radius: 14px;

    padding: 17px;

    display: flex;
    align-items: flex-start;

    gap: 12px;
}

.activity-icon {
    width: 43px;
    height: 43px;

    background: #f0f3f5;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;

    flex-shrink: 0;
}

.activity-card strong {
    display: block;

    font-size: 14px;

    margin-bottom: 5px;
}

.activity-card p {
    color: #737e88;

    font-size: 11px;

    line-height: 1.5;
}

/* =========================
   INFORMATION
========================= */

.info-card {
    background: #ffffff;

    border: 1px solid #e3e8ec;
    border-radius: 14px;

    padding: 18px;

    display: flex;
    align-items: flex-start;

    gap: 12px;
}

.info-icon {
    width: 40px;
    height: 40px;

    background: #f0f3f5;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    flex-shrink: 0;
}

.info-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.info-card p {
    color: #737e88;

    font-size: 11px;

    line-height: 1.5;
}

/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .menu-button {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 70px;
        left: 0;
        right: 0;

        background: #ffffff;

        border-bottom: 1px solid #e3e8ec;

        display: none;

        flex-direction: column;
        align-items: stretch;

        padding: 10px 5%;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .page-header {
        margin-top: 25px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .summary-card {
        padding: 15px;
    }

    .summary-card strong {
        font-size: 22px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .record-row {
        padding: 12px;
    }

    .record-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .record-name strong {
        font-size: 13px;
    }

    .record-row > strong {
        font-size: 17px;
    }

    .info-card {
        padding: 15px;
    }
}

/* =========================
   POLISHED MOTION
========================= */
@keyframes lmFadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.page-container > section, .content-section, .form-card, .history-card, .records-section, .profile-card, .summary-card, .animal-card, .feed-card, .record-card, .alert-card { animation: lmFadeUp .45s ease both; }
button, a, .action-card, .animal-card, .feed-card, .record-card, .summary-card { transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
button:hover, .action-card:hover, .animal-card:hover, .feed-card:hover, .record-card:hover, .summary-card:hover { transform: translateY(-2px); }
.lm-toast { position:fixed; right:20px; bottom:20px; z-index:9999; padding:12px 16px; border-radius:10px; background:#17212b; color:#fff; font-size:12px; opacity:0; transform:translateY(12px); transition:.3s ease; box-shadow:0 10px 30px rgba(0,0,0,.16); }
.lm-toast.show { opacity:1; transform:translateY(0); }
.lm-toast.success { background:#1f6b45; } .lm-toast.warning { background:#8a6118; }
.profile-header-actions { display:flex; gap:8px; align-items:center; }
.secondary-button { border:1px solid #dce2e6; background:#fff; color:#17212b; padding:11px 15px; border-radius:9px; font:700 11px Arial,sans-serif; cursor:pointer; text-decoration:none; }
@media(max-width:600px){.profile-header-actions{width:100%;}.profile-header-actions button{flex:1}.lm-toast{left:15px;right:15px;bottom:15px;text-align:center;}}
