/* =====================================================
   Albergue Patitas — Custom CSS
   ===================================================== */

:root {
    --pat-naranja:  #E8531E;
    --pat-naranja2: #c94316;
    --pat-dorado:   #F5A623;
    --pat-crema:    #FAF6F2;
    --pat-cafe:     #6b6358;
    --pat-cafe-lt:  #c5bcaf;
    --pat-dark:     #2a2622;
}

/* ─── Global ─── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8f5f2;
    color: var(--pat-dark);
}

/* ─── Helpers ─── */
.pat-text-naranja  { color: var(--pat-naranja) !important; }
.pat-bg-naranja    { background: var(--pat-naranja) !important; }
.pat-bg-crema      { background: var(--pat-crema) !important; }

/* alias para las vistas referenciadas con spyc- */
.spyc-text-naranja { color: var(--pat-naranja) !important; }
.spyc-bg-naranja   { background: var(--pat-naranja) !important; }

/* ─── Buttons ─── */
.btn-primary {
    background: var(--pat-naranja);
    border-color: var(--pat-naranja);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--pat-naranja2);
    border-color: var(--pat-naranja2);
}
.btn-outline-primary {
    color: var(--pat-naranja);
    border-color: var(--pat-naranja);
}
.btn-outline-primary:hover {
    background: var(--pat-naranja);
    border-color: var(--pat-naranja);
    color: #fff;
}

/* ─── Links ─── */
a { color: var(--pat-naranja); }
a:hover { color: var(--pat-naranja2); }

/* ─── Public Navbar ─── */
.navbar-brand { font-weight: 800; color: var(--pat-naranja) !important; letter-spacing: -.3px; }
.navbar-nav .nav-link { color: #444; font-weight: 500; transition: color .2s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--pat-naranja); }

/* ─── Public Hero ─── */
.hero-section {
    background: linear-gradient(135deg, #FFF3EE 0%, var(--pat-crema) 60%, #fff 100%);
    padding: 80px 0 60px;
}
.hero-badge {
    display: inline-block;
    background: rgba(232,83,30,.12);
    color: var(--pat-naranja);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ─── Public Cards ─── */
.animal-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: transform .2s, box-shadow .2s;
}
.animal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.animal-card .card-img-top { height: 220px; object-fit: cover; }

/* ─── Status pills (public) ─── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-available  { background: #e8f5e9; color: #2e7d32; }
.status-in_process { background: #e3f2fd; color: #1565c0; }
.status-adopted    { background: #fff3e0; color: #e65100; }
.status-quarantine { background: #fce4ec; color: #880e4f; }
.status-deceased   { background: #f5f5f5; color: #616161; }

/* ─── Sponsorship progress bar ─── */
.progress { border-radius: 50px; }
.progress-bar { background: var(--pat-naranja); border-radius: 50px; }

/* ─── Section titles ─── */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pat-dark);
    margin-bottom: 8px;
}
.section-subtitle { color: var(--pat-cafe); }
.section-divider {
    width: 48px;
    height: 4px;
    background: var(--pat-naranja);
    border-radius: 2px;
    margin: 0 auto 24px;
}

/* ─── Blog card ─── */
.blog-card { border: none; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.07); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }

/* ─── Footer ─── */
footer.site-footer {
    background: var(--pat-dark);
    color: rgba(255,255,255,.75);
}
footer.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
footer.site-footer a:hover { color: #fff; }

/* =====================================================
   ADMIN PANEL STYLES
   ===================================================== */

/* ─── Sidebar ─── */
#adminSidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--pat-dark);
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform .3s;
}
.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .brand-title {
    font-weight: 800;
    color: var(--pat-naranja);
    font-size: 1.1rem;
    letter-spacing: -.3px;
}
.sidebar-brand .brand-sub {
    font-size: .72rem;
    color: rgba(255,255,255,.4);
    margin-top: 2px;
}

.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-section-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    padding: 8px 20px 4px;
    margin-top: 4px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    border-radius: 0;
    transition: background .15s, color .15s;
    position: relative;
}
.sidebar-link i { font-size: 1rem; width: 18px; flex-shrink: 0; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-link.active {
    background: rgba(232,83,30,.18);
    color: var(--pat-naranja);
    font-weight: 600;
}
.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--pat-naranja);
    border-radius: 0 2px 2px 0;
}

/* ─── Admin main area ─── */
#adminContent {
    margin-left: 240px;
    min-height: 100vh;
    background: #f4f0ec;
    display: flex;
    flex-direction: column;
}

/* ─── Topbar ─── */
.admin-topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #ede8e1;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}
.admin-topbar .page-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pat-dark);
    margin: 0;
}
.admin-topbar .breadcrumb-bar {
    font-size: .78rem;
    color: var(--pat-cafe);
}
.admin-topbar .breadcrumb-bar a {
    color: var(--pat-cafe);
    text-decoration: none;
}
.admin-topbar .breadcrumb-bar a:hover { color: var(--pat-naranja); }
.admin-topbar .breadcrumb-bar .sep { margin: 0 6px; opacity: .5; }

/* ─── Admin content wrapper ─── */
.admin-inner { padding: 28px 28px 40px; flex: 1; }

/* ─── Admin tables ─── */
.admin-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.admin-table thead th {
    background: #FAF6F2;
    font-size: .73rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--pat-cafe);
    padding: 12px 16px;
    border-bottom: 1px solid #ede8e1;
}
.admin-table tbody td { padding: 12px 16px; vertical-align: middle; border-bottom: 1px solid #f5f0ea; }
.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-table-inner { /* used inside cards */ }
.admin-table-inner thead th {
    background: #FAF6F2;
    font-size: .73rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--pat-cafe);
    padding: 10px 16px;
}
.admin-table-inner tbody td { padding: 10px 16px; vertical-align: middle; }

/* ─── Role option cards (followup form) ─── */
.spyc-role-option { position: relative; }
.spyc-role-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.spyc-role-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e7dfd6;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fff;
}
.spyc-role-option label:hover { border-color: var(--pat-naranja); background: #fff8f5; }
.spyc-role-option input:checked + label {
    border-color: var(--pat-naranja);
    background: #FFF3EE;
}
.spyc-role-icon { font-size: 1.4rem; color: var(--pat-cafe); flex-shrink: 0; }
.spyc-role-title { font-weight: 600; font-size: .9rem; }
.spyc-role-desc  { font-size: .78rem; color: var(--pat-cafe); }
.spyc-role-check { display: none; color: var(--pat-naranja); margin-left: auto; font-size: 1.1rem; }
.spyc-role-option input:checked + label .spyc-role-check { display: block; }
.spyc-role-option input:checked + label .spyc-role-icon { color: var(--pat-naranja); }

/* ─── Responsive sidebar ─── */
@media (max-width: 991.98px) {
    #adminSidebar { transform: translateX(-240px); }
    #adminSidebar.show { transform: translateX(0); }
    #adminContent { margin-left: 0; }
    .admin-inner { padding: 20px 16px 32px; }
}
