:root {
    --sidebar: #10271d;
    --sidebar-light: #18372a;
    --sidebar-hover: #214636;
    --green-900: #153a29;
    --green-800: #1d543b;
    --green-700: #287653;
    --green-600: #348a63;
    --green-100: #e5f3eb;
    --green-50: #f2f8f4;
    --gold: #d8b56d;
    --cream: #f5f6f3;
    --white: #ffffff;
    --text: #1c2922;
    --muted: #6d7871;
    --border: #e0e6e1;
    --danger-background: #fde8e7;
    --danger-text: #8b2722;
    --shadow:
        0 1px 2px rgba(16, 39, 29, 0.04),
        0 12px 30px rgba(16, 39, 29, 0.06);
    --shadow-hover:
        0 4px 8px rgba(16, 39, 29, 0.06),
        0 18px 38px rgba(16, 39, 29, 0.10);
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green-700);
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: var(--sidebar-width);
    display: flex;
    padding: 28px 18px 22px;
    flex-direction: column;
    overflow-y: auto;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(67, 135, 96, 0.18),
            transparent 30%
        ),
        var(--sidebar);
    color: var(--white);
}

.brand {
    display: flex;
    min-width: 0;
    padding: 0 8px 26px;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #e2c37f, var(--gold));
    color: var(--sidebar);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
    font-size: 0.94rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.brand-mark.large {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.brand-text {
    min-width: 0;
}

.brand-text strong,
.brand-text small {
    display: block;
}

.brand-text strong {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-text small {
    margin-top: 2px;
    color: #abc3b4;
    font-size: 0.72rem;
}

.main-nav {
    display: grid;
    gap: 5px;
}

.nav-label {
    margin: 10px 12px 7px;
    color: #7fa18d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.management-label {
    margin-top: 25px;
}

.main-nav a {
    display: flex;
    min-height: 46px;
    padding: 10px 13px;
    align-items: center;
    gap: 12px;
    border-radius: 11px;
    color: #cbddd2;
    font-size: 0.92rem;
    font-weight: 650;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.main-nav a:hover {
    background: var(--sidebar-hover);
    color: var(--white);
    transform: translateX(2px);
}

.main-nav a.active {
    background: var(--green-600);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.nav-icon {
    width: 22px;
    display: inline-grid;
    place-items: center;
    font-size: 1.18rem;
    line-height: 1;
}

.sidebar-footer {
    margin-top: auto;
    padding: 18px 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.user-summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    display: inline-grid;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--sidebar-light);
    color: var(--gold);
    font-weight: 850;
}

.user-details {
    min-width: 0;
}

.user-details strong,
.user-details small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-details strong {
    font-size: 0.86rem;
}

.user-details small {
    margin-top: 1px;
    color: #8eaa99;
    font-size: 0.7rem;
}

.logout-form {
    margin: 13px 0 0;
}

.logout-form button {
    padding: 0;
    border: 0;
    background: none;
    color: #9cb6a6;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
}

.logout-form button:hover {
    color: var(--white);
}

.app-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.mobile-header,
.mobile-nav {
    display: none;
}

.page-container {
    width: min(1260px, calc(100% - 72px));
    min-height: calc(100vh - 75px);
    margin: 0 auto;
    padding: 46px 0 70px;
}

.page-heading,
.profile-header {
    display: flex;
    margin-bottom: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.page-heading h1,
.profile-header h1 {
    margin: 0;
    color: var(--green-900);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.page-heading p,
.profile-header p {
    margin: 9px 0 0;
    color: var(--muted);
}

.eyebrow,
.section-kicker {
    margin: 0 0 6px !important;
    color: var(--green-700) !important;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker {
    margin-bottom: 3px !important;
}

.button {
    display: inline-flex;
    min-height: 45px;
    padding: 10px 19px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--green-700);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(40, 118, 83, 0.18);
    font-weight: 750;
    cursor: pointer;
    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.button:hover {
    background: var(--green-800);
    box-shadow: 0 10px 24px rgba(40, 118, 83, 0.25);
    transform: translateY(-1px);
}

.button.secondary {
    border-color: var(--border);
    background: var(--white);
    color: var(--green-700);
    box-shadow: none;
}

.button.secondary:hover {
    border-color: var(--green-700);
    background: var(--green-50);
}

.button-icon {
    font-size: 1.08rem;
}

.full-width {
    width: 100%;
}

.summary-grid,
.species-grid {
    display: grid;
    gap: 18px;
}

.summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 40px;
}

.summary-card,
.species-card,
.panel,
.animal-card {
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
}

.summary-card {
    min-height: 145px;
    display: flex;
    padding: 25px 26px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-radius: 17px;
    overflow: hidden;
}

.summary-card span,
.summary-card strong {
    display: block;
}

.summary-label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 680;
}

.summary-card strong {
    margin-top: 5px;
    color: var(--green-900);
    font-size: 2.55rem;
    letter-spacing: -0.05em;
    line-height: 1;
}

.summary-card.primary {
    border-color: transparent;
    background:
        radial-gradient(
            circle at 92% 15%,
            rgba(255, 255, 255, 0.14),
            transparent 35%
        ),
        linear-gradient(135deg, var(--green-800), var(--green-700));
}

.summary-card.primary .summary-label,
.summary-card.primary strong {
    color: var(--white);
}

.summary-icon {
    width: 54px;
    height: 54px;
    display: inline-grid !important;
    flex: 0 0 54px;
    place-items: center;
    border-radius: 15px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 1.7rem;
    font-weight: 800;
}

.summary-card.primary .summary-icon {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.summary-icon.female {
    background: #f7eaf0;
    color: #a84f77;
}

.summary-icon.male {
    background: #e8f0f8;
    color: #467ba3;
}

.dashboard-section {
    margin-bottom: 38px;
}

.section-heading {
    display: flex;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.section-heading h2,
.panel > h2 {
    margin: 0;
    color: var(--green-900);
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.section-heading a {
    color: var(--green-700);
    font-size: 0.83rem;
    font-weight: 750;
}

.species-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.species-card {
    min-height: 145px;
    padding: 20px;
    border-radius: 15px;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.species-card:hover,
.animal-card:hover {
    border-color: #a9c8b6;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.species-card-name,
.species-card strong,
.species-card-link {
    display: block;
}

.species-card-name {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 680;
}

.species-card strong {
    margin-top: 4px;
    color: var(--green-900);
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.species-card-link {
    margin-top: 19px;
    color: var(--green-700);
    font-size: 0.72rem;
    font-weight: 750;
}

.content-grid,
.profile-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.panel {
    padding: 24px;
    border-radius: 17px;
}

.record-list {
    display: grid;
}

.record-row {
    display: flex;
    min-width: 0;
    padding: 14px 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

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

.record-row:first-child {
    padding-top: 5px;
}

.record-row strong,
.record-row small {
    display: block;
}

.record-row strong {
    font-size: 0.9rem;
}

.record-row small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.76rem;
}

.record-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.record-avatar {
    width: 38px;
    height: 38px;
    display: inline-grid;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 0.85rem;
    font-weight: 850;
}

.weight-avatar {
    background: #edf2f7;
    color: #54708a;
}

.record-meta,
.weight {
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.empty-state {
    padding: 30px 10px;
    color: var(--muted);
    text-align: center;
}

.empty-state.large {
    padding: 80px 20px;
    border: 1px dashed #b8c7bd;
    border-radius: 17px;
    background: var(--white);
}

.empty-state h2 {
    color: var(--green-900);
}

.filter-bar {
    display: flex;
    margin-bottom: 26px;
    padding: 6px;
    gap: 5px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(16, 39, 29, 0.03);
}

.filter-bar a {
    padding: 9px 15px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
    white-space: nowrap;
}

.filter-bar a:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.filter-bar a.active {
    background: var(--green-700);
    color: var(--white);
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.animal-card {
    overflow: hidden;
    border-radius: 17px;
    color: var(--text);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.animal-photo {
    height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(145deg, var(--green-100), #d7eadf);
    color: var(--green-700);
    font-size: 3rem;
    font-weight: 850;
}

.animal-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.animal-card:hover .animal-photo img {
    transform: scale(1.035);
}

.animal-card-content {
    padding: 20px;
}

.animal-species {
    color: var(--green-700);
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.animal-card h2 {
    margin: 5px 0 4px;
    color: var(--green-900);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.animal-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.87rem;
}

.animal-card-meta {
    display: flex;
    margin-top: 18px;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.79rem;
}

.back-link {
    margin-bottom: 22px;
    font-size: 0.86rem;
    font-weight: 750;
}

.profile-layout {
    align-items: start;
}

.profile-layout .panel:first-child {
    grid-row: span 2;
}

.detail-list {
    margin: 20px 0 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 145px 1fr;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-list div:last-child {
    border-bottom: 0;
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
}

.detail-list dd {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 750;
}

.notes {
    margin-top: 24px;
    padding: 18px;
    border-radius: 12px;
    background: var(--green-50);
}

.notes h3,
.notes p {
    margin: 0;
}

.notes h3 {
    color: var(--green-900);
    font-size: 0.95rem;
}

.notes p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.guest-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(52, 138, 99, 0.18),
            transparent 32%
        ),
        linear-gradient(145deg, #0d2118, #173d2b);
}

.guest-shell .page-container {
    width: min(500px, calc(100% - 32px));
    min-height: auto;
    padding: 35px 0;
}

.login-wrapper {
    min-height: calc(100vh - 70px);
    display: grid;
    place-items: center;
}

.login-card {
    width: min(440px, 100%);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.login-heading {
    margin-bottom: 26px;
    text-align: center;
}

.login-heading h1 {
    margin: 0;
    color: var(--green-900);
    font-size: 1.85rem;
    letter-spacing: -0.035em;
}

.login-heading > p:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.login-form {
    display: grid;
    gap: 9px;
}

.login-form label {
    margin-top: 8px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 750;
}

.login-form input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #bcc8c0;
    border-radius: 10px;
    background: var(--white);
}

.login-form input:focus {
    border-color: var(--green-700);
    outline: 3px solid rgba(45, 106, 75, 0.14);
}

.login-form .button {
    margin-top: 16px;
}

.form-error {
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 9px;
    background: var(--danger-background);
    color: var(--danger-text);
    font-size: 0.86rem;
}

.site-footer {
    padding: 0 36px 26px;
    color: #929d96;
    font-size: 0.74rem;
    text-align: center;
}

@media (max-width: 1050px) {
    :root {
        --sidebar-width: 225px;
    }

    .page-container {
        width: min(100% - 46px, 1260px);
    }

    .species-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .sidebar {
        display: none;
    }

    .app-main {
        margin-left: 0;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 15;
        min-height: 66px;
        display: flex;
        padding: 10px 17px;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(16, 39, 29, 0.97);
        backdrop-filter: blur(12px);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--white);
        font-size: 0.92rem;
    }

    .mobile-header .brand-mark {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        border-radius: 11px;
        font-size: 0.78rem;
    }

    .mobile-admin-link {
        color: #c4d8cc;
        font-size: 0.78rem;
        font-weight: 750;
    }

    .mobile-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 30;
        min-height: 67px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        border-top: 1px solid #dce4df;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -7px 24px rgba(16, 39, 29, 0.08);
        backdrop-filter: blur(12px);
    }

    .mobile-nav a {
        display: flex;
        padding: 8px 3px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        color: #7a867e;
        font-size: 0.63rem;
        font-weight: 750;
    }

    .mobile-nav a span {
        font-size: 1.22rem;
        line-height: 1.1;
    }

    .mobile-nav a.active {
        color: var(--green-700);
    }

    .page-container {
        width: min(100% - 30px, 1260px);
        min-height: calc(100vh - 130px);
        padding: 30px 0 95px;
    }

    .page-heading,
    .profile-header {
        margin-bottom: 25px;
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading h1,
    .profile-header h1 {
        font-size: clamp(1.8rem, 9vw, 2.45rem);
    }

    .summary-grid,
    .content-grid,
    .profile-layout,
    .animal-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        gap: 13px;
    }

    .summary-card {
        min-height: 118px;
    }

    .profile-layout .panel:first-child {
        grid-row: auto;
    }

    .species-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .species-card {
        min-height: 130px;
    }

    .animal-photo {
        height: 240px;
    }

    .site-footer {
        display: none;
    }
}

@media (max-width: 430px) {
    .dashboard-heading .button,
    .profile-header .button {
        width: 100%;
    }

    .summary-card {
        padding: 21px;
    }

    .summary-card strong {
        font-size: 2.25rem;
    }

    .species-card {
        padding: 17px;
    }

    .panel {
        padding: 20px;
    }

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .record-row {
        gap: 10px;
    }

    .record-meta,
    .weight {
        font-size: 0.7rem;
    }

    .login-card {
        padding: 31px 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* =========================================================
   OPTION 2 — MODERN DARK DASHBOARD
   ========================================================= */

:root {
    --option-sidebar: #171a19;
    --option-sidebar-soft: #222624;
    --option-sidebar-border: rgba(255, 255, 255, 0.075);
    --option-gold: #d3a94e;
    --option-gold-light: #ebcc7d;
    --option-gold-dark: #a77d2c;
    --option-page: #f3f2ed;
    --option-card: #ffffff;
    --option-card-border: #e2e0d8;
    --option-heading: #20231f;
    --option-text: #333832;
    --option-muted: #7b8079;
    --option-shadow: 0 10px 30px rgba(31, 35, 30, 0.06);
    --option-shadow-hover: 0 17px 38px rgba(31, 35, 30, 0.11);
    --sidebar-width: 255px;
}

/* Overall application */

body {
    background: var(--option-page);
    color: var(--option-text);
}

.app-shell {
    background: var(--option-page);
}

.app-main {
    margin-left: var(--sidebar-width);
    background:
        radial-gradient(
            circle at 92% 3%,
            rgba(211, 169, 78, 0.08),
            transparent 24rem
        ),
        var(--option-page);
}

/* Dark Option 2 sidebar */

.sidebar {
    width: var(--sidebar-width);
    padding: 27px 19px 20px;
    border-right: 1px solid var(--option-sidebar-border);
    background:
        linear-gradient(
            180deg,
            #1b1e1c 0%,
            var(--option-sidebar) 60%,
            #111412 100%
        );
    box-shadow: 12px 0 35px rgba(15, 18, 16, 0.08);
}

.brand {
    min-height: 73px;
    padding: 0 8px 23px;
    border-bottom: 1px solid var(--option-sidebar-border);
    color: #ffffff;
}

.sidebar .brand-mark {
    width: 60px;
    height: 48px;
    flex: 0 0 60px;
}

.brand-mark img {
    filter:
        sepia(1)
        saturate(1.6)
        hue-rotate(355deg)
        brightness(1.08);
}

.brand-text strong {
    color: #ffffff;
    font-size: 0.98rem;
    letter-spacing: -0.015em;
}

.brand-text small {
    margin-top: 3px;
    color: #9da39e;
    font-size: 0.67rem;
    letter-spacing: 0.035em;
}

.main-nav {
    padding-top: 24px;
}

.nav-label {
    margin: 0 12px 9px;
    color: #717772;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.management-label {
    margin-top: 29px;
}

.main-nav a {
    min-height: 46px;
    margin-bottom: 5px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #aeb4af;
    font-size: 0.83rem;
    font-weight: 680;
}

.main-nav a:hover {
    border-color: rgba(211, 169, 78, 0.12);
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
}

.main-nav a.active {
    border-color: rgba(211, 169, 78, 0.23);
    background:
        linear-gradient(
            90deg,
            rgba(211, 169, 78, 0.2),
            rgba(211, 169, 78, 0.07)
        );
    color: var(--option-gold-light);
    box-shadow: inset 3px 0 var(--option-gold);
}

.nav-icon {
    width: 25px;
    color: currentColor;
    font-size: 1.05rem;
}

.sidebar-footer {
    border-top: 1px solid var(--option-sidebar-border);
}

.user-avatar {
    background: var(--option-gold);
    color: #272014;
}

.user-details strong {
    color: #f5f5f2;
}

.user-details small {
    color: #858c86;
}

.logout-form button {
    color: #949b95;
}

.logout-form button:hover {
    color: var(--option-gold-light);
}

/* Main dashboard sizing */

.page-container {
    width: min(calc(100% - 70px), 1230px);
    padding-top: 42px;
}

.page-heading {
    margin-bottom: 30px;
}

.eyebrow,
.section-kicker {
    color: var(--option-gold-dark);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.page-heading h1 {
    margin-top: 6px;
    color: var(--option-heading);
    font-size: clamp(2rem, 3vw, 2.65rem);
    letter-spacing: -0.045em;
}

.page-heading > div > p:last-child {
    margin-top: 7px;
    color: var(--option-muted);
    font-size: 0.9rem;
}

/* Buttons */

.button {
    min-height: 43px;
    padding: 10px 17px;
    border: 1px solid var(--option-gold-dark);
    border-radius: 8px;
    background:
        linear-gradient(
            135deg,
            var(--option-gold-light),
            var(--option-gold)
        );
    color: #272014;
    box-shadow: 0 7px 17px rgba(167, 125, 44, 0.18);
    font-size: 0.8rem;
    font-weight: 850;
}

.button:hover {
    background:
        linear-gradient(
            135deg,
            #f0d791,
            #dab45c
        );
    box-shadow: 0 10px 23px rgba(167, 125, 44, 0.25);
    transform: translateY(-1px);
}

.button.secondary {
    background: #ffffff;
    color: var(--option-gold-dark);
}

/* Summary cards */

.summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.summary-card {
    position: relative;
    min-height: 150px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid var(--option-card-border);
    border-radius: 12px;
    background: var(--option-card);
    box-shadow: var(--option-shadow);
}

.summary-card::after {
    position: absolute;
    right: -27px;
    bottom: -45px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(211, 169, 78, 0.08);
    content: "";
}

.summary-card.primary,
.summary-card.summary-total {
    border-color: #2b2f2c;
    background:
        linear-gradient(
            135deg,
            #252927,
            #171a19
        );
}

.summary-card.summary-total::after {
    background: rgba(211, 169, 78, 0.09);
}

.summary-card-copy {
    position: relative;
    z-index: 1;
}

.summary-label {
    color: var(--option-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.summary-total .summary-label {
    color: #adb3ae;
}

.summary-card strong {
    margin-top: 5px;
    color: var(--option-heading);
    font-size: 2.35rem;
    letter-spacing: -0.055em;
}

.summary-total strong {
    color: #ffffff;
}

.summary-card small {
    display: block;
    margin-top: 4px;
    color: #969c96;
    font-size: 0.68rem;
}

.summary-icon {
    z-index: 1;
    width: 49px;
    height: 49px;
    border: 1px solid #eadfc4;
    border-radius: 11px;
    background: #fbf6e9;
    color: var(--option-gold-dark);
    font-size: 1.45rem;
}

.summary-total .summary-icon {
    border-color: rgba(211, 169, 78, 0.25);
    background: rgba(211, 169, 78, 0.13);
    color: var(--option-gold-light);
}

/* Section headings */

.dashboard-section {
    margin-bottom: 34px;
}

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

.section-heading h2,
.panel > h2 {
    color: var(--option-heading);
    font-size: 1.08rem;
}

.section-heading a {
    color: var(--option-gold-dark);
    font-size: 0.75rem;
    font-weight: 800;
}

/* Species cards */

.species-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
}

.species-card {
    min-height: 164px;
    padding: 18px;
    border: 1px solid var(--option-card-border);
    border-radius: 11px;
    background: var(--option-card);
    box-shadow: var(--option-shadow);
}

.species-card:hover,
.animal-card:hover {
    border-color: #d8bf83;
    box-shadow: var(--option-shadow-hover);
    transform: translateY(-3px);
}

.species-card-top {
    display: flex;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
}

.species-card-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #eadfc4;
    border-radius: 9px;
    background: #fbf6e9;
    color: var(--option-gold-dark);
    font-size: 1rem;
}

.species-card-arrow {
    color: #a7aaa4;
    font-size: 0.75rem;
}

.species-card-name {
    color: var(--option-muted);
    font-size: 0.72rem;
}

.species-card strong {
    margin-top: 2px;
    color: var(--option-heading);
    font-size: 1.8rem;
}

.species-card-link {
    margin-top: 12px;
    color: var(--option-gold-dark);
    font-size: 0.66rem;
}

/* Recent record panels */

.content-grid {
    gap: 18px;
}

.panel {
    padding: 21px;
    border: 1px solid var(--option-card-border);
    border-radius: 12px;
    background: var(--option-card);
    box-shadow: var(--option-shadow);
}

.record-row {
    padding: 12px 0;
    border-bottom-color: #eceae4;
}

.record-row strong {
    color: var(--option-heading);
    font-size: 0.82rem;
}

.record-row small {
    color: var(--option-muted);
    font-size: 0.7rem;
}

.record-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border: 1px solid #eadfc4;
    border-radius: 9px;
    background: #fbf6e9;
    color: var(--option-gold-dark);
}

.weight-avatar {
    border-color: #dfe2de;
    background: #f3f4f1;
    color: #666d67;
}

.record-meta,
.weight {
    background: #f4f1e8;
    color: #8b6a2e;
}

/* Animal pages inherit Option 2 */

.filter-bar,
.animal-card,
.empty-state.large {
    border-color: var(--option-card-border);
    background: var(--option-card);
    box-shadow: var(--option-shadow);
}

.filter-bar a.active {
    background: var(--option-sidebar-soft);
    color: var(--option-gold-light);
}

.filter-bar a:hover {
    background: #f4f1e8;
    color: var(--option-gold-dark);
}

.animal-photo {
    background:
        linear-gradient(
            145deg,
            #f0eadc,
            #ded8ca
        );
    color: var(--option-gold-dark);
}

.animal-species,
.back-link {
    color: var(--option-gold-dark);
}

.animal-card h2,
.profile-header h1,
.detail-list dd,
.notes h3,
.empty-state h2 {
    color: var(--option-heading);
}

.notes {
    background: #f6f2e8;
}

/* Footer */

.site-footer {
    color: #999d97;
}

/* Mobile Option 2 */

@media (max-width: 1050px) {
    :root {
        --sidebar-width: 225px;
    }

    .species-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .app-main {
        margin-left: 0;
    }

    .mobile-header {
        border-bottom-color: rgba(211, 169, 78, 0.16);
        background: rgba(23, 26, 25, 0.97);
    }

    .mobile-header .brand-mark {
        width: 48px;
        height: 39px;
        flex-basis: 48px;
    }

    .mobile-admin-link {
        color: var(--option-gold-light);
    }

    .mobile-nav {
        border-top-color: #dedbd2;
        background: rgba(255, 255, 255, 0.97);
    }

    .mobile-nav a.active {
        color: var(--option-gold-dark);
    }

    .page-container {
        width: min(100% - 30px, 1230px);
        padding-top: 28px;
    }

    .summary-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 135px;
    }

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

@media (max-width: 430px) {
    .species-card {
        min-height: 154px;
    }
}


/* Charcoal sidebar and black farm logo */
.sidebar {
    background: #292d2b;
    border-right-color: rgba(255, 255, 255, 0.08);
}

.sidebar .brand-mark {
    background: #d8b968;
}

/* Converts the green SVG artwork to black */
.sidebar .brand-mark img {
    filter: brightness(0) saturate(100%);
}

.sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile header */
.mobile-header {
    background: #292d2b;
}

.mobile-header .brand-mark {
    background: #d8b968;
}

.mobile-header .brand-mark img {
    filter: brightness(0) saturate(100%);
}
