/* General styling for the page */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #333;
    text-align: center;
}

/* Styling for the lookup form */
.lookup-form {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.lookup-form input, .lookup-form select, .lookup-form button {
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.lookup-form button {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

.lookup-form button:hover {
    background-color: #45a049;
}

/* Styling for result and history */
.result, .history {
    margin-top: 20px;
}

/* Styling for tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Styling for the result and history badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cached-result {
    background-color: #007bff;
    color: #fff;
}

.new-result {
    background-color: #28a745;
    color: #fff;
}

/* Loading and error messages */
#result p, #history p {
    font-style: italic;
    color: gray;
}

/* Highlighting errors */
#error {
    color: red;
    font-weight: bold;
}

/* Styling for the page header */
header {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

footer {
    text-align: center;
    padding: 10px;
    color: #888;
    font-size: 12px;
}
