/* ===================================
   PixelPaws - Main Stylesheet
   Author: Bridget Kimball
   =================================== */

/* ===================================
   CSS RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Based on Design Images */
    --primary-purple: #660066;
    --light-purple: #DFCDE7;
    --border-purple: #D6C1D7;
    --background-white: #FBF4FF;
    --text-dark: #660066;
    --nav-active: #4B0082;
    --info-section-text: #660066;
    
    /* Pet Colors */
    --pet-gray: #C0C0C0;
    --pet-pink: #FFB6C1;
    --pet-ear-inner: #FFC0CB;
    
    /* Weather Colors */
    --sunny-bg: #FFE5B4;
    --rainy-bg: #B0E0E6;
    --raindrop: #3399FF;
    
    /* Typography */
    --font-heading: 'Georgia', serif;
    --font-body: 'Arial', sans-serif;
    
    /* Spacing */
    --header-height: 64px;
    --spacing-small: 0.5rem;
    --spacing-medium: 1rem;
    --spacing-large: 2rem;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-purple);
}

h1, h2, h3, h5, h6 {
    margin-bottom: var(--spacing-medium);
}

h4 {
    margin-bottom: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
    background-color: var(--light-purple);
    border-bottom: 3px solid var(--border-purple);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display:flex;
    align-items: center;
    gap: var(--spacing-medium);
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-purple);
    margin: 0;
}

nav {
    display: flex;
    gap: 0;
}

nav ul {
    list-style: none !important;
    list-style-type: none !important;
    display: flex;
    flex-direction: row;
    gap: 0;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0;
    padding: 0;
    list-style: none !important;
    list-style-type: none !important;
    display: inline-block;
}

nav li::before {
    content: none !important;
    display: none !important;
}

nav a {
    font-weight: 600;
    color: var(--primary-purple);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

nav a:hover {
    background-color: var(--border-purple);
    color: white;
}

nav a.active {
    background-color: var(--nav-active);
    color: white;
}

/* Hamburger menu button (hidden by default) */
.menu-toggle {
    display: none;
    background-color: var(--primary-purple);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
}

.menu-toggle:hover {
    background-color: var(--nav-active);
}

/* ===================================
   MAIN CONTENT AREA
   =================================== */

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-large);
    width: 100%;
}

/* ===================================
   SHARED COMPONENTS
   =================================== */

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: var(--spacing-medium);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.btn-primary:hover {
    background-color: var(--nav-active);
}

.btn-secondary {
    background-color: var(--light-purple);
    color: var(--primary-purple);
    border-color: var(--border-purple);
}

.btn-secondary:hover {
    background-color: var(--border-purple);
    color: white;
}

/* Information Section */
.info-section {
    background-color: white;
    border: 2px solid var(--border-purple);
    border-radius: 15px;
    padding: var(--spacing-large);
    text-align: left;
}

.info-section h2 {
    text-align: center;
}

.info-section p {
    margin-bottom: var(--spacing-medium);
    font-size: 1.1rem;
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background-color: var(--light-purple);
    border-top: 3px solid var(--border-purple);
    padding: var(--spacing-large);
    text-align: center;
    margin-top: auto;
}

footer p {
    margin: 0;
    color: var(--primary-purple);
    font-weight: 600;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes rain {
    0% {
        top: -10%;
        left: 10%;
    }
    100% {
        top: 100%;
        left: 15%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   =================================== */

/* Mobile and Tablet - show hamburger menu */
@media (max-width: 1024px) {
    /* Header adjustments for mobile and tablets */
    .header-content {
        height: auto;
        padding: var(--spacing-small);
        position: relative;
    }
    
    .logo {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        white-space: nowrap;
    }
    
    /* Show hamburger menu button on mobile and tablets */
    .menu-toggle {
        display: block !important;
        flex-shrink: 0;
    }
    
    /* Hide navigation by default on mobile and tablets */
    header nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--light-purple);
        border: 2px solid var(--border-purple);
        border-top: none;
        flex-direction: column;
        padding: var(--spacing-medium);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        gap: var(--spacing-small);
    }
    
    /* Show navigation when menu is open */
    header nav.open {
        display: flex !important;
    }
    
    header nav.open ul {
        flex-direction: column;
        width: 100%;
        list-style: none !important;
        list-style-type: none !important;
    }
    
    header nav.open li {
        list-style: none !important;
        list-style-type: none !important;
    }
    
    header nav.open li::before {
        content: none !important;
        display: none !important;
    }

    nav a {
        padding: 0.7rem 1rem;
        font-size: 1rem;
        width: 100%;
        text-align: left;
        display: block;
    }
    
    /* Main content adjustments */
    main {
        padding: var(--spacing-medium);
    }
    
    /* Quick actions stack vertically */
    .quick-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Notification positioning for mobile */
    .custom-notification {
        left: 20px !important;
        right: auto !important;
        transform: translateX(-400px) !important;
    }
    
    .custom-notification.show {
        transform: translateX(0) !important;
    }
}

/* Desktop - hide hamburger menu, show full nav */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none !important;
    }
    
    nav {
        display: flex !important;
    }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--nav-active);
    outline-offset: 2px;
}

