/* Züchter-CMS Custom Styles - Modern Purple/Glass Design */

:root {
    /* Modern Purple Color Palette */
    --primary-color: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #6c757d;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    /* Glass Effect Colors */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-bg-dark: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(124, 58, 237, 0.15);
    
    /* Background */
    --body-bg: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--body-bg);
    background-attachment: fixed;
}

main {
    flex: 1;
}

/* Modern Navbar with Purple/Glass Effect */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1040;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
    padding: 0.5rem 1rem !important;
}

.navbar .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

body:not([data-ap-layout="animalispro"]):not([data-ap-variant]) .navbar:not(.ap2-navbar) .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
    padding: 0.5rem;
    z-index: 1050;
}

/* Dark dropdown for navbar-dark (used on admin pages using frontend header) */
.navbar.navbar-dark .dropdown-menu {
    background: #1E0F3A !important;
    border: 1px solid rgba(217, 119, 255, 0.25) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1055 !important;
    position: absolute;
}
.navbar.navbar-dark .dropdown-item {
    color: #CDBFEA !important;
    border-radius: 8px;
    margin: 1px 4px;
    width: calc(100% - 8px);
}
.navbar.navbar-dark .dropdown-item:hover,
.navbar.navbar-dark .dropdown-item:focus {
    background: rgba(217, 119, 255, 0.15) !important;
    color: #F5F0FF !important;
    transform: none;
}
.navbar.navbar-dark .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.navbar.navbar-dark .dropdown-header {
    color: #D977FF !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.navbar .dropdown-menu.dropdown-menu-lg {
    min-width: 18rem;
}

/* Scrollable dropdown menus on small screens */
.dropdown-menu {
    max-height: 90vh;
    overflow-y: auto;
}

.navbar .dropdown-header {
    color: #5b21b6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.navbar .dropdown-item {
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.navbar .dropdown-divider {
    border-color: rgba(124, 58, 237, 0.1);
}

.navbar .badge {
    background: #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.navbar .navbar-actions .nav-link {
    padding: 0.5rem 0.75rem !important;
}

.navbar .nav-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0 !important;
}

.navbar .nav-icon-link .badge {
    position: absolute;
    top: 0.1rem;
    right: 0.1rem;
}

/* Improved Icon Styling Throughout Application */
.bi {
    display: inline-block;
    vertical-align: -.125em;
}

/* Navbar Toggler Improvements */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    flex-shrink: 0;
}

/* Icon Spacing in Nav Links */
.navbar .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.navbar .dropdown-item i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
    font-size: 1em;
}

/* Better Icon Alignment in Buttons */
.btn i {
    vertical-align: middle;
    margin-right: 0.35rem;
}

.btn i:only-child {
    margin-right: 0;
}

/* Card Title Icons */
.card-title i,
.card-header i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Alert Icons */
.alert i:first-child {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Modern Glass Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.2);
}

.card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 16px 16px 0 0 !important;
    font-weight: 600;
    color: #5b21b6;
}

.card-footer {
    background: rgba(124, 58, 237, 0.03);
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 0 0 16px 16px !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}


/* Dashboard Stats Cards */
.card.text-white a {
    text-decoration: none;
    font-size: 0.9rem;
}

.card.text-white a:hover {
    text-decoration: underline;
}

/* Forms */
.form-label {
    font-weight: 500;
}

/* Tables */
.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    margin-right: 5px;
}

/* Badges */
.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

/* Profile Image */
.profile-image {
    width: var(--profile-image-size, 80px);
    height: var(--profile-image-size, 80px);
    object-fit: cover;
    border-radius: 50%;
}

.profile-image-small {
    width: var(--profile-image-small-size, 28px) !important;
    height: var(--profile-image-small-size, 28px) !important;
    max-width: var(--profile-image-small-size, 28px) !important;
    max-height: var(--profile-image-small-size, 28px) !important;
    object-fit: cover;
    border-radius: 50%;
}

