body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;

}

/* Title style */
.title {
    text-align: center;
    font-size: 2rem;
    margin: 10px 0;
    color: #444;
}

/* Sidebar container */
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100px;
    left: 20px;
}

/* Button styles */
.nav-button {
    background-color: green; /* Green color */
    color: white;
    border: none;
    padding: 10px 10px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    width: 200px;
    text-align: left;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.nav-button:hover {
    background-color: #218838; /* Slightly darker green */
    transform: scale(1.05); /* Slight zoom effect */
}

.nav-button:active {
    background-color: #1e7e34; /* Even darker green for pressed state */
    transform: scale(0.95); /* Slight shrink effect */
}

.nav-button:disabled {
    background-color: #cccccc; /* Gray when disabled */
    cursor: not-allowed;
}

/* Main content area styling */
.main-content {
    text-align: center;
    position: relative;
    top: -20px; /* Moves the buttons 20px higher */
}

/* Action buttons styling */
.action-button {
    background-color: #47852a;
    color: white;
    padding: 2px 2px;
    margin: 2px;
    font-size: 16px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.action-button:hover {
    background-color: #609fbf;
    transform: scale(1.05);
}

.action-button:active {
    background-color: navy;
    transform: scale(1);
}
/* Main content area */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align everything to the left */
    padding: 5px;
}

/* Align action buttons */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 2px;
    margin-bottom: 2px; /* Space between action buttons and form */
}

/* Title (header) */
.page-title {
    align-self: flex-start; /* Align header to the left */
    font-size: 15px;
    margin-bottom: 5px; /* Space between title and form */
}

/* Form styling */
#add-dog-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Create two equal columns */
    gap: 1px; /* Space between columns */
    width: 100%;
    max-width: 800px; /* Limit form width for readability */
    margin: 0 auto; /* Center the form horizontally */
}
#dog-edit-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Create two equal columns */
    gap: 1px; /* Space between columns */
    width: 100%;
    max-width: 800px; /* Limit form width for readability */
    margin: 0 auto; /* Center the form horizontally */
}
#add-owner-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Create two equal columns */
    gap: 1px; /* Space between columns */
    width: 100%;
    max-width: 800px; /* Limit form width for readability */
    margin: 0 auto; /* Center the form horizontally */
}
#owner-edit-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Create two equal columns */
    gap: 1px; /* Space between columns */
    width: 100%;
    max-width: 800px; /* Limit form width for readability */
    margin: 0 auto; /* Center the form horizontally */
}
#owner-confirm-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Create two equal columns */
    gap: 1px; /* Space between columns */
    width: 100%;
    max-width: 800px; /* Limit form width for readability */
    margin: 0 auto; /* Center the form horizontally */
}

.form-group {
    display: flex;
    align-items: center; /* Vertically center label and input */
    margin-bottom: 1px; /* Space between form fields */
    width: 100%;
}

label {
    font-size: 12px;
    margin-right: 5px; /* Space between label and input */
    width: 150px; /* Fixed width for labels */
}

input, textarea {
    font-size: 12px; /* Matching font size for input fields */
    flex-grow: 1; /* Make inputs take up remaining space */
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

textarea {
    resize: vertical; /* Allow vertical resizing */
}

button[type="submit"],
button.delete-button {
    width: 125px;
    padding: 5px 5px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px; /* Add space between buttons */
}

button[type="submit"]:hover,
button.delete-button:hover {
    background-color: darkgreen;
}

button.delete-button {
    background-color: darkred; /* Red color for delete button */
}

button.delete-button:hover {
    background-color: red; /* Dark red for hover */
}
/* Toggle switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px; /* Makes it circular */
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%; /* Makes it circular */
}

input:checked + .slider {
    background-color: #4CAF50; /* Green when toggled */
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.welcome-message {
    text-align: center; /* Center text horizontally */
    margin: 50px auto;  /* Add spacing from the top */
    max-width: 600px;   /* Limit the width of the message */
    padding: 20px;
    background-color: #f9f9f9; /* Light background for contrast */
    border: 1px solid #ddd;    /* Border for emphasis */
    border-radius: 10px;       /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.welcome-message h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.welcome-message p {
    font-size: 16px;
    color: #666;
}
/* Table styling */
table {
    width: 90%;
    margin: 20px auto; /* Center table */
    border-collapse: collapse; /* Remove gaps between table cells */
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden; /* Ensure rounded corners apply */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Add bottom border */
    font-size: 14px;
}

th {
    background-color: #7cb3cf; /* Light blue for header */
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

td {
    color: #555; /* Darker text color for contrast */
}

/* Alternate row colors */
tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

tbody tr:nth-child(even) {
    background-color: #f1f1f1;
}

/* Hover effect on rows */
tbody tr:hover {
    background-color: #e9ecef;
}

/* Center title text */
h1 {
    color: #444;
    font-size: 2rem;
    text-align: center;
    margin: 0;
}
h2 {
    color: #444;
    font-size: 2rem;
    text-align: center;
    margin-left: 150px;
}
.filter-row input, .filter-row select {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    font-size: 14px;
}
.filter-row {
    background-color: #f1f1f1;
}
.header_a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }
		
.button-container {
    display: flex; 
	width: 100%;
    max-width: 800px;
    justify-content: space-between; /* Align buttons to the left */
    margin-top: 15px; /* Space between the form and buttons */
}
.confirm-button {
    width: 125px;
    padding: 5px 5px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px; 
}

.confirm-button:hover {
    background-color: darkgreen; /* Darker green on hover */
}

.container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	padding: 20px;
}


.login-form {
	background: #dbeafe;
	padding: 20px;
	border-radius: 10px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
	display: flex;
	flex-direction: column;
	align-items: stretch; /* Ensures full width inputs */
}



.login-form h2 {
	margin-bottom: 20px;
	text-align: center;
	margin-left: 0; /* Override the global margin */
}


.login-form input,
.login-form button {
	width: 100%;
	padding: 10px 10px;
	margin: 0px 0;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	box-sizing: border-box; 
}

.login-form button {
	background: #1db954;
	color: white;
	cursor: pointer;
}

.login-form label {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0px;
	color: black;
	margin: 0px 0;
}

.login-form input[type="checkbox"] {
	transform: scale(1.2);
}

.error {
	color: red;
	margin-top: 10px;
	font-size: 0.9em;
}

