/* ==========================================================================
   Vetmivo Phase 16: Veterinary Reproduction, Pregnancy & Litter Stylesheet (.repro-*)
   ========================================================================== */

:root {
    --repro-primary: #ec4899;
    --repro-primary-light: #fdf2f8;
    --repro-accent: #8b5cf6;
    --repro-success: #10b981;
    --repro-warning: #f59e0b;
    --repro-info: #06b6d4;
    --repro-border: #e2e8f0;
    --repro-card-bg: #ffffff;
}

/* 1. Header Banner & Workspace */
.repro-header-card {
    background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);
    border: 1px solid #fbcfe8;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(236, 72, 153, 0.04);
}

/* 2. Reproductive Badges */
.repro-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.repro-badge-pregnant {
    background-color: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
}

.repro-badge-postpartum {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.repro-badge-breeding {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.repro-badge-candidate {
    background-color: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.repro-badge-retired {
    background-color: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.repro-badge-spayed {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* 3. KPI Grid & Stat Cards */
.repro-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.repro-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.repro-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #cbd5e1;
}

.repro-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.repro-kpi-card.kpi-pink::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.repro-kpi-card.kpi-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.repro-kpi-card.kpi-emerald::before { background: linear-gradient(90deg, #10b981, #34d399); }
.repro-kpi-card.kpi-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.repro-kpi-card.kpi-cyan::before { background: linear-gradient(90deg, #06b6d4, #38bdf8); }

.repro-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.repro-kpi-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.repro-kpi-icon {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.repro-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    margin-top: 4px;
}

.repro-kpi-subtitle {
    font-size: 0.76rem;
    color: #94a3b8;
}

/* 4. Pregnancy Cards */
.pregnancy-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pregnancy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.pregnancy-due-banner {
    background: #fdf2f8;
    border: 1px dashed #f472b6;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

/* 5. Offspring Cards & Neonatal Grid */
.offspring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.offspring-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

.offspring-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.offspring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offspring-order-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offspring-weight-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

/* 6. Timeline Stream */
.repro-timeline {
    position: relative;
    padding-left: 32px;
}

.repro-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 12px;
    width: 2px;
    background: #e2e8f0;
}

.repro-timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.repro-timeline-item:last-child {
    margin-bottom: 0;
}

.repro-timeline-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ec4899;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 0 0 2px #ffffff;
}

.repro-timeline-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
}

/* 7. Print A4 Documents */
@media print {
    .app-sidebar, .app-header, .btn, .no-print {
        display: none !important;
    }
    body, .main-content {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .print-a4-page {
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }
}
