/* =============================================
   PetBasket - Admin Panel Styles
   ============================================= */

:root {
    --sidebar-width: 280px;
    --topbar-height: 78px;
    --primary: #7AC943;
    --primary-deep: #4f8d25;
    --secondary: #3f7d31;
    --secondary-deep: #2d5d24;
    --tertiary: #4fbf72;
    --accent: #F4B400;
    --accent-deep: #a87900;
    --ink: #1f3520;
    --ink-soft: #5f7160;
    --line: #dbe8d6;
    --surface: #ffffff;
    --surface-muted: #f6fbf3;
    --card: #f7fbf3;
    --page: #f3f8ef;
    --danger: #d9534f;
    --shadow-sm: 0 10px 24px rgba(63, 125, 49, 0.08);
    --shadow-md: 0 18px 40px rgba(63, 125, 49, 0.12);
    --shadow-lg: 0 30px 60px rgba(63, 125, 49, 0.18);

    --bs-primary: #7AC943;
    --bs-primary-rgb: 122, 201, 67;
    --bs-secondary: #3f7d31;
    --bs-secondary-rgb: 63, 125, 49;
    --bs-success: #7AC943;
    --bs-success-rgb: 122, 201, 67;
    --bs-info: #4fbf72;
    --bs-info-rgb: 79, 191, 114;
    --bs-warning: #F4B400;
    --bs-warning-rgb: 244, 180, 0;
    --bs-danger: #d9534f;
    --bs-danger-rgb: 217, 83, 79;
    --bs-light: #f5f7fb;
    --bs-light-rgb: 245, 247, 251;
    --bs-dark: #1f3520;
    --bs-dark-rgb: 31, 53, 32;
    --bs-body-bg: #f3f8ef;
    --bs-body-color: #1f3520;
    --bs-border-color: #dbe8d6;
    --bs-primary-bg-subtle: #edf8e3;
    --bs-primary-border-subtle: #d0ecbb;
    --bs-primary-text-emphasis: #4a7f25;
    --bs-secondary-bg-subtle: #e8f4e4;
    --bs-secondary-border-subtle: #cbe4c4;
    --bs-secondary-text-emphasis: #366b2b;
    --bs-success-bg-subtle: #edf8e3;
    --bs-success-border-subtle: #d0ecbb;
    --bs-success-text-emphasis: #4a7f25;
    --bs-info-bg-subtle: #e8f8ec;
    --bs-info-border-subtle: #c7ead0;
    --bs-info-text-emphasis: #2f8d4a;
    --bs-warning-bg-subtle: #fff4cc;
    --bs-warning-border-subtle: #f9dfa2;
    --bs-warning-text-emphasis: #8b6600;
    --bs-danger-bg-subtle: #fde8e7;
    --bs-danger-border-subtle: #f6c3c1;
    --bs-danger-text-emphasis: #a63c39;
    scrollbar-color: #8ac45b #e8f3df;
    scrollbar-width: thin;
}

* {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    overflow-x: hidden;
}

html,
body,
.admin-sidebar,
.multi-select-options {
    scrollbar-width: thin;
    scrollbar-color: #8ac45b #e8f3df;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar,
.multi-select-options::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.admin-sidebar::-webkit-scrollbar-track,
.multi-select-options::-webkit-scrollbar-track {
    background: #e8f3df;
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb,
.multi-select-options::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9bd169, #6dae3d);
    border-radius: 999px;
    border: 2px solid #e8f3df;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.admin-sidebar::-webkit-scrollbar-thumb:hover,
.multi-select-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7fc84a, #5f9b34);
}

body {
    background:
        radial-gradient(circle at top left, rgba(122, 201, 67, 0.22), transparent 32%),
        radial-gradient(circle at top right, rgba(79, 191, 114, 0.14), transparent 28%),
        linear-gradient(180deg, #fbfef8 0%, #f6fbf2 45%, #f3f8ef 100%);
    color: var(--ink);
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(12px);
}

body::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -100px;
    background: rgba(122, 201, 67, 0.18);
}

body::after {
    width: 280px;
    height: 280px;
    bottom: -120px;
    left: -80px;
    background: rgba(79, 191, 114, 0.12);
}

a {
    color: var(--secondary);
}

a:hover {
    color: var(--secondary-deep);
}

.admin-wrapper,
.login-shell {
    position: relative;
    z-index: 1;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background:
        radial-gradient(circle at top right, rgba(122, 201, 67, 0.22), transparent 26%),
        linear-gradient(180deg, #f7fcf2 0%, #eef8e7 54%, #e7f3df 100%);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 20px 0 45px rgba(63, 125, 49, 0.12);
    border-right: 1px solid rgba(63, 125, 49, 0.12);
}

.admin-sidebar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 180px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 48%),
        radial-gradient(circle at top right, rgba(79, 191, 114, 0.18), transparent 38%);
    pointer-events: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1rem;
    margin: 1rem 1rem 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(63, 125, 49, 0.14);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(63, 125, 49, 0.08);
    position: relative;
    z-index: 1;
}

