/* boom-adoptant dashboard.css */

.ba-dashboard {
    max-width: 900px;
    margin: 0 auto;
}

.ba-dashboard-header {
    margin-bottom: 2rem;
}

.ba-dashboard-header h2 {
    margin-bottom: .25rem;
}

.ba-dashboard-intro {
    color: #555;
    margin: 0;
}

/* --- Lege staat --- */
.ba-dashboard-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9f9f6;
    border-radius: 10px;
    border: 2px dashed #c5d4be;
}

.ba-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* --- Grid --- */
.ba-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.ba-dashboard-grid--breed {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

/* --- Card --- */
.ba-dashboard-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .2s;
}

.ba-dashboard-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.1);
}

.ba-card-foto {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ba-card-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}

.ba-dashboard-card:hover .ba-card-foto img {
    transform: scale(1.04);
}

.ba-dashboard-card {
    display: flex;
    flex-direction: column;
}

.ba-card-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ba-card-body h3 {
    margin: 0 0 .4rem;
    font-size: 1.1rem;
}

.ba-card-body h3 a {
    text-decoration: none;
    color: inherit;
}

.ba-card-body h3 a:hover {
    text-decoration: underline;
}

.ba-card-soort {
    margin: 0 0 .4rem;
    font-size: .875rem;
    color: #4a6741;
    font-weight: 600;
}

.ba-card-info {
    margin: 0 0 .6rem;
    font-size: .875rem;
    color: #666;
    line-height: 1.5;
}

.ba-card-timeline {
    margin: .6rem 0 .75rem;
    border-top: 1px solid #eee;
    padding-top: .5rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
}

.ba-card-timeline-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem .6rem;
    font-size: .78rem;
    padding: .35rem .6rem;
    background: #f7f9f5;
    border-left: 3px solid #c5d4be;
    border-radius: 0 4px 4px 0;
}

.ba-tl-datum {
    font-weight: 700;
    color: #3a5232;
    white-space: nowrap;
    min-width: 6rem;
}

.ba-tl-stats {
    color: #444;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem;
    align-items: baseline;
}

.ba-tl-groei {
    color: #4a6741;
    font-weight: 600;
    font-style: normal;
}

.ba-tl-oogst {
    white-space: nowrap;
}

.ba-tl-info {
    color: #777;
    font-style: italic;
    flex-basis: 100%;
    padding-left: 6.6rem;
}

.ba-card-locatie {
    margin: .5rem 0 .75rem;
    font-size: .8rem;
}

.ba-card-locatie a {
    color: #555;
}

/* --- Knoppen --- */
.ba-btn {
    display: inline-block;
    padding: 9px 18px;
    background: #4a6741;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: .9rem;
    transition: background .15s;
}

.ba-btn:hover {
    background: #2d3e29;
}

.ba-btn-sm {
    padding: 6px 14px;
    font-size: .8rem;
    margin-top: auto;
}

/* ---------------------------------------------------------------
   Bomen overzicht filter
--------------------------------------------------------------- */
.ba-overzicht-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.ba-filter-balk {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f9faf9;
    border: 1px solid #e0ebe0;
    border-radius: 10px;
}

.ba-filter-input,
.ba-filter-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: .5rem .85rem;
    font-size: .9rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    height: 2.4rem;
    box-sizing: border-box;
}

.ba-filter-input {
    flex: 1;
    min-width: 180px;
}

.ba-filter-input:focus,
.ba-filter-select:focus {
    outline: none;
    border-color: #7a9e6e;
    box-shadow: 0 0 0 2px rgba(122,158,110,.2);
}

.ba-filter-status {
    display: flex;
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.ba-status-filter {
    background: #fff;
    border: none;
    padding: .45rem .9rem;
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
    color: #555;
    transition: background .15s, color .15s;
    border-right: 1px solid #d1d5db;
    line-height: 1.4;
}

.ba-status-filter:last-child { border-right: none; }

.ba-status-filter:hover { background: #f5f7f2; color: #4a6741; }

.ba-status-filter.actief {
    background: #4a6741;
    color: #fff;
}

.ba-overzicht-telling {
    font-size: .85rem;
    color: #888;
    margin: 0 0 1rem;
}

.ba-geen-resultaten {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

.ba-overzicht-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: .5rem;
}

.ba-overzicht-badge.beschikbaar {
    background: #fff3e0;
    color: #c17f3b;
}

.ba-overzicht-badge.geadopteerd {
    background: #f0f4ec;
    color: #6b8f5e;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .ba-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------
   Tabs
--------------------------------------------------------------- */
.ba-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #c5d4be;
    margin-bottom: 2rem;
}

.ba-tab {
    padding: .65rem 1.25rem;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: .9rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}

.ba-tab:hover { color: #4a6741; }

.ba-tab.actief {
    color: #4a6741;
    border-bottom-color: #4a6741;
}

.ba-tab-inhoud { display: none; }
.ba-tab-inhoud.actief { display: block; }

/* ---------------------------------------------------------------
   Voorkeuren
--------------------------------------------------------------- */
.ba-voorkeur-opgeslagen {
    background: #f0f4ec;
    color: #2d3e29;
    border-left: 3px solid #7a9e6e;
    padding: .6rem 1rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

.ba-voorkeuren-form h3 {
    margin: 0 0 .25rem;
}

.ba-voorkeur-intro {
    color: #666;
    font-size: .9rem;
    margin: 0 0 1.25rem;
}

.ba-voorkeur-lijst {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.ba-voorkeur-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1rem;
    background: #f9faf9;
    border: 1px solid #e0ebe0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}

.ba-voorkeur-item:hover { background: #f5f7f2; }

.ba-voorkeur-item input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #7a9e6e;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ba-voorkeur-item span {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.ba-voorkeur-item strong {
    font-size: .95rem;
    color: #222;
}

.ba-voorkeur-item small {
    font-size: .8rem;
    color: #666;
}

/* Paginering ("Alle bomen" + gewas-archief) */
.ba-paginering { display:flex; flex-wrap:wrap; justify-content:center; gap:.35rem; margin:1.5rem 0; }
a.ba-pag-knop, .ba-pag-knop {
    min-width:2.2rem; padding:.4rem .6rem; border:1px solid #cdd6c4; background:#fff;
    border-radius:6px; cursor:pointer; color:#2d3e29; font-size:.9rem; line-height:1;
    text-align:center; text-decoration:none; display:inline-block;
}
.ba-pag-knop:hover:not(:disabled) { background:#f0f4ec; }
.ba-pag-knop.actief { background:#4a6741; border-color:#4a6741; color:#fff; font-weight:600; }
.ba-pag-knop:disabled { opacity:.4; cursor:default; }
.ba-pag-ellipsis { padding:.4rem .2rem; color:#999; }

/* Gewas-archief kop */
.ba-gewas-titel { margin:0 0 .25rem; }
.ba-gewas-omschrijving { margin:0 0 1rem; color:#555; }
