/* ============================================================
   PET ADOPTION PLATFORM — DESIGN SYSTEM CSS
   Complete warm & organic design system
   ============================================================ */

/* ----------------------------------------------------------
   1. GOOGLE FONTS
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/* ----------------------------------------------------------
   2. CSS CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
    /* Backgrounds */
    --bg-primary: #FBF7F2;
    --bg-secondary: #F3EDE4;
    --bg-accent: #E8DFD3;

    /* Text */
    --text-primary: #2C1810;
    --text-secondary: #6B5744;
    --text-muted: #9C8B7A;

    /* Accent colors */
    --accent-primary: #C4704B;
    --accent-hover: #A85C3A;
    --accent-secondary: #5B7F5E;
    --accent-warm: #D4956A;

    /* Borders & shadows */
    --border: #DDD4C8;
    --shadow: rgba(44, 24, 16, 0.08);
    --shadow-card: 0 1px 2px rgba(44, 24, 16, 0.02), 0 1px 5px rgba(44, 24, 16, 0.03);

    /* Radii */
    --radius-card: 20px;
    --radius-input: 8px;
    --radius-pill: 24px;

    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Doggy animation */
    --fullyRound: 1000px;
}

/* ----------------------------------------------------------
   3. CSS RESET / BASE
   ---------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    font-family: var(--font-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* ----------------------------------------------------------
   4. TYPOGRAPHY
   ---------------------------------------------------------- */
h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-primary);
}

h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text-primary);
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 16px;
}

a {
    color: var(--accent-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

small {
    font-size: 14px;
    color: var(--text-muted);
}

/* ----------------------------------------------------------
   5. APP LAYOUT
   ---------------------------------------------------------- */
.app-layout {
    min-height: 100vh;
}

.main-content {
    margin-left: 260px;
    padding: 48px 56px;
    max-width: 1400px;
}

.page-header {
    margin-bottom: 32px;
}

.section {
    margin-bottom: 40px;
}

/* ----------------------------------------------------------
   6. SIDEBAR
   ---------------------------------------------------------- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
}

.sidebar-logo img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-card);
}

.sidebar-logo span {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    gap: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-left: 3px solid transparent;
    border-radius: 0 var(--radius-input) var(--radius-input) 0;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    background-color: var(--bg-accent);
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-nav a.active {
    border-left-color: var(--accent-primary);
    background-color: rgba(196, 112, 75, 0.08);
    color: var(--accent-primary);
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.db-status {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.status-label {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-section {
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-section a {
    color: var(--accent);
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 200;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    line-height: 1;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.connected {
    background-color: var(--accent-secondary);
}

.status-dot.disconnected {
    background-color: #c0392b;
}

.auth-section {
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 20px;
}

.auth-section a {
    font-size: 13px;
    font-weight: 600;
}

/* ----------------------------------------------------------
   7. CARDS
   ---------------------------------------------------------- */
.card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(44, 24, 16, 0.04), 0 4px 12px rgba(44, 24, 16, 0.06);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.link-card:hover {
    text-decoration: none;
    color: inherit;
}

.link-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.pet-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(44, 24, 16, 0.04), 0 4px 12px rgba(44, 24, 16, 0.06);
}

.pet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.pet-card-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.pet-card-breed {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.pet-card-age {
    font-size: 13px;
    color: var(--text-muted);
}

/* ----------------------------------------------------------
   8. FORMS
   ---------------------------------------------------------- */
.form-card {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--shadow-card);
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.form-row>* {
    flex: 1;
    min-width: 0;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 4px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-secondary);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ----------------------------------------------------------
   9. BUTTONS
   ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-input);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    border: none;
    text-decoration: none;
    line-height: 1;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--accent-secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #4a6b4d;
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--bg-accent);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 18px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ----------------------------------------------------------
   10. TABLES
   ---------------------------------------------------------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.data-table thead th {
    background-color: var(--bg-accent);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
    background-color: var(--bg-accent);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-empty {
    text-align: center;
    padding: 32px 20px !important;
    color: var(--text-muted);
    font-style: italic;
    font-size: 15px;
}

/* ----------------------------------------------------------
   11. TABS
   ---------------------------------------------------------- */
.tabs-container {
    margin-bottom: 24px;
}

.tab-list {
    display: flex;
    border-bottom: 2px solid var(--border);
    gap: 0;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    font-weight: 600;
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ----------------------------------------------------------
   12. FILTER CHIPS
   ---------------------------------------------------------- */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-secondary);
}

.chip.active {
    background-color: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.chip:hover:not(.active) {
    background-color: var(--bg-accent);
}

/* ----------------------------------------------------------
   13. BADGES
   ---------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.badge-species {
    background-color: rgba(212, 149, 106, 0.15);
    color: #A87743;
}

.badge-gender {
    background-color: rgba(91, 127, 94, 0.15);
    color: #3D5E3F;
}

/* ----------------------------------------------------------
   14. EXPANDABLE PANEL
   ---------------------------------------------------------- */
.expandable-panel {
    margin-bottom: 12px;
}

.expandable-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-card);
    cursor: pointer;
    border: none;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.expandable-trigger:hover {
    background-color: var(--bg-accent);
}

