
/* Reset default margin and padding */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Top navigation bar styles */
.navbar {
    background: linear-gradient(to left, #38a169, #ffffff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px; /* Ensure the navbar has a consistent height */
    z-index: 10;
}


.navbar a {
    color: white;
    text-align: center;
    padding: 10px;  /* Reduced padding between links */
    text-decoration: none;
    font-size: 17px;
}

.navbar a:hover {
    background-color: whitesmoke;
    color: black;
}

.navbar a.active {
    background-color: whitesmoke;  /* Green background for active link */
    color: black;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    padding-left: 30px;
}

/* Page container to hold all content */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 200px; /* Adjusted padding to accommodate navbar height */
}

/* Form container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 20px; */
    text-align: center;
}

/* Flexbox for form inputs in a single row */
.form-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-row input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: auto; /* Adjusted width to maintain consistency */
}

.form-row button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgb(55, 182, 170);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 120px; /* Ensured button width is consistent */
}

.form-row button:hover {
    background-color: rgb(34, 139, 230);
}

/* Loading spinner styles */
.spinner {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: red;
    margin-top: 20px;
}

/* Table container for horizontal and vertical scrolling */
.table-container {
    max-height: 400px;
    /* margin-top: 20px; */
    text-align: left; /* Align table content to the left */
}

/* Table styles */
table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: rgb(55, 182, 170);
    color: white;
}

tr:hover {
    background-color: #aaa9a9;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}
tr:nth-child(odd) {
    background-color: #f8f3f3;
}

/* Download icons */
.icon {
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
    color: #38a169;
}

.icon:hover {
    color: #2b6e4f;
}

.icon-container {
    display: flex;
    justify-content: flex-start;
    align-items: left;
    /* margin-bottom: 5px; */
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;  /* Ensure there's spacing between the dropdowns */
}


/* Common styling for both dropdowns (Material Search and Plant Select) */
select,.select2-container--default .select2-selection--single {
    width: 700px;  /* Set uniform width for both dropdowns */
    height: 33px;  /* Set uniform height */
    padding: 8px;  /* Add padding for aesthetics */
    font-size: 16px;  /* Consistent font size */
    border: 1px solid #ccc;  /* Add border for better visibility */
    border-radius: 4px;  /* Rounded corners for better look */
    box-sizing: border-box;  /* Ensure padding and borders are respected */
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row input[type="text"], .form-row button {
        width: 100%; /* Full width for mobile */
    }

    table {
        min-width: 800px;
    }
}
