﻿/* ===============================
   ANIMAL DASHBOARD
=================================*/

.animal-dashboard {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* On évite le conflit avec les KPI existants */
.animal-kpi-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 10px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .animal-kpi-card h4 {
        margin: 0;
        font-size: 22px;
        color: #2c3e50;
    }

    .animal-kpi-card span {
        font-size: 13px;
        color: #7f8c8d;
    }


/* ===============================
   FILTER BAR
=================================*/

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

    .filters input,
    .filters select {
        min-width: 160px;
    }


/* ===============================
   ANIMAL PHOTO
=================================*/

.animal-photo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}


/* ===============================
   BADGES (custom pour éviter bootstrap)
=================================*/

.animal-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.animal-badge-male {
    background: #d0ebff;
    color: #004085;
}

.animal-badge-female {
    background: #ffd6e7;
    color: #842029;
}

.animal-badge-alive {
    background: #d4edda;
    color: #155724;
}

.animal-badge-sold {
    background: #d1ecf1;
    color: #0c5460;
}

.animal-badge-dead {
    background: #f8d7da;
    color: #721c24;
}


/* ===============================
   TABLE IMPROVEMENTS
=================================*/

.table td {
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ===============================
   DEMO APP SHELL FIXES
=================================*/
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f7f6;
}

main {
    flex: 1;
    min-width: 0;
}

.sidebar {
    background: #14201b !important;
}

.content {
    padding-top: 1.5rem;
    padding-bottom: 5rem;
}