.expandable-trigger::after {
    content: "+";
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.expandable-panel.open .expandable-trigger::after {
    content: "\2212";
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-panel.open .expandable-content {
    max-height: 1000px;
    padding-top: 16px;
}

/* ----------------------------------------------------------
   15. MESSAGES
   ---------------------------------------------------------- */
.message {
    padding: 12px 16px;
    border-radius: var(--radius-input);
    margin-top: 12px;
    font-size: 14px;
}

.message-success {
    background-color: rgba(91, 127, 94, 0.1);
    color: #3D5E3F;
    border-left: 3px solid var(--accent-secondary);
}

.message-error {
    background-color: rgba(196, 112, 75, 0.1);
    color: #8B3A1F;
    border-left: 3px solid var(--accent-primary);
}

/* ----------------------------------------------------------
   16. STATS RIBBON
   ---------------------------------------------------------- */
.stats-ribbon {
    display: flex;
    gap: 24px;
    margin: 32px 0;
}

.stat-item {
    flex: 1;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-card);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ----------------------------------------------------------
   17. HERO
   ---------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: 16px;
    padding: 64px 48px;
    margin-bottom: 32px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-blobs {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background-color: var(--accent-primary);
    top: -50px;
    right: -50px;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background-color: var(--accent-secondary);
    bottom: 20px;
    right: 100px;
}

.blob-3 {
    width: 150px;
    height: 150px;
    background-color: var(--accent-warm);
    top: 50%;
    right: 30%;
}

/* ----------------------------------------------------------
   18. SCROLL ROW
   ---------------------------------------------------------- */
.scroll-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 8px 16px;
    margin: -8px -8px 0;
    scroll-snap-type: x mandatory;
}

.scroll-row>* {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 220px;
}

.scroll-row::-webkit-scrollbar {
    height: 6px;
}

.scroll-row::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-row::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: var(--radius-pill);
}

/* ----------------------------------------------------------
   19. ANIMATIONS
   ---------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

.stagger-delay-1 {
    animation-delay: 0.1s;
}

.stagger-delay-2 {
    animation-delay: 0.2s;
}

.stagger-delay-3 {
    animation-delay: 0.3s;
}

.stagger-delay-4 {
    animation-delay: 0.4s;
}

.stagger-delay-5 {
    animation-delay: 0.5s;
}

/* ----------------------------------------------------------
   20. DOGGY BUTTON ANIMATION
   ---------------------------------------------------------- */
.button-container {
    position: relative;
    display: inline-block;
}

.button-container .btn {
    position: relative;
    z-index: 2;
}

.button-container:hover .dog {
    transform: translate(10px, -30px) rotate(15deg);
    transition-delay: 0.6s;
}

.button-container:hover .paw {
    transition-delay: 0.3s;
    right: -3px;
}

.button-container:hover .paw::after {
    transition-delay: 0s;
    left: 0;
}

.button-container:hover .paw.top {
    transition-delay: 0.4s;
    right: 20px;
    top: -4px;
}

.button-container:hover .tail {
    opacity: 1;
    transition-delay: 0.6s;
}

.dog {
    position: absolute;
    width: 35px;
    height: 35px;
    top: -4px;
    right: 1px;
    z-index: 1;
    transform: translate(0, 0) rotate(0);
    transition: 0.3s transform cubic-bezier(0.33, 1, 0.68, 1);
}

.dog div {
    position: absolute;
}

.dog .tail {
    width: 10%;
    height: 35%;
    left: -50%;
    bottom: -34%;
    transform: rotate(-25deg);
    transition: 0.1s opacity;
    transition-delay: 0s;
    opacity: 0;
}

