* {
    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(1000px, 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;
}


/* =========================
   NOTIFICATION CARD
========================= */

.notification-card {
    background: #ffffff;

    border: 1px solid #e3e8ec;

    border-radius: 15px;

    padding: 18px;

    margin-bottom: 22px;

    display: flex;
    align-items: center;

    gap: 13px;
}

.notification-icon {
    width: 48px;
    height: 48px;

    background: #f0f3f5;

    border-radius: 11px;

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

    font-size: 22px;

    flex-shrink: 0;
}

.notification-information {
    flex: 1;
}

.notification-information h2 {
    font-size: 16px;

    margin-bottom: 4px;
}

.notification-information p {
    color: #737e88;

    font-size: 11px;

    line-height: 1.5;
}

.notification-button {
    border: none;

    background: #17212b;

    color: #ffffff;

    border-radius: 9px;

    padding: 11px 15px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;
}


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

.summary-grid {
    display: grid;

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

    gap: 12px;

    margin-bottom: 30px;
}

.summary-card {
    background: #ffffff;

    border: 1px solid #e3e8ec;

    border-radius: 14px;

    padding: 18px;
}

.summary-card span {
    display: block;

    color: #78838d;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.8px;

    margin-bottom: 6px;
}

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


/* =========================
   SECTION
========================= */

.alerts-section {
    margin-bottom: 25px;
}

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

.section-heading h2 {
    font-size: 20px;

    margin-bottom: 4px;
}

.section-heading p {
    color: #737e88;

    font-size: 12px;
}


/* =========================
   ALERT LIST
========================= */

.alerts-list {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.alert-item {
    background: #ffffff;

    border: 1px solid #e3e8ec;

    border-radius: 13px;

    padding: 15px;

    display: flex;

    align-items: center;

    gap: 12px;
}

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

    background: #f0f3f5;

    border-radius: 10px;

    display: flex;

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

    font-size: 19px;

    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;

    font-size: 13px;

    margin-bottom: 4px;
}

.alert-content p {
    color: #737e88;

    font-size: 10px;

    line-height: 1.5;
}

.alert-date {
    text-align: right;

    font-size: 10px;

    color: #737e88;

    white-space: nowrap;
}

.alert-date.overdue {
    color: #17212b;

    font-weight: 700;
}


/* =========================
   EMPTY STATE
========================= */

.empty-state {
    background: #ffffff;

    border: 1px solid #e3e8ec;

    border-radius: 14px;

    padding: 35px 20px;

    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;

    margin: 0 auto 12px;

    border-radius: 50%;

    background: #f0f3f5;

    display: flex;

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

    font-size: 20px;
}

.empty-state h3 {
    font-size: 14px;

    margin-bottom: 5px;
}

.empty-state p {
    color: #737e88;

    font-size: 11px;
}


/* =========================
   INFO
========================= */

.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;
    }
}


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

@media (max-width: 600px) {

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

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

    .notification-card {
        align-items: flex-start;

        flex-wrap: wrap;
    }

    .notification-information {
        min-width: calc(100% - 65px);
    }

    .notification-button {
        width: 100%;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;

        gap: 9px;
    }

    .summary-card {
        padding: 15px;
    }

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

    .alert-item {
        align-items: flex-start;
    }

    .alert-date {
        font-size: 9px;
    }

    .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;}}
.alert-card{display:flex;gap:12px;padding:14px;border:1px solid #e3e8ec;border-radius:12px;background:#fff;margin-bottom:9px}.alert-icon{width:42px;height:42px;border-radius:10px;background:#f0f3f5;display:flex;align-items:center;justify-content:center;font-size:20px}.alert-content{flex:1}.alert-content span{font-size:8px;font-weight:700;color:#78838d}.alert-content h3{font-size:13px;margin:4px 0}.alert-content p,.alert-content small{font-size:10px;color:#6d7984}.alert-card.overdue{border-left:4px solid #a13d3d}.alert-card.soon{border-left:4px solid #8a6118}
