body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px 0; /* Add padding for better spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
}

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

h1 {
    color: #2c5188;
    margin-top: 10px; /* Increased margin to push the form down a bit */
    text-align: center;
}

h4, h2{
    color: #2c5188;
}

.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;
}

.container {
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: left; /* Align text to the left */
}

.containerCS {
    width: 99%;
    max-width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: left; /* Align text to the left */
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.form-group label {
    margin-right: 10px;
    font-weight: bold;
    flex-basis: 26%; /* Adjusted for tighter fit in the form */
    text-align: right;
    display: inline-block; 
}

.form-group input, .form-group select, .form-group textarea {
    flex-grow: 1;
    flex-basis: 65%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* General button styles applied to all form buttons */
.form-group button {
    width: auto; /* Change this to a fixed width if necessary or adjust as below */
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    display: block; 
    margin: 10px auto; 
    background-color: #007bff; 
}

/* Specific styles for the 'Submit' button to ensure it matches others in size */
#submit-btn, #search-btn { 
    flex: 1; 
    margin: 0 5px; 
    background-color: #007bff;
}

/* Hover effects for all buttons, adjust as needed */
.form-group button:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

.container-group {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.container-group .form-group {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container-group .form-group input, 
.container-group .form-group select {
    flex-basis: 26%;
}

.container-group .button-group {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 10px;
}

.container-group .button-group button {
    margin-right: 10px;
}

.remove-btn {
    background-color: #dc3545;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.remove-btn:hover {
    background-color: #c82333;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.add-btn {
    background-color: #4CAF50;  /* Green background */
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;  /* White text */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 128, 0, 0.3);  /* Darker green shadow */
}

.add-btn:hover {
    background-color: #45a049;  /* Slightly darker green on hover */
    box-shadow: 0 2px 8px rgba(0, 128, 0, 0.4);  /* Even darker green shadow for 3D effect */
}

.button-group {
    display: flex;
    justify-content: space-between; /* This will place one button on the left and the other on the right */
    width: 100%;
    margin-top: 10px;
}

.add-btn, .remove-btn  {
    flex: 1; 
    margin: 0 5px; 
}

.centered-button {
    display: block; 
    width: 50%; 
    margin: 0 auto; 
}

.competitor-group {
    margin-bottom: 20px; /* Space between competitor groups */
}

.competitor-group .form-group {
    margin-bottom: 10px; /* Space between fields within a group */
}

.add-competitor-btn {
    display: inline-block;
    margin-bottom: 20px; /* Space below the button */
    padding: 10px 20px; /* Padding around the text */
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* Remove default border */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners for better appearance */
    text-align: center;
}

.add-competitor-btn:hover {
    background-color: #45a049; /* Darker green on hover */
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
}

table th {
    background-color: #f8f8f8;
    text-align: left;
}

@media (max-width: 600px) {
    table th, table td {
        padding: 8px;
    }
}


/*Success Page*/
.success-message, .error-message {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-align: center;
}

.success-message h1 {
    color: #4CAF50;
}

.error-message h1 {
    color: #FF0000;
}

.success-message, .error-message p {
    font-size: 18px;
    color: #333;
}

.success-message, .error-message a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: bold;
}


/* Styles for the Theft Form link */
#theftLink {
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: left;
}

#theftLink a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

#theftLink a:hover {
    background-color: #0056b3;
}

/* Styles for the submission status */
.theft-status {
    font-size: 14px;
    color: green;
    font-weight: bold;
    margin-top: -10px;
    margin-bottom: 20px;
    text-align: left;
}

/* prechecklist styles */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates two columns of equal width */
    gap: 10px; /* Adds space between the columns */
}


/* Dashboard Styling */
ul.form-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 60px;  /* Space between form links */
}

ul.form-links li {
    margin: 0;  /* Remove margin to use gap instead */
}

ul.form-links a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    display: inline-block;  /* Ensure links stay in a single line */
}

ul.form-links a:hover {
    background-color: #0056b3;
}

/* Styles for the theft link section */
.theft-link {
    margin-top: 20px;
    text-align: right;
}

.theft-link a {
    text-decoration: none;
    color: #ff5733;
    font-weight: bold;
    padding: 10px 15px;
    background-color: #ffcccc;
    color: black;
    border-radius: 4px;
    display: inline-block;  /* Ensure the link stays inline */
}

.theft-link a:hover {
    background-color: #ff9999;
}

/* Styles for the quote section */
.quote {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #007bff;
    font-style: italic;
    text-align: center;
    color: #555;
}

.quote p {
    margin: 0;
    font-size: 18px;
}

/* Styles for the approve and decline buttons */
.btn-approve {
    background-color: green;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
}

.btn-decline {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
}

.btn-approve:hover {
    background-color: darkgreen;
}

.btn-decline:hover {
    background-color: darkred;
}

.btn-delete {
    background-color: rgb(255, 166, 0);
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
}

.btn-delete:hover {
    background-color: rgb(139, 79, 0);
}

/* Custom styles for the high priority button */
.high-priority {
    background-color: #f39c12; /* Bright yellow */
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}
.high-priority:hover {
    background-color: #e67e22; /* Darker shade of yellow */
}
/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    padding-top: 60px; 
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.pagination {
    margin-top: 20px; /* Add space between table and pagination */
    text-align: right; /* Align pagination to the right */
}
.pagination button {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    border: none; /* Remove default border */
    padding: 10px 15px; /* Add some padding */
    margin-right: 5px; /* Space between buttons */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners */
    font-size: 14px; /* Font size */
}
.pagination button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}
.pagination button:disabled {
    background-color: #cccccc; /* Grey background for disabled buttons */
    cursor: not-allowed; /* Not-allowed cursor for disabled buttons */
}
#resultsTable 
{
    display: none; /* Initially hide the table */
}

/* competitor suggestion */
.suggestions {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.suggestions a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}
.suggestions a:hover {
    background-color: #f1f1f1;
}

/*Search Button in Dashboard*/
.search-button-container {
    text-align: right;
    margin-top: -20px;
    margin-bottom: 20px;
}

.search-button-container button {
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.search-button-container button:hover {
    background-color: #0056b3;
}

.search-button-container button:active {
    background-color: #004080;
}