/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fc;  /* Light background for a fresh look */
    color: #333;
    line-height: 1.7;
    padding: 5px;
}

h1, h2 {
    font-weight: bold;
    text-align: center;
}

h1 {
    color: #0277bd; /* Blue shade for emphasis */
    font-size: 2.8em;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

h2 {
    color: #0c1aff;
    font-size: 2.1em;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Header Styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0277bd;
    padding: 10px 40px;
    color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.header img {
    max-width: 90px;
}

.sub-header {
    font-size: 1.8em;
    text-align: center;
    color: #ffffff;
}

/* Navigation Styling */
.navbar {
    display: flex;
    justify-content: space-evenly;
    background-color: #ffffff;
    padding: 2px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
    margin-top: 0px;
    border-radius: 12px;
}

.nav-link {
    color: #0277bd;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-link:hover {
    background-color: #0288d1;
    color: #fff;
    transform: scale(1.1);
}

/* Form Styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1 1 22%;
    min-width: 240px;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #0c1aff;
}

input, select {
    width: 100%;
    padding: 15px;
    margin-top: 8px;
    border: 1px solid #0c1aff;
    border-radius: 10px;
    font-size: 1.1rem;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
    align-items: center;
    justify-content: center;
}

input:focus, select:focus {
    border-color: #0288d1;
    outline: none;
}

/* Buttons */
button {
    background-color: #0288d1;
    color: white;
    border: none;
    padding: 14px;
    width: 20%;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease;
}

button:hover {
    background-color: #01579b;
    transform: scale(1.05);
}

/* Wrapper for Results Table with Scroll */
#resultTableWrapper {
    max-height: 500px;  /* Increased height for better scroll experience */
    overflow-y: auto;
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0px;
}

/* Table Styling */
#resultTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    table-layout: auto;
}

#resultTable th, #resultTable td {
    padding: 8px;
    text-align: left;
    border: 1px solid #0288d1;
}

#resultTable th {
    background-color: #f2f2f2;
    font-weight: 600;
    text-transform: uppercase;
    color: #0277bd;
    position: sticky;
    top: 0;
    z-index: 2;
}

#resultTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#resultTable tbody tr:hover {
    background-color: #e3f2fd;
    cursor: pointer;
}

#resultTable tbody tr td button {
    background-color: #0288d1;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#resultTable tbody tr td button:hover {
    background-color: #01579b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .form-group {
        flex: 1 1 48%;
    }

    button {
        width: 100%;
        margin-bottom: 12px;
    }

    #resultTable th, #resultTable td {
        padding: 12px;
    }

    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sub-header {
        font-size: 1.6em;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    margin-top: 25px;
    text-align: center;
}

.loading-spinner.active {
    display: block;
}

.loading-spinner img {
    width: 60px;
}

/* Modal Window (for Plot Details) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    width: 65%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close {
    background-color: red;
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}


