/* Gassigeher - Main Styles */
/* Color Scheme from Tierheim Göppingen */

:root {
    /* Colors - Vibrant Dog-Friendly Palette */
    --primary-green: #82b965;
    --secondary-green: #6fa050;
    --accent-orange: #ff8c42;
    --accent-blue: #4a90e2;
    --warm-cream: #fef9f3;
    --header-bg: #4a7c59;
    --text-white: #ffffff;
    --text-dark: #2c3e34;
    --text-gray: #5a6c57;
    --error-red: #e74c3c;
    --warning-orange: #f39c12;
    --info-blue: #3498db;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-light: #e1e8e5;

    /* Spacing */
    --spacing-xs: 0.44rem;
    --spacing-sm: 0.88rem;
    --spacing-md: 1.32rem;
    --spacing-lg: 1.76rem;
    --spacing-xl: 2.64rem;

    /* Border Radius */
    --border-radius: 6px;

    /* Fonts */
    --font-family: Arial, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-cream);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--header-bg) 0%, var(--primary-green) 100%);
    color: var(--text-white);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

nav a {
    color: var(--text-white);
    font-weight: 400;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--accent-orange);
    transform: translateY(-2px);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.menu-toggle:hover {
    color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.menu-toggle:active {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.2);
}

/* Area Switcher Link Styles */
.area-switcher {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 0.4rem 0.8rem;
}

.area-switcher:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Admin Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown > a::after {
    content: '▾';
    font-size: 0.7rem;
    opacity: 0.8;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--header-bg) 0%, var(--primary-green) 100%);
    min-width: 200px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    padding: 8px 0;
    margin-top: 8px;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--header-bg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: none;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown-menu a {
        padding-left: 32px;
    }

    .nav-dropdown > a::after {
        margin-left: auto;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(130, 185, 101, 0.3);
}

/* Small button variant */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn:hover {
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(130, 185, 101, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #3a7bc8 100%);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3a7bc8 0%, var(--accent-blue) 100%);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-red) 0%, #c82333 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, var(--error-red) 100%);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-orange) 0%, #e08a00 100%);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e08a00 0%, var(--warning-orange) 100%);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    background-color: var(--card-bg);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(130, 185, 101, 0.1);
    transform: translateY(-1px);
}

input.error,
select.error,
textarea.error {
    border-color: var(--error-red);
}

.form-error {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(130, 185, 101, 0.15);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 3px solid var(--primary-green);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: var(--error-red);
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning-orange);
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: var(--info-blue);
    color: #0c5460;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-blue) 100%);
    color: var(--text-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 140, 66, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.hero .btn {
    margin: 0 var(--spacing-sm);
    position: relative;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.feature {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 2px solid var(--border-light);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(130, 185, 101, 0.15);
    border-color: var(--primary-green);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-blue) 100%);
    border-radius: 50%;
    color: white;
    width: 80px;
    height: 80px;
    line-height: 80px;
    box-shadow: 0 4px 12px rgba(130, 185, 101, 0.3);
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay .spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
    width: 60px;
    height: 60px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--border-radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }

/* Footer */
footer {
    background: linear-gradient(135deg, var(--header-bg) 0%, var(--text-dark) 100%);
    color: var(--text-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin-top: var(--spacing-xl);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

footer p {
    margin: 0;
    font-size: 0.875rem;
}

footer a {
    color: var(--accent-orange);
    font-weight: 600;
}

footer a:hover {
    color: var(--primary-green);
}

/* Dog Cards */
.dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.dog-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-light);
}

.dog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(130, 185, 101, 0.2);
    border-color: var(--primary-green);
}

.dog-card.unavailable {
    opacity: 0.7;
    background: #f5f5f5;
}

.dog-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--warning-orange) 0%, #e08a00 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
    z-index: 5;
}

.dog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-bg);
    transition: transform 0.3s ease;
}

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

.dog-card-body {
    padding: var(--spacing-md);
}

.dog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.dog-card-info {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-xs);
}

.dog-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.dog-category-badge.green {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b1dfbb;
}

