/* 
 * PetStore - Premium Pet Care Dashboard
 * Enhanced Senior-Level Frontend Styles
 * Modern Design System with Typography-First Approach
 */

/* ========================================
   GOOGLE FONTS IMPORTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES - DESIGN TOKENS
   ======================================== */
:root {
    /* Primary Brand - Ocean Blue */
    --color-primary: #4a90d9;
    --color-primary-light: #357abd;
    --color-primary-dark: #2563EB;
    --color-primary-subtle: #DBEAFE;
    
    /* Secondary - Deep Slate */
    --color-secondary: #334155;
    --color-secondary-light: #475569;
    --color-secondary-dark: #1E293B;
    
    /* Accent - Warm Amber */
    --color-accent: #F59E0B;
    --color-accent-light: #FBBF24;
    --color-accent-dark: #D97706;
    
    /* Semantic Colors */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-danger: #EF4444;
    --color-danger-light: #FEE2E2;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;
    
    /* Neutrals */
    --color-white: #FFFFFF;
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-gray-900: #0F172A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4a90d9 0%, #2563EB 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-mesh: linear-gradient(135deg, #4a90d9 0%, #3B82F6 50%, #8B5CF6 100%);
    --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    
    /* Shadows - Layered System */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 20px 48px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 40px 80px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.15);
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ========================================
   BASE STYLES
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-gray-50);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }

/* ========================================
   LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ========================================
   MAIN CONTENT AREA - RESPONSIVE
   ======================================== */
.main-content {
    margin-left: 0;
    margin-top: 72px;
    padding: var(--space-6);
    min-height: calc(100vh - 72px);
    width: 100%;
    animation: fadeIn 0.4s ease-out;
    transition: margin-left var(--transition-base);
    position: relative;
    z-index: 1;
}

/* Paw Icon Particles Background */
.paw-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.paw-particle {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: floatPaw 15s infinite ease-in-out;
    color: var(--color-primary);
    filter: drop-shadow(0 2px 4px rgba(13, 148, 136, 0.2));
}

.paw-particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 12s; }
.paw-particle:nth-child(2) { left: 15%; animation-delay: 1s; animation-duration: 14s; }
.paw-particle:nth-child(3) { left: 25%; animation-delay: 2s; animation-duration: 11s; }
.paw-particle:nth-child(4) { left: 35%; animation-delay: 3s; animation-duration: 13s; }
.paw-particle:nth-child(5) { left: 45%; animation-delay: 0.5s; animation-duration: 15s; }
.paw-particle:nth-child(6) { left: 55%; animation-delay: 1.5s; animation-duration: 12s; }
.paw-particle:nth-child(7) { left: 65%; animation-delay: 2.5s; animation-duration: 14s; }
.paw-particle:nth-child(8) { left: 75%; animation-delay: 3.5s; animation-duration: 11s; }
.paw-particle:nth-child(9) { left: 85%; animation-delay: 0.8s; animation-duration: 13s; }
.paw-particle:nth-child(10) { left: 92%; animation-delay: 1.8s; animation-duration: 15s; }
.paw-particle:nth-child(11) { left: 10%; animation-delay: 4s; animation-duration: 12s; }
.paw-particle:nth-child(12) { left: 80%; animation-delay: 4.5s; animation-duration: 14s; }

@keyframes floatPaw {
    0% {
        top: -10%;
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 0.3;
        transform: translateX(20px) rotate(20deg) scale(0.8);
    }
    50% {
        opacity: 0.15;
        transform: translateX(-30px) rotate(-15deg) scale(1);
    }
    90% {
        opacity: 0.3;
        transform: translateX(20px) rotate(10deg) scale(0.9);
    }
    100% {
        top: 110%;
        opacity: 0;
        transform: translateX(-10px) rotate(-20deg) scale(0.6);
    }
}

/* Tablet and up */
@media (min-width: 769px) {
    .main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .main-content {
        margin-left: 320px;
        width: calc(100% - 320px);
        padding: var(--space-8);
    }
}

