body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0; /* Light grey background for the whole page */
}

.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><text x="200" y="200" dominant-baseline="middle" text-anchor="middle" font-size="20" fill="rgba(0, 0, 0, 0.15)" font-family="Arial, sans-serif" transform="rotate(-45, 200, 200)">Buffalo Biodiesel Inc.</text></svg>');
    background-repeat: repeat;
    background-size: 350px 350px;
    pointer-events: none;
    opacity: 0.5;
    z-index: 5;
}

h1 {
    color: #32551b;
    margin-top: 10px; 
    text-align: center;
}

#logo {
    display: block;
    margin: 20px auto;
    max-width: 300px;
    height: auto;
}

form {
    background-color: #ffffff; 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Slightly darker shadow for better contrast */
    max-width: 800px;
    margin: 20px auto;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap; 
}

label {
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
    min-width: 160px; /* Ensures labels have enough space */
}

input[type="text"], input[type="file"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-width: 80%; /* Prevents fields from becoming too wide on large screens */
}

input[type="submit"] {
    width: auto; /* Takes the full width of the form */
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    margin-left: auto; 
    margin-right: auto;
    display: block; /* Makes it block level so width: 100% takes effect */
}

/* Additional styles to improve responsiveness and appearance */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    label {
        margin-bottom: 5px; /* Adds space between label and input on small screens */
        margin-right: 0;
    }

    input[type="text"], input[type="file"], input[type="submit"] {
        width: 100%; 
        max-width: none; 
    }
}

/*Table */
table {
    width: 90% !important; /* Adjusts the table width */
    margin: 20px auto; /* Centers the table and adds vertical spacing */
    border-collapse: collapse; /* Removes space between borders */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adds a subtle shadow to the table */
    background-color: #fff; /* White background for readability */
}

th, td {
    text-align: left; /* Aligns text to the left */
    padding: 12px; /* Adds padding inside cells */
    border-bottom: 1px solid #ddd; /* Adds a light border between rows */
    border-right: 1px solid #ddd;
}


th {
    background-color: #32551b; /* Green background for headers */
    color: white; /* White text for headers */
}

tr:hover {
    background-color: #f5f5f5; /* Light grey background on row hover */
}

tr:nth-child(even) {
    background-color: #f9f9f9; /* Zebra striping for rows */
}

a {
    color: #32551b; 
    text-decoration: none; 
}

a:hover {
    text-decoration: underline; 
}

/*search page link stylng*/
.header-links {
    text-align: right;
    margin: 20px;
}

.button-link {
    background-color: #4CAF50; 
    color: white; 
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    display: inline-block;
}

.button-link:hover {
    background-color: #367B3A; 
}

/*delete button styling*/
.delete-btn {
    background-color: red;   /* Red background */
    color: white;            /* White text */
    border: none;            /* No border */
    padding: 5px 10px;       /* Padding around the text */
    border-radius: 5px;      /* Rounded corners */
    cursor: pointer;         /* Pointer cursor on hover */
}

.delete-btn:hover {
    background-color: darkred;  /* Darker red when hovered */
}
