/* ===================================================
   HatchMaamul ERP — Custom Stylesheet
   =================================================== */

:root {
    --hatch-green:      #2d6a4f;
    --hatch-green-light: #52b788;
    --hatch-yellow:     #f5c518;
    --hatch-orange:     #e76f51;
}

/* Sidebar branding */
.leftside-menu .logo .auth-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hatch-green);
}

/* Widget flat cards */
.widget-flat .widget-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* KPI badges */
.kpi-card {
    border-left: 4px solid var(--hatch-green);
}

/* Table tweaks */
.table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.table td { vertical-align: middle; }

/* XS buttons */
.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* Stage badges */
.stage-placed          { background-color: #0dcaf0; }
.stage-fertility_check { background-color: #ffc107; color: #000; }
.stage-development     { background-color: #0d6efd; }
.stage-hatching        { background-color: #198754; }
.stage-completed       { background-color: #198754; }
.stage-cancelled       { background-color: #dc3545; }

/* Progress bar for incubator utilization */
.incubator-progress { height: 8px; border-radius: 4px; }

/* Low stock alert row */
tr.low-stock td { background-color: rgba(220, 53, 69, 0.05); }

/* Balance warning */
.balance-warning {
    border-left: 4px solid #ffc107;
    background: rgba(255, 193, 7, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Auth page brand */
.auth-brand {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.auth-brand span { color: var(--hatch-yellow); }

/* Print styles */
@media print {
    .topbar, .leftside-menu, .page-title-box .breadcrumb,
    .btn, .btn-group, footer { display: none !important; }
    .content-page { margin-left: 0 !important; }
    .card { border: 1px solid #dee2e6 !important; box-shadow: none !important; }
}

/* Notification badge */
.noti-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    line-height: 18px;
    padding: 0 4px;
}

/* Lifecycle timeline */
.lifecycle-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    background: #f8f9fa;
    border-left: 3px solid #dee2e6;
    transition: all 0.2s;
}
.lifecycle-step.active-step {
    background: #e8f5e9;
    border-left-color: var(--hatch-green);
}
.lifecycle-step.completed-step {
    border-left-color: #0dcaf0;
}

/* Hatch rate color coding */
.rate-excellent { color: #198754; }
.rate-good      { color: #0d6efd; }
.rate-poor      { color: #dc3545; }

/* Responsive table card */
@media (max-width: 576px) {
    .card-body.p-0 .table th,
    .card-body.p-0 .table td { padding: 0.5rem; font-size: 0.8rem; }
}