/* ========================================
   SIDEBAR - Modern Responsive Design
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    border-right: 1px solid var(--color-gray-200);
    z-index: var(--z-sticky);
    transform: translateX(-100%);
    transition: var(--transition-slow);
    overflow-y: auto;
}

.sidebar.active {
    transform: translateX(0);
}

@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
        width: 280px;
    }
}

@media (min-width: 1440px) {
    .sidebar {
        width: 320px;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-sticky) - 1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Toggle Button (Mobile Floating Action Button) */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-lg), 0 8px 24px rgba(13, 148, 136, 0.3);
    transition: var(--transition-base);
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl), 0 12px 32px rgba(13, 148, 136, 0.4);
}

.sidebar-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
    }
}

/* Sidebar Menu */
.sidebar-menu {
    padding: var(--space-6) var(--space-4);
}

.sidebar-section {
    margin-bottom: var(--space-6);
}

.sidebar-title {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-400);
    padding: 0 var(--space-4);
    margin-bottom: var(--space-3);
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--color-gray-600);
    font-weight: 500;
    transition: var(--transition-base);
}

.sidebar-menu li a:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.sidebar-menu li a.active {
    background: var(--color-primary-subtle);
    color: var(--color-primary-dark);
}

.sidebar-menu li a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========================================
   NAVBAR - Modern Glass Effect
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-gray-200);
    z-index: var(--z-sticky);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
}

@media (min-width: 769px) {
    .navbar {
        left: 280px;
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1440px) {
    .navbar {
        left: 320px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar {
        left: 260px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        left: 0;
    }
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--color-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: contain;
}


/* Navbar Menu (Center links) */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
    justify-content: center;
    padding: 0 var(--space-4);
}

.navbar-menu a {
    padding: var(--space-2) var(--space-3);
    color: var(--color-gray-600);
    font-weight: 500;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

/* Navbar User Section */
.navbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
}

.navbar-search {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-gray-400);
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-12);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    font-size: var(--text-sm);
    transition: var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}


.navbar-title {
    font-weight: 800;
    font-size: var(--text-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}


/* Notification Bell */
.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    cursor: pointer;
    color: var(--color-gray-600);
    transition: var(--transition-base);
    background: none;
    border: none;
}

.notification-bell:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.notification-bell svg {
    width: 20px;
    height: 20px;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notifications Panel */
.notifications-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.notifications-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
}

.notifications-header h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin: 0;
}

.notifications-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
    cursor: pointer;
    transition: var(--transition-base);
}

.notification-item:hover {
    background: var(--color-gray-50);
}

.notification-item.unread {
    background: var(--color-primary-subtle);
}

.notification-title {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-gray-900);
    margin-bottom: 2px;
}

.notification-message {
    font-size: var(--text-xs);
    color: var(--color-gray-600);
    margin-bottom: 2px;
}

.notification-time {
    font-size: 10px;
    color: var(--color-gray-400);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.user-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: var(--transition-base);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--color-gray-50);
    color: var(--color-primary);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--color-gray-600);
    transition: var(--transition-base);
}

.menu-toggle:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
    
    .sidebar {
        width: 260px;
    }
    
    .navbar {
        left: 260px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        left: 0;
    }
    
    .nav-container {
        padding: 0 var(--space-4);
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 72px;
        padding: var(--space-4);
        width: 100%;
    }
    
    .dashboard-title {
        font-size: var(--text-2xl);
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: var(--space-4);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-content {
        padding: var(--space-3);
    }
    
    .dashboard-title {
        font-size: var(--text-xl);
    }
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Cards */
.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-gray-100);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-gray-900);
}

.card-body {
    padding: var(--space-6);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm), 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 8px 20px rgba(13, 148, 136, 0.35);
    color: white;
}

.btn-secondary {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
}

.btn-secondary:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-800);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: var(--space-2);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    transition: var(--transition-base);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 20px;
    padding-right: var(--space-10);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.table th,
.table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--color-gray-100);
}

.table th {
    background: var(--color-gray-50);
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--color-gray-50);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-success {
    background: var(--color-success-light);
    color: #047857;
}

.badge-warning {
    background: var(--color-warning-light);
    color: #b45309;
}

.badge-error {
    background: var(--color-danger-light);
    color: #b91c1c;
}

.badge-info {
    background: var(--color-info-light);
    color: #1d4ed8;
}