.sidebar-brand:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 28px rgba(63, 125, 49, 0.1);
}

.brand-mark,
.topbar-brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(122, 201, 67, 0.2));
    border: 1px solid rgba(63, 125, 49, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 12px 24px rgba(31, 53, 32, 0.18);
}

.brand-mark img,
.topbar-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-brand-copy,
.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-brand-copy strong,
.brand-copy strong {
    color: var(--secondary-deep);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.sidebar-brand-copy small,
.brand-copy small {
    color: var(--ink-soft);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 0.4rem;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0 1.2rem;
    position: relative;
    z-index: 1;
}

.sidebar-section {
    padding: 1.15rem 1.4rem 0.45rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(45, 93, 36, 0.6);
    font-weight: 700;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.18rem 0.85rem;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    color: rgba(45, 93, 36, 0.8);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-link:hover {
    color: var(--secondary-deep);
    background: rgba(122, 201, 67, 0.12);
    transform: translateX(2px);
}

.sidebar-link.active {
    color: var(--secondary-deep);
    background: linear-gradient(135deg, rgba(122, 201, 67, 0.24), rgba(79, 191, 114, 0.14));
    border: 1px solid rgba(122, 201, 67, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 22px rgba(63, 125, 49, 0.08);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--secondary);
}

.sidebar-toggle {
    width: calc(100% - 1.7rem);
    margin: 0.5rem 0.85rem 0.2rem;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    color: rgba(45, 93, 36, 0.86);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.sidebar-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.sidebar-toggle:hover,
.sidebar-toggle.active {
    color: var(--secondary-deep);
    background: linear-gradient(135deg, rgba(122, 201, 67, 0.2), rgba(79, 191, 114, 0.12));
    border-color: rgba(122, 201, 67, 0.24);
}

.sidebar-toggle .bi-chevron-down {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.sidebar-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar-submenu {
    padding: 0.15rem 0 0.5rem;
}

.sidebar-submenu .sidebar-link {
    margin-left: 1.4rem;
    font-size: 0.88rem;
}

.sidebar-link .badge,
.sidebar-toggle .badge {
    background: rgba(63, 125, 49, 0.12) !important;
    color: var(--secondary-deep) !important;
    border: 1px solid rgba(63, 125, 49, 0.12);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.32rem 0.58rem;
}

.sidebar-footer {
    padding: 1rem 1.15rem 1.2rem;
    background: linear-gradient(180deg, transparent, rgba(122, 201, 67, 0.08));
    border-top: 1px solid rgba(63, 125, 49, 0.1);
    position: relative;
    z-index: 1;
}

.sidebar-user-name {
    color: var(--secondary-deep);
    font-size: 0.84rem;
    font-weight: 700;
}

.sidebar-user-role {
    color: var(--ink-soft);
    font-size: 0.72rem;
    text-transform: capitalize;
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(79, 191, 114, 0.22);
}

.avatar-circle-sm {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(122, 201, 67, 0.22), rgba(79, 191, 114, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-weight: 800;
}

.admin-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: var(--topbar-height);
    background: linear-gradient(180deg, rgba(250, 255, 247, 0.96), rgba(244, 250, 239, 0.92));
    border-bottom: 1px solid rgba(63, 125, 49, 0.12);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.6rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title-group,
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.topbar-title-group {
    min-width: 0;
    flex: 1;
}

.topbar-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
}

.topbar-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar-brand {
    min-width: 0;
}

.topbar-menu-toggle,
.topbar-profile-trigger {
    color: var(--secondary) !important;
    border-radius: 16px;
    padding: 0.45rem 0.7rem;
    background: rgba(122, 201, 67, 0.12);
}

.topbar-menu-toggle:hover,
.topbar-profile-trigger:hover {
    background: rgba(122, 201, 67, 0.18);
    color: var(--secondary-deep) !important;
}

.topbar-eyebrow {
    color: var(--ink-soft);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.2rem;
}

.topbar-heading {
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.topbar-actions {
    flex-shrink: 0;
}

.topbar-page-context {
    padding: 0.58rem 0.85rem;
    border-radius: 999px;
    background: rgba(122, 201, 67, 0.12);
    border: 1px solid rgba(122, 201, 67, 0.2);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.topbar-profile-trigger::after {
    margin-left: 0.45rem;
}

.admin-content {
    padding: 2rem;
    flex: 1;
}

.role-chip {
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(122, 201, 67, 0.22), rgba(79, 191, 114, 0.14));
    color: var(--primary-deep) !important;
    border: 1px solid rgba(122, 201, 67, 0.22);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover {
    background: rgba(122, 201, 67, 0.12);
    color: var(--secondary-deep);
}

.stat-card,
.vertical-card,
.guidance-panel,
.filter-card,
.form-panel,
.master-card,
.card,
.modal-content,
.dropdown-menu {
    border-radius: 24px;
    border: 1px solid rgba(63, 125, 49, 0.1);
    box-shadow: var(--shadow-sm);
}

.stat-card,
.vertical-card,
.guidance-panel,
.filter-card,
.form-panel,
.master-card,
.card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.stat-card {
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover,
.vertical-card:hover,
.image-card:hover,
.priced-breed-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon,
.vertical-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon {
    background: color-mix(in srgb, var(--accent, var(--primary)) 18%, white);
    color: var(--accent, var(--primary));
    font-size: 1.35rem;
}

.stat-value,
.vertical-info h5 {
    color: var(--ink);
    font-weight: 800;
}

.stat-value {
    font-size: 1.7rem;
    line-height: 1;
}

.stat-label,
.vertical-info p,
.text-muted,
.pagination-summary,
.form-panel-header p,
.master-hero p,
.empty-state,
.priced-breed-description,
.priced-breed-total span {
    color: var(--ink-soft) !important;
}

.stat-label {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.vertical-card {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vertical-icon {
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 10px 22px rgba(63, 125, 49, 0.16);
}

.vertical-info {
    flex: 1;
}

.vertical-info h5 {
    margin: 0;
    font-size: 1.28rem;
}

.vertical-info p {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
}

.master-hero {
    background:
        radial-gradient(circle at top right, rgba(244, 180, 0, 0.18), transparent 22%),
        linear-gradient(135deg, #4f8d25 0%, #7AC943 48%, #4fbf72 100%);
    color: #fff;
    border-radius: 28px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
    animation: adminFadeUp 0.24s ease-out;
}

.master-hero h3,
.master-hero h1,
.master-hero h2 {
    margin: 0.15rem 0;
    font-weight: 800;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
}

.master-action {
    color: var(--secondary);
    font-weight: 800;
}

.workflow-strip {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(63, 125, 49, 0.1);
    border-radius: 24px;
    padding: 0.6rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.workflow-step {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.18s ease;
}

.workflow-step span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(122, 201, 67, 0.12);
    color: var(--secondary);
    font-size: 0.75rem;
}

.workflow-step:hover,
.workflow-step.active {
    background: linear-gradient(135deg, rgba(122, 201, 67, 0.18), rgba(79, 191, 114, 0.12));
    color: var(--primary-deep);
}

.workflow-step.active span {
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    color: #fff;
}

.guidance-panel,
.filter-card,
.form-panel {
    padding: 1.1rem 1.2rem;
    animation: adminFadeUp 0.3s ease-out;
}

.guidance-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guidance-panel i {
    color: var(--accent);
    font-size: 1.35rem;
}

.master-card {
    overflow: hidden;
}

.form-shell {
    max-width: 1120px;
}

.form-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-panel-header h5 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.soft-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.78rem 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

.soft-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.multi-select {
    position: relative;
}

.multi-select-button {
    min-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 2rem;
}

.multi-select-menu {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.65rem;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.multi-select-options {
    max-height: 220px;
    overflow-y: auto;
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.45rem;
    border-radius: 14px;
    cursor: pointer;
    color: var(--ink);
}

.multi-select-option:hover {
    background: rgba(122, 201, 67, 0.12);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    --bs-table-hover-bg: rgba(122, 201, 67, 0.07);
    --bs-table-striped-bg: rgba(79, 191, 114, 0.04);
    margin-bottom: 0;
}

.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    font-weight: 800;
    border-bottom-width: 1px;
}

.table td {
    font-size: 0.89rem;
    vertical-align: middle;
    color: var(--ink);
}

.table-light,
.table-light > th,
.table-light > td,
thead.table-light th {
    background: linear-gradient(180deg, #fbfef9, #f1f8ee) !important;
    color: var(--ink-soft) !important;
    border-color: rgba(106, 63, 160, 0.08) !important;
}

.table-responsive {
    border-radius: 20px;
}

.master-card .table tbody tr,
.table tbody tr {
    transition: background 0.18s ease, transform 0.18s ease;
}

.master-card .table tbody tr:hover,
.table tbody tr:hover {
    background: rgba(122, 201, 67, 0.06);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.status-pill span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-pill.active {
    color: var(--primary-deep);
    background: rgba(122, 201, 67, 0.14);
}

.status-pill.active span {
    background: var(--primary);
}

.status-pill.inactive {
    color: #a63c39;
    background: rgba(217, 83, 79, 0.14);
}

.status-pill.inactive span {
    background: var(--danger);
}

.image-thumb,
.priced-breed-media,
.image-preview {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #f8faf8, #f0f4f8);
    overflow: hidden;
}

.image-thumb {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93a1a7;
    flex-shrink: 0;
}

.image-thumb img,
.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}

.image-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(106, 63, 160, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.image-preview {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93a1a7;
    font-size: 2rem;
}

.priced-breed-list {
    display: grid;
    gap: 1rem;
}

.priced-breed-card {
    border: 1px solid rgba(106, 63, 160, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.priced-breed-profile {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) minmax(180px, 240px);
    gap: 1rem;
    padding: 1rem;
    align-items: start;
}

.priced-breed-media {
    width: 112px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93a1a7;
}

.priced-breed-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.priced-breed-summary h5,
.empty-state h5 {
    color: var(--ink);
    font-weight: 800;
}

.priced-breed-range {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    background: rgba(43, 179, 177, 0.1);
    border: 1px solid rgba(43, 179, 177, 0.18);
    border-radius: 999px;
    color: #178988;
    padding: 0.48rem 0.72rem;
    margin-bottom: 0.65rem;
}

.priced-breed-range span {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.priced-breed-tags,
.priced-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.priced-breed-tags span,
.priced-flags em {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(106, 63, 160, 0.1);
    color: var(--secondary);
    padding: 0.28rem 0.58rem;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 700;
}

.priced-breed-total {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 0.9rem;
    background: linear-gradient(180deg, #fbfcfb, #f4f7fb);
}

.priced-breed-total strong {
    color: var(--ink);
}

.priced-variant-table {
    border-top: 1px solid rgba(106, 63, 160, 0.08);
}

.priced-variant-head,
.priced-variant-row {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.1fr 1.4fr 0.7fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem 1rem;
}

.priced-variant-head {
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, #faf8ff, #f4f7fb);
}

.priced-variant-row {
    border-top: 1px solid rgba(106, 63, 160, 0.06);
}

.priced-variant-row:hover {
    background: rgba(122, 201, 67, 0.05);
}

.admin-pagination {
    border-top: 1px solid rgba(106, 63, 160, 0.08);
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.92);
}

.admin-pagination .pagination {
    margin: 0;
    gap: 0.3rem;
}

.admin-pagination .page-link {
    border-radius: 14px;
    border: 1px solid var(--line);
    color: var(--secondary);
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.admin-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    border-color: transparent;
    color: #fff;
}

.admin-pagination .page-item.disabled .page-link {
    color: #95a0ac;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    font-size: 2.5rem;
    color: #a6b0bb;
    display: block;
    margin-bottom: 0.75rem;
}

.btn,
.form-control,
.form-select,
.badge,
.dropdown-item,
.modal-content,
.form-check-input {
    border-radius: 18px;
}

.btn {
    font-weight: 700;
    padding: 0.7rem 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, var(--primary), #96d65f) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(122, 201, 67, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 18px 36px rgba(122, 201, 67, 0.3);
}

.btn-outline-primary {
    border-color: rgba(122, 201, 67, 0.35) !important;
    color: var(--primary-deep) !important;
    background: rgba(122, 201, 67, 0.08) !important;
}

.btn-outline-primary:hover {
    background: rgba(122, 201, 67, 0.16) !important;
    border-color: rgba(122, 201, 67, 0.45) !important;
}

.btn-outline-secondary {
    border-color: rgba(63, 125, 49, 0.24) !important;
    color: var(--secondary) !important;
    background: rgba(63, 125, 49, 0.08) !important;
}

.btn-outline-secondary:hover {
    background: rgba(63, 125, 49, 0.14) !important;
}

.btn-outline-warning {
    border-color: rgba(244, 180, 0, 0.3) !important;
    color: var(--accent-deep) !important;
    background: rgba(244, 180, 0, 0.1) !important;
}

.btn-outline-warning:hover {
    background: rgba(244, 180, 0, 0.18) !important;
}

.btn-light {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(63, 125, 49, 0.14) !important;
    color: var(--secondary) !important;
    box-shadow: none;
}

.btn-link {
    color: var(--secondary);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--secondary-deep);
}

.form-control,
.form-select,
.multi-select-button {
    min-height: 50px;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
    padding: 0.78rem 1rem;
    box-shadow: none !important;
}

.form-control::placeholder {
    color: #9aa4af !important;
}

.form-control:focus,
.form-select:focus,
.multi-select-button:focus,
.form-check-input:focus {
    border-color: rgba(122, 201, 67, 0.65) !important;
    box-shadow: 0 0 0 0.24rem rgba(122, 201, 67, 0.18) !important;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.badge {
    padding: 0.56em 0.82em;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-success {
    background-color: var(--primary) !important;
}

.bg-info {
    background-color: var(--tertiary) !important;
}

.bg-warning {
    background-color: var(--accent) !important;
}

.bg-light {
    background-color: var(--surface-muted) !important;
}

.text-primary {
    color: var(--primary-deep) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-success {
    color: var(--primary-deep) !important;
}

.text-info {
    color: #178988 !important;
}

.text-warning {
    color: var(--accent-deep) !important;
}

.text-danger {
    color: #b54542 !important;
}

.alert {
    border: 1px solid transparent;
    border-radius: 22px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: rgba(122, 201, 67, 0.12);
    border-color: rgba(122, 201, 67, 0.22);
    color: #4a7f25;
}

.alert-danger {
    background: rgba(217, 83, 79, 0.1);
    border-color: rgba(217, 83, 79, 0.18);
    color: #a63c39;
}

.alert-warning {
    background: rgba(244, 180, 0, 0.12);
    border-color: rgba(244, 180, 0, 0.22);
    color: #8b6600;
}

.dropdown-menu {
    padding: 0.6rem;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(63, 125, 49, 0.1);
}

.dropdown-item {
    padding: 0.7rem 0.85rem;
    color: var(--ink);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(122, 201, 67, 0.1);
    color: var(--primary-deep);
}

.dropdown-item-text {
    color: var(--ink);
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(63, 125, 49, 0.1);
}

.modal-header.bg-light {
    background: linear-gradient(180deg, #fbfef9, #f1f8ee) !important;
}

.list-group-item {
    border-color: rgba(63, 125, 49, 0.1);
}

.font-monospace {
    color: var(--ink-soft);
}

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-shell {
    width: 100%;
    max-width: 490px;
}

.login-card {
    background:
        radial-gradient(circle at top right, rgba(122, 201, 67, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 243, 0.98));
    border: 1px solid rgba(63, 125, 49, 0.12);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.login-brand {
    text-align: center;
    margin-bottom: 1.8rem;
}

.login-logo-wrap {
    width: 108px;
    height: 108px;
    margin: 0 auto 1rem;
    padding: 0.4rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(122, 201, 67, 0.18), rgba(79, 191, 114, 0.14), rgba(244, 180, 0, 0.1));
    box-shadow: 0 18px 34px rgba(63, 125, 49, 0.14);
}

.login-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
}

.login-eyebrow {
    font-size: 0.72rem;
    color: var(--primary-deep);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.45rem;
}

.login-brand h1 {
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.login-brand p {
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.6;
}

.login-form .form-label,
.login-remember .form-check-label {
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 700;
}

.login-password-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0 !important;
}

.login-password-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-login {
    width: 100%;
    min-height: 56px;
}

.app-entity-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(63, 125, 49, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entity-card-strip {
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--primary), var(--tertiary));
}

.entity-card-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(122, 201, 67, 0.12));
    border: 3px solid #fff;
    color: var(--secondary);
    box-shadow: 0 10px 22px rgba(63, 125, 49, 0.12);
}

.entity-card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(63, 125, 49, 0.1);
}

.app-empty-panel {
    display: inline-block;
    padding: 2.25rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(63, 125, 49, 0.1);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.app-soft-panel {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfef9, #f3f9ef);
    border: 1px solid rgba(63, 125, 49, 0.1);
}

.app-soft-panel h6 {
    color: var(--ink);
}

.app-soft-panel-accent {
    background: linear-gradient(180deg, rgba(244, 180, 0, 0.12), rgba(255, 255, 255, 0.96));
    border-color: rgba(244, 180, 0, 0.22);
}

.app-code-panel {
    max-height: 80px;
    overflow-y: auto;
    font-size: 0.8rem;
    background: var(--surface-muted);
    padding: 0.75rem;
    border-radius: 16px;
    color: var(--ink-soft);
    border: 1px solid rgba(63, 125, 49, 0.1);
}

.app-upload-panel {
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(122, 201, 67, 0.08), rgba(255, 255, 255, 0.98));
    border: 2px dashed rgba(122, 201, 67, 0.24);
}

.app-image-tile {
    position: relative;
    height: 120px;
    background: linear-gradient(180deg, #f8faf8, #f0f4f8);
    border: 1px solid rgba(63, 125, 49, 0.1);
    border-radius: 18px;
    overflow: hidden;
}

.app-delete-badge {
    width: 24px;
    height: 24px;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-color-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(31, 53, 32, 0.18);
    vertical-align: middle;
}

.swatch-btn {
    width: 25px;
    height: 25px;
}

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

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar {
        padding: 0 1rem;
    }

    .admin-content {
        padding: 1.25rem;
    }

    .master-hero,
    .guidance-panel,
    .form-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .workflow-strip,
    .priced-breed-profile,
    .priced-variant-head,
    .priced-variant-row {
        grid-template-columns: 1fr;
    }

    .priced-breed-media {
        width: 100%;
        max-width: 180px;
    }

    .admin-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .topbar-heading {
        font-size: 0.98rem;
    }

    .role-chip {
        display: none;
    }

    .login-card {
        padding: 1.4rem;
        border-radius: 26px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
    }
}
