/* General Styling */
body {
    background-color: #000; /* Black background */
    color: #fff; /* White text for readability */
    font-family: "Courier New", Courier, monospace;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center everything */
    justify-content: flex-start; /* Keep normal flow */
    height: 100vh;
}

.search-container input {
    flex: 2;  /* Make inputs take more space */
    width: 100%; /* Ensure full use of available space */
    min-width: 500; /* Make them longer */
}


/* Terminal-style Input & Buttons */
.search-container input,
.search-container select,
.search-container button {
    background-color: #222; /* Dark input background */
    color: #fff; /* White text */
    border: 1px solid #888; /* Light gray border */
    /* padding: 8px 12px; */
    font-size: 16px;
    font-family: "Courier New", Courier, monospace;
    text-align: center;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); /* Subtle glow */
    outline: none;
}

.search-container button,
.search-container select {
    flex: 0.5 1 auto;  /* Keep them slightly smaller than input fields */
    width: 100%;
}

.search-container > * {
    flex: 1;   /* Allow flexibility in width */
    min-width: 150px; /* Prevent shrinking too much */
    height: 40px;     /* Uniform height */
    padding: 5px 10px;
    font-size: 16px;
}

/* Buttons Hover Effect */
.search-container button:hover {
    background-color: #444; /* Slightly lighter for hover effect */
    cursor: pointer;
}

/* Table Styling
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background-color: #222;
} */

/* Responsive for Small Screens */
@media (max-width: 600px) {
    .search-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .search-container > * {
        width: 100%;
    }
}

.error-box {
    background-color: #550000; /* Dark red */
    color: #ff4444; /* Bright red text */
    border: 1px solid #ff4444;
    /* padding: 8px 12px; */
    font-size: 16px;
    font-family: "Courier New", Courier, monospace;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    outline: none;
    /* width: 100%; */

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
}



.logo {
    font-family: "Courier New", Courier, monospace;
    font-size: 78px;
    font-weight: bold;
    color: #00ff00; /* Terminal green */
    text-shadow: 0 0 5px #00ff00; /* Glow effect */
    padding: 10px 20px;
}

.main-container {
    /* display: flex; */
    flex-direction: column;
    min-height: 100vh;
    /* max-width: 2000px; */
}

.logo-container {
    /* display: flex; */
    justify-content: center;  /* Center horizontally */
    align-items: center;  /* Center vertically */
    text-align: center;
    height: 100px; /* Adjust based on your layout */
    /* align-items: start; */
    /* background-color: #111; Optional: dark background */
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-width: 2000px; /* Limit max width for better proportions */
    margin: 0 auto;
}

.table-container {
    flex-grow: 1;
    overflow-y: auto; /* Force scrollbar always visible */
    overflow-x: auto;
    max-height: calc(100vh - 150px); /* Adjust 150px based on your layout */
}

.results-container {
    /* display: flex; */
    justify-content: center;  /* Center horizontally */
    align-items: center;  /* Center vertically */
    height: 100px; /* Adjust based on your layout */
    /* background-color: #111; Optional: dark background */
}

.down-container {
    /* display: flex; */

    padding: 10px;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center;
    /* position: relative; */
    /* margin-top: auto; */
    /* position: sticky;
    bottom: 0; */

    /* background-color: #111; Optional: dark background */
}



.project {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    font-weight: bold;
    color: #00ff00; /* Terminal green */
    text-shadow: 0 0 5px #00ff00; /* Glow effect */
    padding: 10px 20px;
}


#data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Courier New", Courier, monospace;
    color: #fff; /* White text */
    border: 1px solid #888; /* Light gray border */
    overflow-y: auto;
    max-height: 400px; /* Prevent it from taking too much space */
    table-layout: fixed; /* Ensures uniform column width */
    border-collapse: collapse;
}

#data-table th, #data-table td {
    border: 1px solid #888; /* Light gray border */
    padding: 8px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#data-table th {
    position: sticky;
    top: 0;
    background: #222;
    /* z-index: 10; */
    background-color: #222; /* Darker background for header */
    color: "#005500";; /* White text */
}

#data-table tbody tr:hover {
    background-color: #002200; /* Slightly lighter green hover */
    cursor: pointer;
}

/* Results */

/* Container for results */
#results-container {
    /* display: flex; */
    flex-direction: column;
    gap: 10px; /* Adds spacing between results */
    overflow-x: auto; /* Allows scrolling if needed */
}

/* Each result box */
.result-box {
    background-color: #005500; /* Dark green */
    border: none; /* No border */
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace; /* Terminal font */
    color: #fff; /* White text */
    max-width: 100%; /* Prevent expansion */
    overflow: hidden; /* Hide any excess content */
    box-sizing: border-box;
}

/* Header inside result box */
.result-box h2 {
    cursor: pointer;
    margin: 0;
    padding: 5px 0;
}

/* Details box */
.result-details {
    background-color: #1a1a1a; /* Dark grey */
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    display: none; /* Initially hidden */
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    width: 100%;
    max-width: 100%; /* Prevent it from stretching */
    word-wrap: break-word; /* Prevent text overflow */
    overflow-x: auto; /* Allow scrolling if necessary */
}

/* Preformatted text inside details */
.result-details pre {
    margin: 0;
    padding: 0;
    font-family: inherit;
    background: none;
    color: inherit;
    border: none;
}

@media (max-width: 600px) {
    .result-box {
        font-size: 14px;
    }
    
    .result-details pre {
        font-size: 14px;
        white-space: pre-wrap; /* Ensures text wraps properly */
    }
}