/* Alerts */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    font-weight: 500;
}

.alert-success {
    background: var(--color-success-light);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: var(--color-danger-light);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--color-warning-light);
    color: #b45309;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--color-info-light);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    color: var(--color-gray-400);
}

.empty-state-icon svg {
    width: 100%;
    height: 100%;
}

.empty-state h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--color-gray-500);
    margin-bottom: var(--space-4);
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */
.dashboard-header {
    margin-bottom: var(--space-8);
}

.dashboard-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}

.dashboard-subtitle {
    font-size: var(--text-base);
    color: var(--color-gray-500);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    flex-shrink: 0;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-icon.primary {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.stat-icon.accent {
    background: var(--color-warning-light);
    color: var(--color-accent-dark);
}

.stat-icon.success {
    background: var(--color-success-light);
    color: #047857;
}

.stat-icon.info {
    background: var(--color-info-light);
    color: #1d4ed8;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1024px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PET CARD STYLES - Thumbnail & Crop
   ======================================== */
.pet-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pet-card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pet-card:hover .pet-card-image img {
    transform: scale(1.08);
}

.pet-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
    color: var(--color-gray-400);
}

.pet-card-info {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pet-card-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}

.pet-card-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    margin-bottom: var(--space-3);
    flex: 1;
}

.pet-card-details span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.pet-card-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: auto;
    flex-wrap: wrap;
}

.pet-card-actions .btn {
    flex: 1;
    min-width: 60px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

/* ========================================
   SHOP PAGE - Modern E-commerce Design
   ======================================== */

/* Modern Shop Container */
.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Shop Header */
.shop-header {
    margin-bottom: var(--space-8);
}

.shop-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.shop-title-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md), 0 8px 20px rgba(13, 148, 136, 0.25);
}

.shop-subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-500);
    font-weight: 500;
}

/* Shop Filters - Modern Tab Style */
.shop-filters {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-gray-200);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-sm);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.filter-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-gray-900);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-title-icon {
    font-size: 1.25rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.filter-btn:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 6px 16px rgba(13, 148, 136, 0.3);
}

.filter-emoji {
    font-size: 1.1rem;
}

/* Product Count Badge */
.product-count {
    display: flex;
    align-items: center;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary-subtle);
    color: var(--color-primary-dark);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Modern Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
    width: 100%;
    box-sizing: border-box;
}

/* Modern Product Card */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Product Card Header */
.product-card-header {
    position: relative;
}

.product-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--color-warning-light) 0%, #fcd34d 100%);
    color: var(--color-gray-500);
}

/* Stock Badge */
.stock-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.stock-badge.in-stock {
    background: var(--color-success);
    color: white;
}

.stock-badge.out-of-stock {
    background: var(--color-danger);
    color: white;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    z-index: 5;
    box-shadow: var(--shadow-sm);
}

/* Product Card Body */
.product-card-body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.product-category {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: var(--color-primary-subtle);
    color: var(--color-primary-dark);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-3);
    align-self: flex-start;
}

.product-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
}

.product-description {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* Product Meta */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-gray-600);
    background: var(--color-gray-50);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.meta-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.meta-item.stock-indicator {
    color: var(--color-success);
    background: var(--color-success-light);
}

.meta-item.stock-indicator svg {
    color: var(--color-success);
}

/* Product Footer */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: var(--space-3);
}

.price-section {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    font-weight: 500;
}

.price-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-primary-dark);
    font-family: 'Outfit', sans-serif;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-gray-900);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-view:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 6px 16px rgba(13, 148, 136, 0.3);
    color: white;
}

/* Empty State */
.shop-empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-gray-200);
}