/* Modern profile VCards */
.profile-vcard {
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.facility-profile .profile-vcard {
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.facility-profile .facility-hero {
    background: linear-gradient(120deg, #0ea5e9, #6366f1);
}

.facility-profile .vcard-chip {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.vcard-hero {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(120deg, #6366f1, #8b5cf6);
    color: #fff;
}

.vcard-hero.vcard-hero-compact {
    height: var(--facility-profile-cover-height, 100px);
}

.vcard-cover {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    max-height: 120px;
}

.vcard-hero img.vcard-cover {
    width: 100%;
    height: 120px;
    object-fit: cover;
    max-height: 120px;
}

.vcard-hero-compact .vcard-cover,
.vcard-hero-compact img.vcard-cover {
    height: var(--facility-profile-cover-height, 100px) !important;
    max-height: var(--facility-profile-cover-height, 100px) !important;
    width: 100% !important;
    object-fit: cover !important;
}


.vcard-hero-content {
    position: absolute;
    inset: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.15) 65%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
}

.vcard-label {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.vcard-badges .badge {
    font-size: 0.75rem;
}

.vcard-meta {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.vcard-meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #0f172a;
}

.vcard-meta i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.vcard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.vcard-stat {
    padding: 12px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.08);
    text-align: center;
}

.vcard-stat .stat-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.vcard-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(15, 23, 42, 0.12);
    color: #fff;
}

.profile-tabs .nav-link {
    border-radius: 999px;
    margin-right: 8px;
    padding: 8px 16px;
}

.profile-tabs .nav-link.active {
    background: #4f46e5;
    color: #fff;
}

.info-pill {
    border-radius: 12px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.dog-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), rgba(79,70,229,0.18)), linear-gradient(120deg, #0ea5e9, #6366f1);
    color: #fff;
    --dog-hero-stat-min-width: 180px;
}

.dog-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--dog-hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(6px);
    transform: scale(1.05);
}

.dog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15,23,42,0.82) 0%, rgba(79,70,229,0.4) 50%, rgba(14,165,233,0.55) 100%);
}

.dog-hero-content {
    position: relative;
    padding: 16px 20px;
}

.dog-hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.dog-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-hero-placeholder {
    color: #e5e7eb;
    font-size: 2rem;
}

.dog-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dog-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(248,250,252,0.9);
    font-size: 0.82rem;
}

.dog-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--dog-hero-stat-min-width), 1fr));
    gap: 12px;
}

.dog-hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dog-hero-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.dog-hero-stat .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.dog-hero-stat .stat-label {
    font-size: 0.72rem;
    opacity: 0.78;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dog-hero-stat .stat-value {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
}

.profile-tabs-modern .nav-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.2s ease;
    padding: 10px 18px;
    margin-right: 4px;
    border-radius: 10px 10px 0 0;
    font-weight: 500;
}