.top-row {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dfe5e1;
    justify-content: space-between;
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-context {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.top-title {
    font-weight: 700;
    color: #17251f;
    white-space: nowrap;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-action {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.75rem;
    border: 1px solid #d4ddd8;
    border-radius: 6px;
    color: #33443b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
}

.top-action.primary {
    border-color: #2f6f4e;
    color: #ffffff;
    background: #2f6f4e;
}

.top-action:hover {
    text-decoration: none;
    border-color: #2f6f4e;
}

.nav-shell {
    min-height: 100%;
    color: #dce7e1;
}

.nav-shell .top-row {
    min-height: 4.25rem;
    background: #14201b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    font-size: 1rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    color: #102018;
    background: #bfe2ce;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-copy {
    display: grid;
    min-width: 0;
    line-height: 1.1;
}

.brand-title {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-weight: 700;
}

.brand-subtitle {
    color: #9eb8aa;
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-scrollable {
    padding: 0.75rem 0 1rem;
}

.nav-list {
    display: grid;
    gap: 0.15rem;
}

.farm-pill {
    display: grid;
    gap: 0.15rem;
    margin: 0.25rem 1rem 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(191, 226, 206, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.farm-pill span {
    color: #9eb8aa;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.farm-pill strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
}

.nav-section {
    padding: 1rem 1.25rem 0.35rem;
    color: #9eb8aa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nav-item {
    font-size: 0.9rem;
}

.nav-item a.nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.55rem;
    border-radius: 7px;
    color: #dce7e1;
    line-height: 1.2;
    text-decoration: none;
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 6px;
    color: #bfe2ce;
    background: rgba(191, 226, 206, 0.11);
    font-size: 0.78rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.nav-item a.nav-link.active {
    color: #ffffff;
    background: rgba(191, 226, 206, 0.16);
}

.nav-item a.nav-link.active .nav-icon {
    color: #102018;
    background: #bfe2ce;
}

.nav-item a.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.user-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.45rem;
    border: 1px solid #dfe5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(21, 32, 27, 0.06);
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: #ffffff;
    background: #2f6f4e;
    font-weight: 700;
    flex: 0 0 auto;
}

.user-status-main {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.user-line,
.anonymous-state {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #198754;
    flex: 0 0 auto;
}

.status-dot.offline {
    background: #6c757d;
}

.user-email,
.farm-line {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    color: #24342d;
    font-size: 0.875rem;
    font-weight: 600;
}

.farm-line {
    color: #2f6f4e;
    font-size: 0.8rem;
    font-weight: 700;
}

.logout-btn {
    height: 2rem;
    border-radius: 6px;
    white-space: nowrap;
}

.feed-dashboard,
.schedule-page {
    display: grid;
    gap: 1.25rem;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.page-heading h3 {
    margin: 0;
    color: #17251f;
    font-weight: 800;
}

.page-heading p {
    margin: 0.35rem 0 0;
    color: #6a7b71;
}

.eyebrow {
    color: #2f6f4e;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.kpi-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid #dfe5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(21, 32, 27, 0.05);
}

.kpi-card span,
.kpi-card small {
    color: #6a7b71;
}

.kpi-card strong {
    color: #17251f;
    font-size: 1.75rem;
    line-height: 1;
}

.kpi-card.danger strong {
    color: #b33a3a;
}

.kpi-card.success strong {
    color: #2f6f4e;
}

.insight-strip,
.summary-strip {
    display: grid;
    border: 1px solid #dfe5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

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

.summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-strip div,
.summary-strip div {
    display: grid;
    gap: 0.15rem;
    padding: 0.9rem 1rem;
    border-right: 1px solid #dfe5e1;
}

.insight-strip div:last-child,
.summary-strip div:last-child {
    border-right: 0;
}

.insight-strip span,
.summary-strip span {
    color: #17251f;
    font-size: 1.35rem;
    font-weight: 800;
}

.insight-strip small,
.summary-strip small {
    color: #6a7b71;
    font-weight: 700;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.action-tile {
    display: grid;
    gap: 0.35rem;
    min-height: 7rem;
    padding: 0.9rem;
    border: 1px solid #dfe5e1;
    border-radius: 8px;
    text-align: left;
    color: #17251f;
    background: #ffffff;
}

.action-tile:hover {
    border-color: #2f6f4e;
}

.tile-icon {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 6px;
    color: #ffffff;
    background: #2f6f4e;
    font-weight: 800;
}

.action-tile strong {
    font-size: 1rem;
}

.action-tile small {
    color: #6a7b71;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1rem;
}

.dashboard-columns section,
.schedule-item,
.schedule-form {
    padding: 1rem;
    border: 1px solid #dfe5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(21, 32, 27, 0.05);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.section-title h5 {
    margin: 0;
    color: #17251f;
    font-weight: 800;
}

.section-title span {
    color: #6a7b71;
    font-size: 0.85rem;
    font-weight: 700;
}

.critical-list {
    display: grid;
    gap: 0.65rem;
}

.critical-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #fff7ed;
}

.critical-row div,
.critical-numbers {
    display: grid;
    gap: 0.2rem;
}

.critical-row span {
    color: #7a6040;
    font-size: 0.85rem;
}

.critical-numbers {
    text-align: right;
}

.empty-state {
    padding: 1rem;
    border: 1px dashed #cfd8d2;
    border-radius: 8px;
    color: #6a7b71;
    background: #f8faf9;
}

.debug-log-panel {
    position: fixed !important;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    width: min(680px, calc(100vw - 2rem));
    border: 1px solid #27352f;
    border-radius: 8px;
    color: #d8efe3;
    background: #101815;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.debug-log-panel.closed {
    width: auto;
}

.debug-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.6rem;
}

.debug-log-toggle,
.debug-log-action {
    border: 0;
    color: inherit;
    background: transparent;
}

.debug-log-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
}

.debug-log-action {
    color: #a7c8b8;
    font-size: 0.8rem;
}

.debug-log-count {
    min-width: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    color: #101815;
    background: #cfe6d9;
    font-size: 0.75rem;
}

.debug-log-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #8fb6a4;
}

.debug-log-dot.success {
    background: #55c184;
}

.debug-log-dot.warning {
    background: #e5b949;
}

.debug-log-dot.error {
    background: #e45d5d;
}

.debug-log-body {
    max-height: 14rem;
    overflow-y: auto;
    border-top: 1px solid #27352f;
    padding: 0.35rem 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
}

.debug-log-entry {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.5rem;
    padding: 0.28rem 0.65rem;
}

.debug-log-entry.error {
    color: #ffb8b8;
}

.debug-log-entry.warning {
    color: #ffe0a3;
}

.debug-log-entry.success {
    color: #b9f0ce;
}

.debug-log-time {
    color: #88a497;
}

.debug-log-message {
    overflow-wrap: anywhere;
}

.debug-log-empty {
    padding: 0.75rem;
    color: #88a497;
}

@media (max-width: 1100px) {
    .kpi-grid,
    .action-grid,
    .dashboard-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .top-row,
    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .top-context,
    .top-links,
    .user-status {
        width: 100%;
    }

    .kpi-grid,
    .action-grid,
    .dashboard-columns,
    .insight-strip,
    .summary-strip {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 268px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    main > .top-row {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .collapse {
        display: block;
    }

    .nav-scrollable {
        height: calc(100vh - 4.25rem);
        overflow-y: auto;
    }
}

.farm-page {
    display: grid;
    gap: 1.25rem;
}

.farm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.farm-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dfe5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(21, 32, 27, 0.05);
}

.farm-card span {
    color: #6a7b71;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.farm-card h5 {
    margin: 0.25rem 0 0;
    color: #17251f;
    font-weight: 800;
}

.farm-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.data-table {
    width: 100%;
    border: 1px solid #dfe5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.data-table thead th {
    background: #eaf2ed;
    color: #17251f;
    font-weight: 800;
    border-bottom: 1px solid #cfd8d2;
}

.data-table tbody tr:nth-child(even) {
    background: #f8fbf9;
}

.data-table tbody tr:hover {
    background: #eef6f1;
}

.data-table td,
.data-table th {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.section-card {
    padding: 1rem;
    border: 1px solid #dfe5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(21, 32, 27, 0.05);
}

/* ===============================
   DESIGN SYSTEM OVERRIDES — aligned with FarmLivo (--fl-* in farmlivo-theme.css)
=================================*/
:root {
    --ds-bg: var(--fl-bg, #F7F8F3);
    --ds-surface: var(--fl-surface, #FFFFFF);
    --ds-surface-alt: var(--fl-surface-muted, #FAFBF7);
    --ds-border: var(--fl-border, #DDE5DC);
    --ds-border-strong: var(--fl-border-strong, #C8D4C8);
    --ds-text: var(--fl-text, #1F2A24);
    --ds-muted: var(--fl-muted, #66736B);
    --ds-primary: var(--fl-primary, #24513A);
    --ds-primary-strong: var(--fl-primary-hover, #1D4230);
    --ds-accent: var(--fl-olive, #6F8F3D);
    --ds-success: var(--fl-success, #2F7D4A);
    --ds-warning: var(--fl-warning, #B97800);
    --ds-danger: var(--fl-danger, #D96A5F);
    --ds-info: var(--fl-info, #2F6F8F);
    --ds-soft-shadow: var(--fl-shadow-soft, 0 8px 24px rgba(36, 81, 58, 0.08));
    --ds-elevated-shadow: var(--fl-shadow-hover, 0 12px 32px rgba(36, 81, 58, 0.12));
    --ds-radius-md: var(--fl-radius-sm, 10px);
    --ds-radius-lg: var(--fl-radius-md, 14px);
    --ds-radius-xl: var(--fl-radius-lg, 18px);
    --ds-focus: var(--fl-focus-ring, 0 0 0 3px rgba(36, 81, 58, 0.28));
}

body {
    color: var(--ds-text);
    background: var(--ds-bg);
    overflow-y: scroll;
}

a {
    color: var(--ds-primary);
}

a:hover {
    color: var(--ds-primary-strong);
}

button,
.btn,
.form-control,
.form-select,
input,
select,
textarea {
    border-radius: var(--ds-radius-md);
}

.btn:focus,
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    box-shadow: var(--ds-focus);
}

.page {
    background: transparent;
}

main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

article.content {
    flex: 1;
    min-width: 0;
    min-height: calc(100vh - 4.25rem);
}

.sidebar {
    background: linear-gradient(180deg, #111b25 0%, #121d18 100%) !important;
}

.top-row {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--ds-border);
    backdrop-filter: blur(12px);
}

.top-title {
    color: var(--ds-text);
}

.top-action {
    border-color: var(--ds-border);
    color: var(--ds-muted);
    background: var(--ds-surface);
}

.top-action.primary {
    border-color: var(--ds-primary);
    color: #ffffff;
    background: var(--ds-primary);
}

.top-action:hover {
    border-color: var(--ds-primary);
}

.nav-shell {
    color: #e7eff7;
}

.nav-shell .top-row {
    background: rgba(17, 27, 37, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand-mark {
    color: #0f172a;
    background: #dbeafe;
}

.brand-title {
    color: #ffffff;
}

.brand-subtitle {
    color: #9fb3c8;
}

.farm-pill {
    border-color: rgba(219, 227, 234, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.farm-pill span {
    color: #9fb3c8;
}

.farm-pill strong {
    color: #ffffff;
}

.nav-section {
    color: #9fb3c8;
}

.nav-item a.nav-link {
    color: #e7eff7;
}

.nav-icon {
    color: #93c5fd;
    background: rgba(147, 197, 253, 0.12);
}

.nav-item a.nav-link.active {
    color: #ffffff;
    background: rgba(147, 197, 253, 0.16);
}

.nav-item a.nav-link.active .nav-icon {
    color: #0f172a;
    background: #dbeafe;
}

.nav-item a.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.user-status {
    border-color: var(--ds-border);
    background: var(--ds-surface);
    box-shadow: var(--ds-soft-shadow);
}

.user-avatar {
    background: linear-gradient(135deg, var(--ds-primary), var(--ds-accent));
}

.user-email {
    color: var(--ds-text);
}

.farm-line {
    color: var(--ds-accent);
}

.status-dot {
    background: #22c55e;
}

.status-dot.offline {
    background: #94a3b8;
}

.anonymous-state {
    color: var(--ds-muted);
}

.page-heading h3,
.section-title h5,
.farm-card h5 {
    color: var(--ds-text);
}

.page-heading p,
.section-title span,
.kpi-card span,
.kpi-card small,
.insight-strip small,
.summary-strip small,
.action-tile small,
.farm-card span,
.empty-state,
.critical-row span,
.debug-log-time,
.debug-log-empty {
    color: var(--ds-muted);
}

.kpi-card,
.summary-strip,
.insight-strip,
.action-tile,
.dashboard-columns section,
.schedule-item,
.schedule-form,
.section-card,
.farm-card,
.confirm-dialog {
    border-color: var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface);
    box-shadow: var(--ds-soft-shadow);
}

.kpi-card::before {
    background: var(--ds-accent);
}

.kpi-card.danger::before {
    background: var(--ds-danger);
}

.kpi-card.success::before {
    background: var(--ds-success);
}

.kpi-card.warning::before {
    background: var(--ds-warning);
}

.kpi-card.info::before {
    background: var(--ds-primary);
}

.kpi-card.kpi-primary::before {
    background: var(--ds-primary);
}

.kpi-card.kpi-success::before {
    background: var(--ds-success);
}

.kpi-card.kpi-warning::before {
    background: var(--ds-warning);
}

.kpi-card.kpi-danger::before {
    background: var(--ds-danger);
}

.kpi-card.kpi-info::before {
    background: var(--ds-info);
}

.kpi-card.kpi-dark::before {
    background: #334155;
}

.kpi-card strong,
.summary-strip span,
.insight-strip span {
    color: var(--ds-text);
}

.summary-strip div,
.insight-strip div {
    border-right-color: var(--ds-border);
    background: var(--ds-surface);
}

.action-tile {
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.action-tile:hover {
    border-color: var(--ds-primary);
    box-shadow: var(--ds-elevated-shadow);
}

.tile-icon {
    background: var(--ds-primary);
}

.empty-state {
    border-color: var(--ds-border-strong);
    background: var(--ds-surface-alt);
}

.data-table {
    border-color: var(--ds-border);
    border-radius: var(--ds-radius-lg);
}

.data-table thead th {
    background: #edf4ff;
    color: var(--ds-text);
    border-bottom-color: var(--ds-border-strong);
}

.data-table tbody tr:nth-child(even) {
    background: #fbfcfe;
}

.data-table tbody tr:hover {
    background: #eef5ff;
}

.confirm-backdrop {
    background: rgba(15, 23, 42, 0.58);
}

.confirm-dialog {
    border-radius: var(--ds-radius-xl);
}

.confirm-head h5 {
    color: var(--ds-text);
}

.debug-log-panel {
    border-color: #1f2937;
    border-radius: var(--ds-radius-lg);
    color: #e5eef9;
    background: #0f172a;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

.debug-log-panel.closed {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.debug-log-action {
    color: #93c5fd;
}

.debug-log-count {
    color: #0f172a;
    background: #dbeafe;
}

.debug-log-body {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.debug-log-dot.success {
    background: #4ade80;
}

.debug-log-dot.warning {
    background: #fbbf24;
}

.debug-log-dot.error {
    background: #f87171;
}

.debug-log-entry.error {
    color: #fecaca;
}

.debug-log-entry.warning {
    color: #fde68a;
}

.debug-log-entry.success {
    color: #bbf7d0;
}

.analytics-page,
.farm-page,
.feed-dashboard,
.schedule-page,
.animal-details-page {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 1.25rem;
}

.analytics-page .row,
.farm-page .row,
.feed-dashboard .row,
.schedule-page .row {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.analytics-page .chart-container,
.analytics-page .chart-wrapper,
.farm-page .chart-container,
.feed-dashboard .chart-container,
.schedule-page .chart-container {
    width: 100%;
    min-width: 0;
}

.analytics-page .col-md-4 {
    min-width: 0;
}

@media (max-width: 700px) {
    .top-row,
    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .top-context,
    .top-links,
    .user-status {
        width: 100%;
    }

    .kpi-grid,
    .action-grid,
    .dashboard-columns,
    .insight-strip,
    .summary-strip {
        grid-template-columns: 1fr;
    }
}