.dog .tail::after {
    content: '';
    position: absolute;
    transform-origin: bottom center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 0 0;
    background-color: #E1A46E;
    animation: infinite alternate tailSkew 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes tailSkew {
    from {
        transform: skewX(15deg);
    }

    to {
        transform: skewX(-15deg);
    }
}

.dog .body {
    width: 70%;
    height: 50%;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #9F6A43;
    border-radius: 50% 50% 0 0;
}

.dog .head {
    width: 65%;
    height: 70%;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 80% 80% 60% 60%;
    background-color: #E1A46E;
}

.dog .nuzzle {
    width: 70%;
    height: 40%;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
}

.dog .nuzzle::before,
.dog .nuzzle::after {
    content: '';
    width: 50%;
    height: 100%;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #C28E5F;
    border-radius: 70% 30% 50% 20%;
    z-index: 1;
}

.dog .nuzzle::after {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

.dog .mouth {
    width: 50%;
    height: 90%;
    border-radius: 100%;
    background-color: #111827;
    left: 50%;
    bottom: -20%;
    transform: translateX(-50%);
}

.dog .tongue {
    width: 50%;
    height: 50%;
    background-color: #ef4444;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5%;
    border-radius: 50%;
    animation: 0.3s alternate tongueBounce infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes tongueBounce {
    from {
        bottom: 20%;
    }

    to {
        bottom: 15%;
    }
}

.dog .nose {
    width: 30%;
    height: 20%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 10;
}

.dog .nose::before {
    content: '';
    width: 100%;
    height: 60%;
    top: -50%;
    left: 0;
    position: absolute;
    display: inline-block;
    background-color: #1f2937;
    border-radius: var(--fullyRound) var(--fullyRound) 0 0;
}

.dog .nose::after {
    content: '';
    width: 100%;
    height: 100%;
    top: 10%;
    left: 0;
    position: absolute;
    display: inline-block;
    background-color: #1f2937;
    border-radius: 0 0 var(--fullyRound) var(--fullyRound);
}

.dog .nose .nostrils {
    width: 90%;
    height: 100%;
    top: 0;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
}

.dog .nose .nostrils::before {
    content: '';
    display: inline-block;
    width: 30%;
    left: 10%;
    height: 100%;
    position: absolute;
    background-color: #000;
    border-radius: 100%;
}

.dog .nose .nostrils::after {
    content: '';
    display: inline-block;
    width: 30%;
    right: 10%;
    height: 100%;
    position: absolute;
    background-color: #000;
    border-radius: 100%;
}

.dog .nose .highlight {
    top: -50%;
    left: 50%;
    width: 80%;
    height: 30%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: var(--fullyRound) var(--fullyRound) 0 0;
    background: linear-gradient(#fff, rgba(255, 255, 255, 0));
    opacity: 0.3;
}

.dog .eyes {
    width: 80%;
    height: 35%;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.dog .eyes .left,
.dog .eyes .right {
    position: absolute;
    border-radius: var(--fullyRound);
    background-color: #111;
    width: 25%;
    height: 52%;
    top: 50%;
    transform: translateY(-50%);
}

.dog .eyes .left::after,
.dog .eyes .right::after {
    content: '';
    display: inline-block;
    position: absolute;
    width: 30%;
    height: 30%;
    background-color: #fff;
    opacity: 0.7;
    border-radius: var(--fullyRound);
    left: 15%;
    top: 15%;
}

.dog .eyes .left {
    left: 15%;
}

.dog .eyes .right {
    right: 15%;
}

.dog .ears {
    width: 90%;
    height: 90%;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: relative;
}

.dog .ears div {
    position: absolute;
    width: 30%;
    height: 50%;
    left: 0;
    top: 0;
    background-color: #9F6A43;
    transform: rotate(15deg);
    border-radius: 60% 20% 80% 10%;
    z-index: 1;
}

.dog .ears div.right {
    transform: rotate(-15deg) scaleX(-1);
    left: auto;
    right: 0;
}

.paw {
    position: absolute;
    right: -10px;
    top: 10px;
    overflow: hidden;
    width: 12px;
    height: 12px;
    z-index: 1;
    transition: 0.3s right cubic-bezier(0.33, 1, 0.68, 1);
}

.paw::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #E1A46E;
    transition: 0.3s left cubic-bezier(0.33, 1, 0.68, 1);
    transition-delay: 0.3s;
}

.paw.top {
    transform: rotate(-90deg);
    top: -10px;
    right: 20px;
    transition: 0.3s top cubic-bezier(0.33, 1, 0.68, 1);
}

/* ----------------------------------------------------------
   21. AUTH LAYOUT
   ---------------------------------------------------------- */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-accent));
    padding: 24px;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 8c2.2 0 4 1.8 4 4s-1.8 4-4 4-4-1.8-4-4 1.8-4 4-4zm6 10c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3zm-12 0c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3zm6 8c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5z' fill='%23DDD4C8' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.auth-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 48px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-card);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card .sidebar-logo {
    justify-content: center;
    margin-bottom: 24px;
}

/* ----------------------------------------------------------
   22. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        flex-direction: row;
        border-top: 1px solid var(--border);
        border-right: none;
        z-index: 1000;
        overflow: visible;
    }

    .sidebar-logo span {
        display: none;
    }

    .sidebar-logo {
        padding: 8px 12px;
    }

    .sidebar-logo img {
        width: 32px;
        height: 32px;
    }

    .sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
        flex: 1;
        padding: 0;
    }

    .sidebar-nav a {
        padding: 8px 12px;
        text-align: center;
        border-left: none;
        border-radius: 0;
        font-size: 12px;
        flex-direction: column;
        gap: 2px;
    }

    .sidebar-nav a.active {
        border-left: none;
        border-bottom: 3px solid var(--accent-primary);
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 20px;
        padding-bottom: 80px;
        margin-left: 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero {
        padding: 32px 24px;
    }

    .hero-blobs {
        display: none;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-ribbon {
        flex-direction: column;
    }

    .scroll-row>* {
        width: 180px;
    }

    .form-row {
        flex-direction: column;
    }

    .tab-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .stat-number {
        font-size: 36px;
    }

    .auth-card {
        padding: 32px 24px;
    }
}

/* ----------------------------------------------------------
   23. SPINNER
   ---------------------------------------------------------- */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}