.shop-empty-state .empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    background: var(--color-warning-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.shop-empty-state h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.shop-empty-state p {
    color: var(--color-gray-500);
    margin-bottom: var(--space-5);
}

/* Responsive Shop */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: var(--space-5);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--space-4);
    }
    
    .product-card {
        min-height: 380px;
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .product-card-body {
        padding: var(--space-4);
    }
    
    .product-title {
        font-size: var(--text-lg);
    }
    
    .price-value {
        font-size: var(--text-xl);
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shop-title {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .product-card {
        min-height: 360px;
    }
    
    .product-card-image {
        height: 160px;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-view {
        justify-content: center;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - var(--space-2));
    }
}

/* ========================================
   PET PAGE - EXPERT LEVEL DESIGN
   ======================================== */

/* Quick Action Card */
.quick-action-card {
    margin-bottom: var(--space-6);
}

.quick-action-card .card-body {
    padding: var(--space-4);
}

.btn-add-pet {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
}

/* Expert Pets Grid - Modern Masonry-style */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
    width: 100%;
    box-sizing: border-box;
    padding-bottom: var(--space-8);
}

/* Expert Pet Card Design */
.pet-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.pet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.pet-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.pet-card:hover::before {
    transform: scaleX(1);
}

/* Pet Card Header */
.pet-card-header {
    position: relative;
}

.pet-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pet-card:hover .pet-card-image img {
    transform: scale(1.15);
}

/* Pet Card Placeholder */
.pet-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--color-primary-subtle) 0%, #e0f2fe 100%);
    color: var(--color-primary);
}

/* Pet Card Overlay with Badge */
.pet-card-overlay {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 5;
}

.pet-species-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-primary-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: capitalize;
}

/* Pet Card Body */
.pet-card-body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.pet-card-name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--space-1);
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
}

.pet-card-breed {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-bottom: var(--space-4);
    font-weight: 500;
}

/* Pet Card Meta */
.pet-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
}

.pet-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-gray-600);
    background: var(--color-gray-50);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.pet-meta-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Pet Card Actions */
.pet-card-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: auto;
}

.pet-card-actions .btn {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-lg);
    justify-content: center;
}

.pet-card-actions .btn svg {
    width: 12px;
    height: 12px;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .pets-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: var(--space-5);
    }
}

@media (max-width: 768px) {
    .pets-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-4);
    }
    
    .pet-card-image {
        height: 180px;
    }
    
    .pet-card-body {
        padding: var(--space-4);
    }
    
    .pet-card-name {
        font-size: var(--text-lg);
    }
    
    .pet-card-meta {
        gap: var(--space-2);
    }
    
    .pet-meta-item {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .pets-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .pet-card-image {
        height: 160px;
    }
    
    .pet-card-actions {
        flex-wrap: wrap;
    }
    
    .pet-card-actions .btn {
        min-width: calc(50% - var(--space-1));
    }
}

/* ========================================
   HEAT CYCLE PREDICTION STYLES
   ======================================== */
.heat-prediction {
    background: linear-gradient(135deg, var(--color-primary-subtle) 0%, var(--color-info-light) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.heat-prediction-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.heat-prediction-header h4 {
    font-size: var(--text-base);
    color: var(--color-primary-dark);
    margin: 0;
}

.heat-prediction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-3);
}

.heat-prediction-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
}

.heat-prediction-label {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    margin-bottom: var(--space-1);
}

.heat-prediction-value {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-gray-900);
}

.heat-prediction-value.upcoming {
    color: var(--color-primary);
}

.heat-prediction-value.active {
    color: var(--color-danger);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out;
}

.animate-slideIn {
    animation: slideInRight 0.4s ease-out;
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --color-gray-50: #0F172A;
        --color-gray-100: #1E293B;
        --color-gray-200: #334155;
        --color-gray-300: #475569;
        --color-gray-800: #E2E8F0;
        --color-gray-900: #F8FAFC;
    }
    
    body {
        background-color: var(--color-gray-50);
    }
    
    .card,
    .stat-card,
    .modal-content,
    .table-container {
        background: var(--color-gray-100);
        border-color: var(--color-gray-200);
    }
    
    .navbar {
        background: rgba(30, 41, 59, 0.9);
        border-color: var(--color-gray-200);
    }
    
    .sidebar {
        background: var(--color-gray-100);
        border-color: var(--color-gray-200);
    }
    
    .sidebar-menu li a:hover {
        background: var(--color-gray-200);
    }
    
    .sidebar-menu li a.active {
        background: rgba(13, 148, 136, 0.2);
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .sidebar,
    .menu-toggle,
    .sidebar-toggle,
    .btn,
    .toast-container {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