/* Skip to main content link (for screen readers) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: white;
    color: black;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-purple: #4B0082;
        --border-purple: #000;
    }
    
    .info-section {
        border-width: 3px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   HEALTH BAR STYLES
   =================================== */

.health-bar {
    background-color: white;
    border: 2px solid var(--border-purple);
    border-radius: 10px;
    padding: var(--spacing-medium);
    margin: var(--spacing-medium) 0;
    max-width: 800px;
}

.play-page .health-bar {
    margin: 0 auto var(--spacing-large) auto;
    width: 100%;
}

.health-bar h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-small);
    color: var(--primary-purple);
}

.health-status {
    font-weight: bold;
}

/* Wrapper for the peity bar - creates static outline */
.peity-bar-wrapper {
    display: block;
    background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 100%);
    border: 3px solid var(--primary-purple);
    border-radius: 8px;
    padding: 4px;
    margin: var(--spacing-small) 0;
    width: 100%;
    max-width: 400px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.peity-bar {
    display: block;
    width: 100%;
    font-size: 0;
    line-height: 0;
}

/* Style the SVG bar chart inside peity */
.peity-bar svg {
    display: block;
    width: 100%;
    height: auto;
}

.health-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-small);
    margin-top: var(--spacing-small);
}

.health-details p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    background-color: #f9f9f9;
    border-left: 3px solid var(--nav-active);
    border-radius: 3px;
}

.recovery-needed {
    margin-top: var(--spacing-small);
    padding: var(--spacing-small);
    background-color: #FFF3CD;
    border: 1px solid #FFC107;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #856404;
    display: none;
}

.recovery-needed.show {
    display: block;
}

