body {
    font-family: sans-serif; /* Or your preferred font */
    margin: 0;
    background-color: #f9f9f9; /* Or #f4f4f4 used on some pages */
    color: #333; /* Default text color */
    line-height: 1.6;
}

.container {
    padding: 20px;
    margin: 20px auto; /* Centers the container */
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 900px; /* Adjust as a general max-width, override for smaller form containers if needed */
}

/* For smaller form containers like login, register, add_litter */
.form-container {
    padding: 20px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 450px; /* Smaller width for forms */
    width: 90%; /* Responsive */
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-top: 0; /* Or a consistent top margin */
    margin-bottom: 0.75em; /* Consistent bottom margin */
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; text-align: center; /* If most h2 are centered */ }
h3 { font-size: 1.5em; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; /* Common section heading style */ }
h4 { font-size: 1.2em; color: #007bff; /* Common card title style */}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%; /* Or calc(100% - 22px) if you prefer that specific box-sizing effect */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box; /* Important for 100% width with padding/border */
    font-size: 1em;
}
input[type="number"] { /* Specific small width for number inputs in tables */
    max-width: 120px; 
}
textarea {
    resize: vertical;
    min-height: 80px;
}
input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
    vertical-align: middle;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}
.btn-primary { background-color: #007bff; }
.btn-primary:hover { background-color: #0056b3; }
.btn-success { background-color: #28a745; }
.btn-success:hover { background-color: #218838; }
.btn-danger { background-color: #dc3545; }
.btn-danger:hover { background-color: #c82333; }
.btn-info { background-color: #17a2b8; }
.btn-info:hover { background-color: #138496; }
.btn-secondary { background-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; }

button[type="submit"] { /* Apply a default button style to submit buttons */
    /* You might want to make this more specific or use classes on buttons */
}
.btn-block { /* For buttons that take full width */
    width: 100%;
    display: block;
}



.navbar {
			display: grid;
			grid-template-columns: 1fr auto 1fr; /* Left col, auto for logo, right col */
			align-items: center; /* Vertically align items in the center of the navbar */
			background-color: #333;
			padding: 10px 20px; /* Adjust padding as needed */
			color: white;
			margin-bottom: 20px; /* Or remove if you handle spacing differently per page */
			min-height: 60px; /* Ensure a minimum height for the navbar */
		}
		

		/* Styling for Navbar Items/Sections */
		.nav-item {
			display: flex; /* Use flex for items within each grid cell for alignment */
			align-items: center;
		}

		.nav-left {
			justify-self: start; /* Align this grid cell's content to the start (left) */
		}

		.nav-center {
			justify-self: center; /* Center this grid cell (logo container) */
		}

		.nav-right {
			justify-self: end; /* Align this grid cell's content to the end (right) */
			gap: 15px; /* Space between "Welcome" and "Logout" */
		}

		/* Logo Styling */
		#navbar-logo {
			height: 40px; /* Adjust to your logo's desired height */
			width: auto;  /* Maintain aspect ratio */
			display: block; /* Removes extra space below if it's an inline element */
		}

		/* Brand/Title Styling (if you want to keep a text title) */
		.nav-brand-link {
			font-size: 24px;
			font-weight: bold;
			color: white;
			text-decoration: none;
		}
		.nav-brand-link:hover {
			color: #ddd;
		}
        .container { background-color: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.1); max-width: 900px; margin: auto; }
        h2 { text-align: center; color: #333; }
        .form-group { margin-bottom: 15px; }
        label { display: block; margin-bottom: 5px; color: #555; font-weight: bold;}
        input[type="text"], input[type="date"], textarea {
            width: calc(100% - 22px); padding: 10px; border: 1px solid #ddd; border-radius: 3px; box-sizing: border-box;
        }
        textarea { resize: vertical; min-height: 80px; }
        button { background-color: #28a745; color: white; padding: 10px 15px; border: none; border-radius: 3px; cursor: pointer; width: 100%; font-size: 16px; }
        button:hover { background-color: #218838; }
        .errors { background-color: #f2dede; color: #a94442; padding: 10px; border: 1px solid #ebccd1; border-radius: 3px; margin-bottom: 15px; }
        .errors ul { margin: 0; padding-left: 20px; }
        /* --- CRUCIAL User Menu Styles --- */
        .user-menu-container {
            position: relative; /* Needed for absolute positioning of the dropdown */
            display: inline-block;
        }
        
        .user-menu-button {
            background-color: transparent; /* Or match navbar background */
            color: white;
            padding: 8px 12px;
            font-size: 1em; /* Match other navbar text */
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
        }
        
        .user-menu-button:hover, .user-menu-button:focus {
            background-color: #555; /* Highlight on hover/focus */
            border-radius: 3px;
        }
        
        .dropdown-arrow {
            margin-left: 8px;
            font-size: 0.8em;
            transition: transform 0.2s ease-in-out; /* Optional: for arrow animation */
        }
        
        .user-dropdown-content {
            display: none; /* Hidden by default - THIS IS KEY */
            position: absolute; /* Positions the dropdown relative to user-menu-container */
            background-color: #f1f1f1; /* Lighter background for dropdown */
            min-width: 200px; /* Adjust as needed */
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1000; /* Ensure it's above other content */
            right: 0; /* Align to the right of the button */
            border-radius: 4px;
            margin-top: 5px; /* Small gap below button */
        }
        
        .user-dropdown-content a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block; /* Make links take full width for easier clicking */
            font-size: 0.95em;
            white-space: nowrap; /* Prevent text wrapping if menu items are long */
        }
        
        .user-dropdown-content a:hover {
            background-color: #ddd;
            color: #333;
        }
        
        /* Class added by JavaScript to show the dropdown */
        .show-user-dropdown {
            display: block; /* This makes the dropdown visible */
        }
        
        /* Optional: Rotate arrow when dropdown is open */
        .user-menu-button.active .dropdown-arrow { /* You'd need JS to add 'active' class to button too */
            transform: rotate(180deg);
        }
        
.navbar a.nav-link {
    color: white; /* Makes the text white */
    text-decoration: none;
    padding: 8px 12px; /* Existing padding */
}

.navbar a.nav-link:hover {
    background-color: #555; /* Existing hover effect */
    border-radius: 3px;    /* Existing hover effect */
    color: #fff; /* Ensure hover color is also visible if background changes */
}

.site-footer {
    background-color: #333; /* Dark background for the footer */
    color: #ccc; /* Light grey text */
    padding: 30px 0;
    margin-top: 40px; /* Space above the footer */
    font-size: 0.9em;
    border-top: 3px solid #007bff; /* Accent color border, adjust as needed */
}