.dog-category-badge.blue {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #a8dadc;
}

.dog-category-badge.orange {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 1px solid #ffd966;
}

.dog-unavailable-banner {
    background-color: #f8d7da;
    color: #721c24;
    padding: var(--spacing-sm);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.dog-locked-banner {
    background-color: #fff3cd;
    color: #856404;
    padding: var(--spacing-sm);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.dog-card.locked {
    opacity: 0.6;
    position: relative;
}

.dog-card.locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* Filters */
.filter-bar {
    background: var(--card-bg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid var(--border-light);
}

.filter-row {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-row > * {
    flex: 1;
    min-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Show hamburger menu button on mobile */
    .menu-toggle {
        display: block;
        position: absolute;
        left: var(--spacing-md);
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    /* Header adjustments for mobile */
    header .container {
        flex-direction: row;
        align-items: center;
        position: relative;
    }

    /* Center the logo on mobile */
    .logo {
        flex: 1;
        text-align: center;
    }

    /* Hide navigation by default on mobile */
    nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--header-bg) 0%, var(--primary-green) 100%);
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        padding-top: 60px;
    }

    /* Show navigation when active */
    nav.active {
        left: 0;
    }

    /* Navigation list styling for mobile */
    nav ul {
        flex-direction: column;
        text-align: left;
        gap: 0;
        padding: var(--spacing-md);
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: var(--spacing-md);
        transition: background 0.2s ease;
    }

    nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }

    /* Overlay for mobile menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Other responsive adjustments */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
}

/* Photo Upload Styles */

/* Photo upload zone */
.photo-upload-zone {
    border: 2px dashed var(--primary-green);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--warm-cream);
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-upload-zone:hover {
    background: rgba(130, 185, 101, 0.05);
    border-color: var(--secondary-green);
}

.photo-upload-zone.drag-over {
    background: rgba(130, 185, 101, 0.1);
    border-color: var(--secondary-green);
    border-style: solid;
    transform: scale(1.02);
}

/* Upload prompt */
.upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 5px 0;
}

/* Photo preview */
.photo-preview {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.photo-preview.hidden {
    display: none;
}

.photo-preview img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Remove preview button */
.btn-remove-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.btn-remove-preview:hover {
    background: var(--error-red);
    color: white;
    transform: scale(1.1);
}

/* Current photo display */
.current-photo-display {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: var(--spacing-md);
    background: var(--warm-cream);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.current-dog-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Upload progress overlay */
.upload-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.upload-progress {
    background: var(--text-dark);
    padding: 30px 50px;
    border-radius: var(--border-radius);
    text-align: center;
}

/* Spinner animation */
.spinner {
    border: 4px solid rgba(130, 185, 101, 0.3);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Warning alert style */
.alert-warning {
    background-color: var(--warning-orange);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive photo upload */
@media (max-width: 768px) {
    .photo-upload-zone {
        padding: 20px;
        min-height: 150px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .current-photo-display {
        flex-direction: column;
        text-align: center;
    }

    .current-dog-photo {
        width: 120px;
        height: 120px;
    }

    .photo-actions {
        width: 100%;
    }
}

/* Phase 5: Display Optimization Styles */

/* Image Loading Skeleton */
.dog-card-image-container {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.dog-card-image-container.loaded {
    background: none;
    animation: none;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Image fade-in effect */
.dog-card-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.dog-card-image.loaded {
    opacity: 1;
}

/* For images that are already in cache or load immediately */
.dog-card-image.no-animation {
    opacity: 1;
    transition: none;
}

/* Calendar dog photo styles */
.calendar-dog-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    margin-right: 8px;
}

.calendar-dog-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Thumbnail optimization */
.dog-card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Performance: Prevent layout shift */
.dog-card-image-wrapper {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.dog-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Preload critical images hint */
.dog-card-image[data-priority="high"] {
    /* Browser hint for important images */
    content-visibility: auto;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .dog-card-image {
        transition: none;
    }

    .dog-card-image-container {
        animation: none;
    }
}