.profile-tabs-modern .nav-link:hover:not(.active) {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.profile-tabs-modern .nav-link i {
    margin-right: 4px;
}

.profile-tabs-modern .nav-link.active {
    background: linear-gradient(120deg, #6366f1, #0ea5e9);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3);
    font-weight: 600;
}

.facility-profile .facility-panel {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.facility-profile .facility-panel .card-header {
    background: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.facility-profile .facility-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.facility-profile .facility-highlights i {
    color: #6366f1;
    margin-right: 4px;
}

.facility-profile .facility-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.facility-profile .facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.facility-profile .facility-list .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 16px 12px;
}

.facility-profile .facility-list .list-group-item:last-child {
    border-bottom: none;
}

/* Dog/Puppy Images */
.dog-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

img.dog-image-thumb {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    max-width: 60px !important;
    max-height: 60px !important;
}

.dog-image-thumb {
    width: 60px !important;
    height: 60px !important;
    border-radius: 4px;
    display: block;
    max-width: 60px !important;
    max-height: 60px !important;
}

.dog-card-image {
    height: 140px;
    object-fit: cover;
}

/* Pedigree/Stammbaum */
.pedigree {
    overflow-x: auto;
}

.pedigree-generation {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    margin-right: 20px;
}

.pedigree-dog {
    border: 1px solid #dee2e6;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    background: #f8f9fa;
}

.pedigree-dog h6 {
    margin: 0;
    font-size: 0.9rem;
}

.pedigree-dog small {
    color: #6c757d;
}

/* Weight Chart */
.weight-chart {
    margin-top: 20px;
}

/* Message Thread */
.message-thread {
    max-height: 500px;
    overflow-y: auto;
}

.message-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.message-item.sent {
    background: #e7f3ff;
    margin-left: 40px;
}

.message-item.received {
    background: #f8f9fa;
    margin-right: 40px;
}

/* Comments */
.comment {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 15px;
}

/* Responsive - Tablet Optimization */
@media (max-width: 992px) {
    .dog-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        --dog-hero-stat-min-width: 100%;
    }
    
    .dog-hero-avatar {
        width: 72px;
        height: 72px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card-img-top {
        height: 120px;
        object-fit: cover;
    }
    
    .dog-image {
        height: 120px;
        object-fit: cover;
    }
    
    .dog-card-image {
        height: 120px;
        object-fit: cover;
    }
    
    .pedigree-generation {
        min-width: 150px;
    }
    
    /* Dog Profile Mobile Optimizations */
    .dog-hero-avatar {
        width: 64px;
        height: 64px;
    }
    
    .dog-hero-content {
        padding: 14px 16px;
    }
    
    .dog-hero-chip {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .dog-hero-stats {
        grid-template-columns: 1fr;
        --dog-hero-stat-min-width: 100%;
    }
    
    .dog-hero-stat {
        padding: 10px 12px;
    }
    
    .dog-hero-stat .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .dog-hero-stat .stat-label {
        font-size: 0.8rem;
    }
    
    .dog-hero-stat .stat-value {
        font-size: 1rem;
    }
    
    .vcard-hero,
    .vcard-cover,
    .vcard-hero img.vcard-cover {
        height: 80px !important;
        max-height: 80px !important;
    }
    
    .vcard-hero-compact {
        height: 80px !important;
    }
    
    .vcard-hero-compact .vcard-cover,
    .vcard-hero-compact img.vcard-cover {
        height: 80px !important;
        max-height: 80px !important;
    }
    
    .vcard-hero-content {
        padding: 12px;
    }
    
    .vcard-meta {
        gap: 8px;
    }
    
    .vcard-meta li {
        font-size: 0.9rem;
    }
    
    .vcard-meta i {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }
    
    .profile-vcard .card-body {
        padding: 12px;
    }
    
    .vcard-chip {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .vcard-label {
        font-size: 0.75rem;
    }
    
    .vcard-badges {
        gap: 4px;
    }
    
    /* Dog Image Thumbnails - Mobile Optimization */
    img.dog-image-thumb,
    .dog-image-thumb {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    /* Navbar Mobile Optimization */
    .navbar .nav-link {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.9rem;
    }
    
    /* Table Actions Mobile Optimization */
    .table-actions .btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
        margin-right: 2px;
    }
}

/* Responsive - Extra Small Devices (Phones) */
@media (max-width: 576px) {
    /* Dog Profile Hero - Extra Small Screens */
    .dog-hero-card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .dog-hero-content {
        padding: 12px;
    }
    
    .dog-hero-avatar {
        width: 56px;
        height: 56px;
    }
    
    .dog-hero-chip {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .dog-hero-stat {
        padding: 8px 10px;
    }
    
    .dog-hero-stat .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .dog-hero-stat .stat-label {
        font-size: 0.75rem;
    }
    
    .dog-hero-stat .stat-value {
        font-size: 0.95rem;
    }
    
    /* Card Images - Extra Small Screens */
    .card-img-top {
        height: 100px;
        object-fit: cover;
    }
    
    .dog-card-image {
        height: 100px;
        object-fit: cover;
    }
    
    .dog-image {
        height: 100px;
        object-fit: cover;
    }
    
    /* Reduce heading sizes on very small screens */
    .dog-hero-content h1 {
        font-size: 1.25rem;
    }
    
    /* Tighter button groups */
    .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Utilities */
.text-muted-small {
    font-size: 0.875rem;
    color: #6c757d;
}

.cursor-pointer {
    cursor: pointer;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* File Upload Preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border-radius: 4px;
}

/* Status Indicators */
.status-pending {
    color: var(--warning-color);
}

.status-active {
    color: var(--success-color);
}

.status-rejected {
    color: var(--danger-color);
}

.status-suspended {
    color: var(--secondary-color);
}

/* Modern Buttons with Purple Theme */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.btn-outline-primary {
    border-color: #7c3aed;
    color: #7c3aed;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    background: linear-gradient(135deg, #0ea572 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
}

/* Modern Form Inputs */
.form-control, .form-select {
    border: 2px solid rgba(124, 58, 237, 0.1);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus, .form-select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    background: white;
}

.form-label {
    font-weight: 600;
    color: #5b21b6;
    margin-bottom: 0.5rem;
}

/* Modern Alerts */
.alert {
    border: none;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #5b21b6;
    border-left: 4px solid #7c3aed;
}

/* Modern Badges */
.badge {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
    border-radius: 8px;
    font-weight: 500;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
}

/* Modern Tables */
.table {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 2px solid rgba(124, 58, 237, 0.15);
    color: #5b21b6;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

/* Modern Pagination */
.pagination {
    margin-top: 20px;
}

.page-item .page-link {
    border: none;
    border-radius: 8px;
    margin: 0 2px;
    color: #7c3aed;
    transition: all 0.2s ease;
}

.page-item .page-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #5b21b6;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* Modern List Group */
.list-group-item {
    border: none;
    border-radius: 10px !important;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background: rgba(124, 58, 237, 0.08);
    transform: translateX(5px);
}

/* Page Headers */
h1, h2, h3 {
    color: #5b21b6;
    font-weight: 700;
}

.lead {
    color: #6b7280;
}

/* Container with Glass Effect */
.container.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
}

/* Admin Dashboard Cards */
.admin-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.admin-stat-card h5 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.admin-stat-card .display-4 {
    font-weight: 700;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(124, 58, 237, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

footer a:hover {
    color: white;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    color-scheme: dark;
    --body-bg: linear-gradient(135deg, #0f172a 0%, #111827 50%, #0b1120 100%);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(148, 163, 184, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.5);
    --bs-body-color: #e2e8f0;
    --bs-body-bg: #0f172a;
}

[data-theme="dark"] body {
    background: var(--body-bg);
    color: var(--bs-body-color);
}

[data-theme="dark"] .card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.4);
}

[data-theme="dark"] .card-header {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .card-footer {
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .navbar .dropdown-menu {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

[data-theme="dark"] .navbar .dropdown-item {
    color: #e2e8f0;
}

[data-theme="dark"] .navbar .dropdown-item:hover {
    background: rgba(124, 58, 237, 0.4);
    color: #ffffff;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-check-input {
    background-color: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}

[data-theme="dark"] .form-control::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .table {
    color: #e2e8f0;
}

[data-theme="dark"] .modal-content {
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

/* Dogs Page - Mobile & Responsive Enhancements */

/* Toolbar - Responsive Button Group */
.dogs-toolbar {
    gap: 1rem;
}

.dogs-action-group {
    gap: 0.5rem;
}

.dogs-action-group .btn {
    white-space: nowrap;
}

/* Filter Tabs - Prevent Overflow */
.dogs-filter-tabs {
    -webkit-overflow-scrolling: touch;
}

.dogs-filter-tabs .nav-link {
    white-space: nowrap;
}

/* Mobile Card Layout */
.dogs-mobile-card {
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.95);
}

.dogs-mobile-card:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.dogs-mobile-image {
    width: 80px;
    height: 80px;
}

.dogs-mobile-image img,
.dogs-mobile-image div {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dogs-mobile-meta h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5b21b6;
}

.dogs-mobile-meta .small {
    line-height: 1.6;
}

.dogs-list-actions .btn {
    padding: 0.375rem 0.75rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .dogs-toolbar.d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dogs-toolbar h1 {
        font-size: 1.5rem;
    }
    
    .dogs-action-group {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dogs-mobile-image {
        width: 60px;
        height: 60px;
    }
    
    .dogs-mobile-meta h5 {
        font-size: 1rem;
    }
    
    .dogs-filter-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .dogs-list-actions .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .dogs-toolbar h1 {
        font-size: 1.25rem;
    }
    
    .dogs-action-group .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .dogs-mobile-image {
        width: 50px;
        height: 50px;
    }
    
    .dogs-mobile-meta h5 {
        font-size: 0.95rem;
    }
    
    .dogs-mobile-meta .small {
        font-size: 0.8rem;
    }
    
    .dogs-filter-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Dogs Page - Hybrid Table & Clickable Rows */
.dogs-table-wrapper {
    overflow-x: auto;
}

.dogs-hybrid-table {
    border-collapse: separate;
    border-spacing: 0 6px;
    min-width: 600px;
}

.dogs-hybrid-table thead tr th {
    border: none;
    background: transparent;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    padding-bottom: 0.25rem;
}

.dogs-table-row {
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

.dogs-table-row td {
    background: #fff;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    vertical-align: middle;
    padding: 0.6rem 0.75rem;
}

.dogs-table-row td:first-child {
    border-left: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 10px 0 0 10px;
}

.dogs-table-row td:last-child {
    border-right: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 0 10px 10px 0;
}

.dogs-table-row:hover td {
    background: rgba(124, 58, 237, 0.04);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dogs-table-row:focus td {
    outline: 2px solid rgba(124, 58, 237, 0.5);
    outline-offset: -2px;
}

/* Delete button: hidden by default, visible on row hover */
.dogs-delete-btn {
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.dogs-table-row:hover .dogs-delete-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile: always show delete button */
@media (max-width: 767.98px) {
    .dogs-delete-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Dog name styles in list views */
.dogs-mobile-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #5b21b6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dogs-table-name {
    font-size: 1rem;
    color: #3b0764;
}

/* Mobile card clickable */
.dogs-mobile-card[data-href] {
    cursor: pointer;
}

.dogs-mobile-card:focus {
    outline: 2px solid rgba(124, 58, 237, 0.5);
    outline-offset: 2px;
}

/* Extern badge with dashed border style */
.dogs-badge-extern {
    background: transparent !important;
    border: 1.5px dashed #6c757d;
    color: #6c757d !important;
    font-weight: 500;
}

/* Desktop actions column */
.dogs-table-actions {
    white-space: nowrap;
}


#pwaInstallContainer {
    z-index: 1080;
}

#pwaInstallToast {
    max-width: 420px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.pwa-install-toast .pwa-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pwa-install-toast #pwaInstallBtn {
    transition: all 0.3s ease;
}

.pwa-install-toast #pwaInstallBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
    #pwaInstallToast {
        width: calc(100vw - 2rem);
    }
}

/* ========================================
   Modern Facility Profile View Styles
   ======================================== */

/* Facility Hero Section - Modern Design */
.facility-hero-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.facility-hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.facility-hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: blur(8px);
    transform: scale(1.1);
}

.facility-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
}

.facility-hero-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem;
    color: white;
}

.facility-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.95;
    margin-bottom: 0.75rem;
}

.facility-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.7s ease-out;
}

.facility-hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.facility-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.facility-hero-btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.facility-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Statistics Cards - Modern Design */
.facility-stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.facility-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-icon-dogs {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.stat-icon-litters {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.stat-icon-views {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar Contact Card */
.facility-sidebar-card {
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.12);
    transition: all 0.3s ease;
    animation: fadeInRight 0.6s ease-out;
}

.facility-sidebar-card:hover {
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.18);
    transform: translateY(-3px);
}

.facility-sidebar-card .card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    padding: 1rem 1.25rem;
}

.facility-contact-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: rgba(124, 58, 237, 0.05);
}

.contact-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #6366f1;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    word-break: break-word;
}

.contact-value a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Social Links */
.social-links-section {
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbd 100%);
    color: white;
}

.social-link-facebook:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
    color: white;
}

.social-link-instagram {
    background: linear-gradient(135deg, #e1306c 0%, #fd1d1d 50%, #f77737 100%);
    color: white;
}

.social-link-instagram:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
    color: white;
}

/* Modern Tabs */
.facility-tabs {
    border-bottom: 2px solid rgba(124, 58, 237, 0.1);
    margin-bottom: 1.5rem;
}

.facility-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.facility-tabs .nav-link i {
    font-size: 1.1rem;
}

.facility-tabs .nav-link:hover {
    color: #6366f1;
    background: rgba(124, 58, 237, 0.05);
}

.facility-tabs .nav-link.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: transparent;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Content Cards */
.facility-content-card {
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.facility-content-card:hover {
    box-shadow: 0 10px 35px rgba(124, 58, 237, 0.15);
}

.facility-content-card .card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    padding: 1.25rem 1.5rem;
}

.facility-description {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

/* Info Boxes */
.info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.info-box:hover {
    background: rgba(124, 58, 237, 0.08);
    transform: translateX(3px);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

/* Dog Cards - Modern Grid */
.dog-card {
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.18);
    border-color: rgba(124, 58, 237, 0.3);
}

.dog-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.dog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dog-card:hover .dog-card-image img {
    transform: scale(1.05);
}

.dog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #d1d5db;
}

.dog-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

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

.dog-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.dog-card-breed,
.dog-card-gender {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dog-card-breed i,
.dog-card-gender i {
    color: #6366f1;
}

/* Litters List */
.litters-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.litter-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(124, 58, 237, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.litter-item:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateX(5px);
}

.litter-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.litter-content {
    flex: 1;
    min-width: 0;
}

.litter-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.litter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.litter-status,
.litter-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.litter-status i,
.litter-date i {
    color: #6366f1;
}

.litter-action {
    flex-shrink: 0;
}

/* Empty State */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #9ca3af;
}

.empty-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive - Mobile Optimizations */
@media (max-width: 992px) {
    .facility-hero-title {
        font-size: 1.75rem;
    }
    
    .facility-hero-subtitle {
        font-size: 1rem;
    }
    
    .facility-hero-content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .facility-stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .facility-hero-title {
        font-size: 1.5rem;
    }
    
    .facility-hero-badges {
        gap: 0.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .facility-hero-content-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .facility-stat-card {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .facility-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .dog-card-image {
        height: 160px;
    }
    
    .litter-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    
    .litter-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .facility-hero-title {
        font-size: 1.25rem;
    }
    
    .facility-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .facility-hero-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .facility-stat-card {
        padding: 1rem;
    }
    
    .facility-tabs .nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .facility-tabs .nav-link span {
        display: none;
    }
    
    .facility-tabs .nav-link i {
        margin-right: 0;
        font-size: 1.25rem;
    }
    
    .tab-badge {
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
        padding: 0 0.35rem;
    }
    
    .dog-card-image {
        height: 140px;
    }
    
    .litter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .litter-action {
        width: 100%;
    }
    
    .litter-action .btn {
        width: 100%;
    }
}

/* ===== Dog Profile – New UX Enhancements ===== */

/* Dog name in hero: bolder, clear hierarchy */
.dog-hero-content h1 {
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Secondary detail row below chips */
.dog-hero-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 6px;
    font-size: 0.78rem;
    color: rgba(248,250,252,0.7);
}

.dog-hero-details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* KPI stat badge (green/yellow/red) */
.stat-badge {
    font-size: 0.65rem;
    vertical-align: middle;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
}

/* Steckbrief quick-info card in overview tab */
.dog-steckbrief {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.dog-steckbrief-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dog-steckbrief-label {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.dog-steckbrief-value {
    font-size: 0.92rem;
    color: #0f172a;
    font-weight: 500;
}

/* Mobile sticky action bar */
.dog-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .dog-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        padding: 10px 16px;
        gap: 8px;
        box-shadow: 0 -4px 16px rgba(15,23,42,0.1);
    }

    .dog-sticky-bar .btn {
        flex: 1;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    /* Add bottom padding to main content so sticky bar doesn't overlap */
    .container.mt-4 {
        padding-bottom: 72px;
    }
}

/* Content card: solid background, no glass blur */
.dog-profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}

/* Tab smooth transitions */
.tab-pane {
    animation: tabFadeIn 0.22s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════
   Dog Gender Theme – Soft Lilac Glass
   Hero card: .dog--male / .dog--female on the page container.
   Dog cards: data-gender="male|female" on .dog-card / .dog-gender-card.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design tokens ─── */
:root {
    --slg-text:           #2d1a5a;
    --slg-text-muted:     rgba(80, 50, 130, 0.7);
    --slg-base-bg:        rgba(255, 255, 255, 0.6);
    --slg-base-border:    rgba(180, 140, 255, 0.3);
    --slg-base-shadow:    0 4px 20px rgba(160, 100, 220, 0.12);

    --slg-male-tint:      rgba(219, 234, 254, 0.65);
    --slg-male-border:    rgba(59, 130, 246, 0.55);
    --slg-male-shadow:    0 6px 24px rgba(59, 130, 246, 0.2);
    --slg-male-glow:      0 0 0 3px rgba(59, 130, 246, 0.1);
    --slg-male-accent:    #1d4ed8;

    --slg-female-tint:    rgba(252, 231, 243, 0.65);
    --slg-female-border:  rgba(236, 72, 153, 0.55);
    --slg-female-shadow:  0 6px 24px rgba(236, 72, 153, 0.2);
    --slg-female-glow:    0 0 0 3px rgba(236, 72, 153, 0.1);
    --slg-female-accent:  #be185d;
}

/* ─── Hero Card: Soft Lilac Glass base ─── */
.dog--male   .dog-hero-card,
.dog--female .dog-hero-card {
    background:
        radial-gradient(ellipse at 20% 15%, rgba(220, 180, 255, 0.4)  0%, transparent 55%),
        radial-gradient(ellipse at 80% 85%, rgba(190, 220, 255, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 60% 5%,  rgba(255, 200, 240, 0.3)  0%, transparent 45%),
        linear-gradient(135deg, #f0e8ff 0%, #e6f0ff 50%, #fce9f5 100%);
    color: var(--slg-text);
}

/* Dim the blurred background photo for light theme legibility */
.dog--male   .dog-hero-card::before,
.dog--female .dog-hero-card::before { opacity: 0.08; }

/* Light overlay instead of dark */
.dog--male   .dog-hero-card .dog-hero-overlay,
.dog--female .dog-hero-card .dog-hero-overlay {
    background: linear-gradient(
        120deg,
        rgba(240, 232, 255, 0.82) 0%,
        rgba(230, 240, 255, 0.72) 50%,
        rgba(252, 233, 245, 0.78) 100%
    );
}

/* Gender-specific border + glow on hero card */
.dog--male .dog-hero-card {
    border: 2px solid var(--slg-male-border) !important;
    box-shadow: var(--slg-male-shadow), var(--slg-male-glow) !important;
}
.dog--female .dog-hero-card {
    border: 2px solid var(--slg-female-border) !important;
    box-shadow: var(--slg-female-shadow), var(--slg-female-glow) !important;
}

/* Heading: override Bootstrap text-white */
.dog--male   .dog-hero-card h1,
.dog--female .dog-hero-card h1 { color: var(--slg-text) !important; }

/* Chips */
.dog--male   .dog-hero-chip,
.dog--female .dog-hero-chip {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--slg-base-border);
    color: var(--slg-text);
}
.dog--male   .dog-hero-chip {
    background: rgba(219, 234, 254, 0.8);
    border-color: var(--slg-male-border);
    color: var(--slg-male-accent);
}
.dog--female .dog-hero-chip {
    background: rgba(252, 231, 243, 0.8);
    border-color: var(--slg-female-border);
    color: var(--slg-female-accent);
}

/* Secondary detail row */
.dog--male   .dog-hero-details,
.dog--female .dog-hero-details { color: var(--slg-text-muted); }

/* Stat tiles */
.dog--male   .dog-hero-stat,
.dog--female .dog-hero-stat {
    background: rgba(255, 255, 255, 0.65);
    border-color: var(--slg-base-border);
    color: var(--slg-text);
}
.dog--male   .dog-hero-stat { background: rgba(219, 234, 254, 0.65); border-color: rgba(59, 130, 246, 0.28); }
.dog--female .dog-hero-stat { background: rgba(252, 231, 243, 0.65); border-color: rgba(236, 72, 153, 0.28); }

.dog--male   .dog-hero-stat .stat-icon,
.dog--female .dog-hero-stat .stat-icon { background: rgba(255, 255, 255, 0.6); }
.dog--male   .dog-hero-stat .stat-icon { color: var(--slg-male-accent); }
.dog--female .dog-hero-stat .stat-icon { color: var(--slg-female-accent); }

.dog--male   .stat-label,
.dog--female .stat-label { color: var(--slg-text-muted); opacity: 1; }
.dog--male   .stat-value,
.dog--female .stat-value { color: var(--slg-text); }

/* Avatar */
.dog--male   .dog-hero-avatar { border-color: var(--slg-male-border);   background: rgba(219, 234, 254, 0.6); }
.dog--female .dog-hero-avatar { border-color: var(--slg-female-border);  background: rgba(252, 231, 243, 0.6); }
.dog--male   .dog-hero-placeholder,
.dog--female .dog-hero-placeholder { color: var(--slg-text-muted); }

/* Hero action buttons: fix contrast on light background */
.dog--male   .btn-outline-light,
.dog--female .btn-outline-light {
    border-color: var(--slg-base-border);
    color: var(--slg-text);
    background: rgba(255, 255, 255, 0.5);
}
.dog--male   .btn-outline-light:hover,
.dog--female .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(180, 140, 255, 0.55);
    color: var(--slg-text);
}
.dog--male   .btn-light,
.dog--female .btn-light {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--slg-base-border);
    color: var(--slg-text);
}
.dog--male   .btn-light:hover,
.dog--female .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--slg-male-accent);
}
.dog--female .btn-light:hover { color: var(--slg-female-accent); }

/* ─── Secondary panels (dog-profile-card, steckbrief) ─── */
.dog--male   .dog-profile-card,
.dog--female .dog-profile-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(180, 140, 255, 0.25);
    box-shadow: 0 2px 14px rgba(160, 100, 220, 0.08);
}
.dog--male   .dog-steckbrief-item,
.dog--female .dog-steckbrief-item {
    background: rgba(243, 238, 255, 0.6);
    border-color: rgba(180, 140, 255, 0.22);
}
.dog--male   .dog-steckbrief-label,
.dog--female .dog-steckbrief-label { color: var(--slg-text-muted); }
.dog--male   .dog-steckbrief-value,
.dog--female .dog-steckbrief-value { color: var(--slg-text); }

/* ─── Dog Cards with data-gender (facility-view, profile, browse-dogs) ─── */
.dog-card[data-gender],
.dog-gender-card[data-gender] {
    background: var(--slg-base-bg);
    border-color: var(--slg-base-border);
    box-shadow: var(--slg-base-shadow);
}

/* Male */
.dog-card[data-gender="male"],
.dog-gender-card[data-gender="male"] {
    background: var(--slg-male-tint);
    border: 1.5px solid var(--slg-male-border);
    box-shadow: var(--slg-male-shadow);
}
.dog-card[data-gender="male"]:hover,
.dog-gender-card[data-gender="male"]:hover {
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow: 0 10px 32px rgba(59, 130, 246, 0.28), var(--slg-male-glow);
    transform: translateY(-4px);
}

/* Female */
.dog-card[data-gender="female"],
.dog-gender-card[data-gender="female"] {
    background: var(--slg-female-tint);
    border: 1.5px solid var(--slg-female-border);
    box-shadow: var(--slg-female-shadow);
}
.dog-card[data-gender="female"]:hover,
.dog-gender-card[data-gender="female"]:hover {
    border-color: rgba(236, 72, 153, 0.75);
    box-shadow: 0 10px 32px rgba(236, 72, 153, 0.28), var(--slg-female-glow);
    transform: translateY(-4px);
}

/* Text inside gender dog-cards */
.dog-card[data-gender] .dog-card-title,
.dog-gender-card[data-gender] h6 { color: var(--slg-text); }

.dog-card[data-gender] .dog-card-breed,
.dog-card[data-gender] .dog-card-gender { color: var(--slg-text-muted); }

.dog-card[data-gender="male"] .dog-card-breed i,
.dog-card[data-gender="male"] .dog-card-gender,
.dog-card[data-gender="male"] .dog-card-gender i { color: var(--slg-male-accent); }

.dog-card[data-gender="female"] .dog-card-breed i,
.dog-card[data-gender="female"] .dog-card-gender,
.dog-card[data-gender="female"] .dog-card-gender i { color: var(--slg-female-accent); }

/* dog-gender-card: muted text overrides */
.dog-gender-card[data-gender] .text-muted,
.dog-gender-card[data-gender] small { color: var(--slg-text-muted) !important; }