/* Mobile adjustments for health bar */
@media (max-width: 768px) {
    .health-bar {
        padding: var(--spacing-small);
    }
    
    .health-bar h3 {
        font-size: 1rem;
    }
    
    .health-details {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ===================================
   CUSTOM NOTIFICATION
   =================================== */

.custom-notification {
    position: fixed;
    top: 80px;
    left: 20px;
    background-color: var(--primary-purple);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(-400px);
    transition: all 0.3s ease;
    max-width: 300px;
}

.custom-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-notification strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.3rem;
}

.custom-notification p {
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   DARK MODE STYLES
   =================================== */

html[data-dark-mode="true"] {
    --primary-purple: #BD9CDE;
    --light-purple: #35244C;
    --border-purple: #AB81D5;
    --background-white: #1A1325;
    --text-dark: #643BA0;
    
    /* Additional purple shades for dark mode */
    --nav-purple: #BD9CDE;
    --info-section-text: #BD9CDE;
    --btn-action-purple: #260647;
    --nav-active: #671cb7;
    
    /* Dynamic dark mode colors (will be set by JavaScript per theme) */
    --dark-primary: #BD9CDE;
    --dark-light: #35244C;
    --dark-border: #AB81D5;
    --dark-background: #1A1325;
    --dark-text: #643BA0;
    --dark-nav-active: #671cb7;
}

html[data-dark-mode="true"] body {
    background-color: var(--dark-background);
    color: var(--dark-text);
}

/* Header & Navigation */
html[data-dark-mode="true"] header {
    background-color: var(--dark-light);
    border-bottom-color: var(--dark-nav-active);
}

html[data-dark-mode="true"] nav ul li a {
    color: var(--dark-primary);
}

html[data-dark-mode="true"] nav ul li a:hover {
    color: #E9D5FF;
}

html[data-dark-mode="true"] nav ul li a.active {
    background-color: var(--dark-nav-active);
    color: white;
}

/* Main Content */
html[data-dark-mode="true"] main {
    background-color: var(--dark-background);
}

html[data-dark-mode="true"] h1, 
html[data-dark-mode="true"] h2, 
html[data-dark-mode="true"] h3, 
html[data-dark-mode="true"] h4, 
html[data-dark-mode="true"] h5, 
html[data-dark-mode="true"] h6 {
    color: var(--dark-primary);
}

/* Section Backgrounds */
html[data-dark-mode="true"] .loyalty-section,
html[data-dark-mode="true"] .dark-mode-section,
html[data-dark-mode="true"] .themes-showcase,
html[data-dark-mode="true"] .health-section,
html[data-dark-mode="true"] .customize-pet-container,
html[data-dark-mode="true"] .item-grid {
    background-color: var(--dark-light);
    border-color: var(--dark-border);
}

html[data-dark-mode="true"] .loyalty-section p,
html[data-dark-mode="true"] .health-section label,
html[data-dark-mode="true"] .control-group label {
    color: var(--dark-primary);
}

/* Cards */
html[data-dark-mode="true"] .calendar-day {
    background-color: var(--dark-light);
    border-color: var(--dark-border);
    color: var(--dark-primary);
}

html[data-dark-mode="true"] .calendar-day.unvisited {
    background-color: var(--dark-background);
    color: #999;
}

html[data-dark-mode="true"] .accessory-card,
html[data-dark-mode="true"] .customize-section {
    background-color: var(--dark-light);
    border-color: var(--dark-border);
    color: var(--dark-primary);
}

html[data-dark-mode="true"] .theme-card {
    color: var(--dark-border);
}

html[data-dark-mode="true"] .theme-card h3,
html[data-dark-mode="true"] .accessory-card h3 {
    color: var(--dark-primary);
}

/* Shop page dark mode - use primary color for shop items */
html[data-dark-mode="true"] .shop-item {
    background-color: var(--dark-primary);
    border-color: var(--dark-border);
    color: var(--dark-light);
}

html[data-dark-mode="true"] .shop-item h3 {
    color: var(--dark-light);
}

html[data-dark-mode="true"] .item-type {
    color: var(--dark-light);
}

html[data-dark-mode="true"] .item-description {
    color: var(--dark-light);
}

/* Buttons */
html[data-dark-mode="true"] .btn-checkin {
    background-color: var(--dark-health-green);
}

html[data-dark-mode="true"] .btn-checkin:hover {
    background-color: var(--dark-health-green-hover);
}

html[data-dark-mode="true"] .btn-reset-theme {
    background-color: var(--dark-primary);
    opacity: 0.7;
}

html[data-dark-mode="true"] .btn-reset-theme:hover {
    background-color: var(--dark-primary);
    opacity: 1;
}

html[data-dark-mode="true"] .btn-save-dark-mode,
html[data-dark-mode="true"] .btn-select-theme,
html[data-dark-mode="true"] .btn-equip,
html[data-dark-mode="true"] .btn-purchase,
html[data-dark-mode="true"] button[class*="btn"] {
    background-color: var(--dark-primary);
    color: var(--dark-light);
    border-color: var(--dark-primary);
}

html[data-dark-mode="true"] .btn-save-dark-mode:hover,
html[data-dark-mode="true"] .btn-select-theme:hover,
html[data-dark-mode="true"] .btn-equip:hover,
html[data-dark-mode="true"] .btn-purchase:hover {
    background-color: var(--dark-border);
}

/* Form Elements */
html[data-dark-mode="true"] select,
html[data-dark-mode="true"] input[type="text"],
html[data-dark-mode="true"] input[type="number"],
html[data-dark-mode="true"] textarea {
    background-color: var(--dark-light);
    color: var(--dark-primary);
    border-color: var(--dark-border);
}

html[data-dark-mode="true"] select:focus,
html[data-dark-mode="true"] input:focus,
html[data-dark-mode="true"] textarea:focus {
    outline: none;
    border-color: var(--dark-primary);
    box-shadow: 0 0 4px rgba(153, 102, 204, 0.5);
}

/* Footer */
html[data-dark-mode="true"] footer {
    background-color: var(--dark-light);
    border-top-color: var(--dark-border);
    color: var(--dark-text);
}

/* Notification */
html[data-dark-mode="true"] #notification,
html[data-dark-mode="true"] .custom-notification {
    background-color: var(--dark-primary);
    color: var(--dark-light);
}

/* Health Bar */
html[data-dark-mode="true"] .health-bar {
    background-color: var(--dark-light);
    border-color: var(--dark-border);
}

html[data-dark-mode="true"] .health-bar h3 {
    color: var(--dark-primary);
}

/* Modal/Popup */
html[data-dark-mode="true"] .theme-unlock-content {
    background-color: var(--dark-light);
    border-color: var(--dark-primary);
    color: var(--dark-text);
}

html[data-dark-mode="true"] .theme-unlock-body p {
    color: var(--dark-text);
}

/* Info Section */
html[data-dark-mode="true"] .info-section {
    background-color: var(--dark-light);
    border-color: var(--dark-border);
}

html[data-dark-mode="true"] .info-section h2 {
    color: var(--dark-primary);
}

html[data-dark-mode="true"] .info-section p {
    color: var(--dark-primary);
}

/* Quick Actions Buttons */
html[data-dark-mode="true"] .quick-actions .btn-primary {
    background-color: var(--dark-primary);
    border-color: var(--dark-primary);
    color: white;
}

html[data-dark-mode="true"] .quick-actions .btn-primary:hover {
    background-color: var(--dark-border);
    border-color: var(--dark-border);
}

/* Theme management section dark mode */
html[data-dark-mode="true"] .theme-management-section {
    background-color: var(--dark-light);
    border-color: var(--dark-border);
}

html[data-dark-mode="true"] .btn-save-theme,
html[data-dark-mode="true"] .btn-reset-theme {
    background-color: var(--dark-primary);
    color: white;
}

html[data-dark-mode="true"] .btn-save-theme:hover,
html[data-dark-mode="true"] .btn-reset-theme:hover {
    background-color: var(--dark-border);
}

html[data-dark-mode="true"] .theme-status-message {
    color: var(--dark-primary);
}

/* Theme save section dark mode (deprecated but keep for compatibility) */
html[data-dark-mode="true"] .theme-save-section {
    background-color: var(--dark-light);
    border-color: var(--dark-border);
}

html[data-dark-mode="true"] .btn-save-theme {
    background-color: var(--dark-primary);
    color: white;
}

html[data-dark-mode="true"] .btn-save-theme:hover {
    background-color: var(--dark-border);
}

html[data-dark-mode="true"] .theme-status-message {
    color: var(--dark-primary);
}

/* Peity health bar - ensure it uses dark mode green */
html[data-dark-mode="true"] .peity-bar-wrapper {
    border-color: var(--dark-health-green);
    background: linear-gradient(to right, var(--dark-light) 0%, var(--dark-light) 100%);
}

html[data-dark-mode="true"] .peity-bar svg rect {
    fill: var(--dark-health-green) !important;
}

/* ===================================
   DARK MODE THEME ALTERNATES
   =================================== */

/* BLUE THEME - Dark Mode */
html[data-dark-mode="true"] .themes-page[data-active-theme="blue"],
html[data-dark-mode="true"][data-active-theme="blue"] {
    --primary-purple: #5A9FFF;
    --light-purple: #1A2D4D;
    --border-purple: #4A8FFF;
    --background-white: #0D1117;
    --text-dark: #FFFFFF;
    --nav-active: #3A7FFF;
    --dark-primary: #5A9FFF;
    --dark-light: #1A2D4D;
    --dark-border: #4A8FFF;
    --dark-background: #0D1117;
    --dark-text: #FFFFFF;
    --dark-nav-active: #3A7FFF;
}

/* GREEN THEME - Dark Mode */
html[data-dark-mode="true"] .themes-page[data-active-theme="green"],
html[data-dark-mode="true"][data-active-theme="green"] {
    --primary-purple: #5FCC6B;
    --light-purple: #1F3D23;
    --border-purple: #4FBF5F;
    --background-white: #0D1117;
    --text-dark: #FFFFFF;
    --nav-active: #3EAA4A;
    --dark-primary: #5FCC6B;
    --dark-light: #1F3D23;
    --dark-border: #4FBF5F;
    --dark-background: #0D1117;
    --dark-text: #FFFFFF;
    --dark-nav-active: #3EAA4A;
}

/* YELLOW THEME - Dark Mode */
html[data-dark-mode="true"] .themes-page[data-active-theme="yellow"],
html[data-dark-mode="true"][data-active-theme="yellow"] {
    --primary-purple: #FFD966;
    --light-purple: #3D3820;
    --border-purple: #FFC933;
    --background-white: #0D1117;
    --text-dark: #000000;
    --nav-active: #FFB700;
    --dark-primary: #FFD966;
    --dark-light: #3D3820;
    --dark-border: #FFC933;
    --dark-background: #0D1117;
    --dark-text: #000000;
    --dark-nav-active: #FFB700;
}

/* ORANGE THEME - Dark Mode */
html[data-dark-mode="true"] .themes-page[data-active-theme="orange"],
html[data-dark-mode="true"][data-active-theme="orange"] {
    --primary-purple: #FF9944;
    --light-purple: #3D2818;
    --border-purple: #FF8822;
    --background-white: #0D1117;
    --text-dark: #FFFFFF;
    --nav-active: #FF7700;
    --dark-primary: #FF9944;
    --dark-light: #3D2818;
    --dark-border: #FF8822;
    --dark-background: #0D1117;
    --dark-text: #FFFFFF;
    --dark-nav-active: #FF7700;
}

/* RED THEME - Dark Mode */
html[data-dark-mode="true"] .themes-page[data-active-theme="red"],
html[data-dark-mode="true"][data-active-theme="red"] {
    --primary-purple: #FF6666;
    --light-purple: #3D1818;
    --border-purple: #FF5555;
    --background-white: #0D1117;
    --text-dark: #FFFFFF;
    --nav-active: #FF4444;
    --dark-primary: #FF6666;
    --dark-light: #3D1818;
    --dark-border: #FF5555;
    --dark-background: #0D1117;
    --dark-text: #FFFFFF;
    --dark-nav-active: #FF4444;
}

/* PINK THEME - Dark Mode */
html[data-dark-mode="true"] .themes-page[data-active-theme="pink"],
html[data-dark-mode="true"][data-active-theme="pink"] {
    --primary-purple: #FF66CC;
    --light-purple: #3D1E33;
    --border-purple: #FF55BB;
    --background-white: #0D1117;
    --text-dark: #FFFFFF;
    --nav-active: #FF44AA;
    --dark-primary: #FF66CC;
    --dark-light: #3D1E33;
    --dark-border: #FF55BB;
    --dark-background: #0D1117;
    --dark-text: #FFFFFF;
    --dark-nav-active: #FF44AA;
}

/* ===================================
   DARK MODE CUSTOMIZATION PAGE
   =================================== */

/* Customize page containers */
html[data-dark-mode="true"] .customize-page,
html[data-dark-mode="true"] .customize-container,
html[data-dark-mode="true"] .customization-area {
    color: var(--text-dark);
}

html[data-dark-mode="true"] .customize-title {
    color: var(--primary-purple);
}

/* Control buttons and labels */
html[data-dark-mode="true"] .arrow-btn {
    background-color: var(--primary-purple);
    color: white;
    border: 2px solid var(--primary-purple);
}

html[data-dark-mode="true"] .arrow-btn:hover {
    background-color: var(--border-purple);
    border-color: var(--border-purple);
}

html[data-dark-mode="true"] .control-label {
    color: var(--primary-purple);
}

/* Name input styling */
html[data-dark-mode="true"] .name-input-group label {
    color: var(--primary-purple);
}

html[data-dark-mode="true"] .name-input-group input {
    background-color: #FAF8FC;
    color: var(--text-dark);
    border-color: var(--border-purple);
}

html[data-dark-mode="true"] .name-input-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 4px rgba(153, 102, 204, 0.5);
}

/* Buttons styling */
html[data-dark-mode="true"] .form-buttons .btn,
html[data-dark-mode="true"] .import-export-buttons .btn {
    background-color: var(--primary-purple);
    color: #25173A;
    border-color: var(--border-purple);
}

html[data-dark-mode="true"] .form-buttons .btn:hover,
html[data-dark-mode="true"] .import-export-buttons .btn:hover {
    background-color: var(--border-purple);
}

/* Pet preview and display styling */
html[data-dark-mode="true"] .pet-preview {
    background-color: transparent;
}

/* Accessibility - disabled button state */
html[data-dark-mode="true"] .btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Work in Progress Notice - Dark Mode */
html[data-dark-mode="true"] .wip-notice {
    background-color: #2d2416;
    border-color: #8b6f47;
    color: #e8d4a0;
}

