 /* CSS Variables for easier theme management */
        :root {
            --primary-color: #ff7043; /* Deep Orange */
            --primary-light: #ffab91; /* Light Orange */
            --primary-lighter: #ffccbc; /* Very Light Orange */
            --primary-dark: #e64a19;  /* Darker Orange */
            --secondary-color: #f3e5d8; /* Light Beige Background */
            --text-color: #333;
            --white-color: #ffffff;
            --border-color: #ddd;
            --success-color: #4CAF50;
            --error-color: #f44336;
            --shadow-light: rgba(0, 0, 0, 0.1);
            --shadow-medium: rgba(0, 0, 0, 0.15);
            --border-radius-small: 6px;
            --border-radius-medium: 12px;
            --transition-speed: 0.3s;
        }

        body {
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--secondary-color);
            color: var(--text-color);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* --- HEADER STYLES --- */
        header {
            background-color: var(--primary-color);
            padding: 10px 30px; /* Adjusted padding */
            color: var(--white-color);
            box-shadow: 0px 4px 10px var(--shadow-light);
            position: sticky; /* Stick to top on scroll */
            top: 0;
            z-index: 1000;
            /* Flexbox for layout */
            display: flex;
            justify-content: space-between; /* Logo left, Nav right */
            align-items: center; /* Vertically center items */
        }

        /* Removed h1 styling as it wasn't used in the header HTML */

        .nav-logo {
            font-size: 1.5rem; /* Adjust size as needed */
            font-weight: bold;
            color: var(--white-color); /* White logo text */
            /* text-align: left; <- Removed, flex handles alignment */
        }
 
        .nav-logo a {
          text-decoration: none;
          color: white;
        }
        nav {
           /* margin-top: 10px; <- Removed, flex handles alignment */
        }

        nav button {
            margin: 0 5px; /* Adjusted margin for horizontal layout */
            padding: 8px 16px; /* Slightly adjusted padding */
            background-color: var(--primary-lighter);
            border: none;
            color: var(--primary-dark);
            cursor: pointer;
            font-size: 0.95em; /* Slightly adjusted size */
            font-weight: 600;
            border-radius: var(--border-radius-small);
            transition: all var(--transition-speed) ease;
        }

        nav button:hover, nav button.active {
            background-color: var(--primary-light);
            color: var(--white-color);
            transform: translateY(-2px);
            box-shadow: 0 2px 5px var(--shadow-light);
        }
        /* --- END HEADER STYLES --- */

        .banner {
             width: 100%;
             max-height: 350px;
             overflow: hidden;
        }

        .banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            animation: fadeIn 1.5s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        main {
            flex-grow: 1;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        .content-section {
            margin: 20px 0;
            padding: 25px 30px;
            background: var(--white-color);
            border-radius: var(--border-radius-medium);
            box-shadow: 0 5px 15px var(--shadow-medium);
            max-width: 700px;
            width: 100%;
            text-align: left;
            opacity: 0;
            transform: translateY(20px);
            animation: slideFadeIn var(--transition-speed) ease-out forwards;
            display: none;
        }

        .content-section.active {
            display: block;
        }

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

        .content-section h2 {
            text-align: center;
            color: var(--primary-dark);
            margin-top: 0;
            margin-bottom: 25px;
            font-weight: 600;
        }

        form {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        label {
            margin-bottom: 8px;
            font-weight: 600;
            color: #555;
        }

        input[type="text"],
        input[type="number"],
        select {
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius-small);
            font-size: 1em;
            transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
            width: 100%;
            box-sizing: border-box;
        }

        input:focus, select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px var(--primary-lighter);
            outline: none;
        }

        .file-input-wrapper {
            position: relative;
            overflow: hidden;
            display: inline-block;
            width: 100%;
            text-align: center;
        }

        #petImage {
            position: absolute;
            font-size: 100px;
            left: 0;
            top: 0;
            opacity: 0;
            cursor: pointer;
            height: 100%;
            width: 100%;
        }

        .file-input-label {
            display: inline-block;
            padding: 12px 25px;
            background-color: var(--primary-light);
            color: var(--primary-dark);
            border: none;
            border-radius: var(--border-radius-small);
            cursor: pointer;
            font-weight: 600;
            transition: background-color var(--transition-speed) ease;
        }

        .file-input-label:hover {
            background-color: var(--primary-color);
            color: var(--white-color);
        }

        #uploadStatus {
            margin-top: 10px;
            font-size: 0.9em;
            min-height: 1.2em;
            text-align: center;
        }

        button[type="submit"] {
            background-color: var(--primary-color);
            color: var(--white-color);
            padding: 14px 25px;
            border: none;
            border-radius: var(--border-radius-small);
            cursor: pointer;
            font-size: 1.1em;
            font-weight: 600;
            margin-top: 15px;
            transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
            width: 100%;
            box-sizing: border-box;
        }

        button[type="submit"]:hover {
            background-color: var(--primary-dark);
            transform: scale(1.02);
        }

        #petList {
            margin-top: 20px;
            display: grid;
            gap: 15px;
        }

        .pet-item {
            background-color: #f9f9f9;
            padding: 15px 20px;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius-small);
            display: flex;
            justify-content: space-between;
            align-items: center;
            opacity: 0;
            animation: listItemFadeIn 0.5s ease forwards;
        }

        .pet-item:nth-child(1) { animation-delay: 0.1s; }
        .pet-item:nth-child(2) { animation-delay: 0.2s; }
        .pet-item:nth-child(3) { animation-delay: 0.3s; }

        @keyframes listItemFadeIn {
             from { opacity: 0; transform: translateX(-10px); }
             to { opacity: 1; transform: translateX(0); }
        }

        .pet-details span {
            display: block;
            margin-bottom: 5px;
            font-size: 0.95em;
        }

        .pet-details strong {
            font-weight: 600;
            color: var(--primary-dark);
            min-width: 120px;
            display: inline-block;
        }

        .delete-pet-btn {
            background-color: var(--error-color);
            color: var(--white-color);
            border: none;
            padding: 8px 12px;
            border-radius: var(--border-radius-small);
            cursor: pointer;
            font-size: 0.9em;
            transition: background-color var(--transition-speed) ease;
            margin-left: 15px;
        }

        .delete-pet-btn:hover {
            background-color: darkred;
        }

        #noPetsMessage {
             text-align: center;
             color: #777;
             margin-top: 30px;
        }

        footer {
            text-align: center;
            padding: 15px;
            margin-top: 30px;
            background-color: #e0e0e0;
            color: #555;
            font-size: 0.9em;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
             header {
                flex-direction: column; /* Stack logo and nav vertically */
                padding: 10px 15px; /* Adjust padding */
             }
             .nav-logo {
                margin-bottom: 10px; /* Add space below logo */
             }
             nav {
                 text-align: center; /* Center buttons */
                 width: 100%;
             }
            nav button {
                padding: 8px 12px; /* Adjust button padding */
                font-size: 0.9em;
                margin: 5px; /* Add vertical margin */
            }
            .content-section {
                padding: 20px;
                max-width: 90%;
            }
            .pet-item {
                flex-direction: column;
                align-items: flex-start;
            }
            .delete-pet-btn {
                margin-top: 10px;
                margin-left: 0;
                width: 100%;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .nav-logo {
                font-size: 1.3rem; /* Smaller logo on very small screens */
            }
            nav button {
                font-size: 0.85em; /* Smaller buttons */
                padding: 6px 10px;
            }
            .content-section h2 {
                font-size: 1.3em; /* Adjust heading size */
            }
            input[type="text"],
            input[type="number"],
            select,
            button[type="submit"],
            .file-input-label {
                font-size: 0.95em; /* Adjust form element font size */
            }
        }
