body {
    background-color: #000;
    font-family: Arial, sans-serif;
    color: #fff;
    margin: 20px;
}

/* Top Menu */
header {
    background-color: #1e1e1e;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

header h1 {
    color: #fff;
    margin: 0;
}

nav a {
    color: #ddd;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
}

nav a:hover {
    color: #f1f1f1;
}

/* Main Layout */
.main-container {
    display: flex;
    flex-grow: 1;
    position: relative;
    flex-wrap: wrap; /* Allow wrapping for mobile */
}

/* Results Box */
#results-box {
    flex: 1 0 75%;
    height: 25vh;
    background-color: #1e1e1e;
    padding: 15px;
    overflow-y: auto;
    border-top: 2px solid #333;
}

/* Side Pane - Toolbox */
#side-pane {
    width: 10%;
    background-color: #222;
    padding: 20px;
    box-sizing: border-box;
    border-left: 2px solid #333;
    height: calc(100% - 60px); /* Full height minus header */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: sticky;
    top: 60px;
}

#side-pane h3 {
    color: #f1f1f1;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #1a1a1a;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: #333;
    color: #ffcc00;
    font-size: 16px;
}

tr:hover {
    background-color: #444;
}

td {
    color: #ddd;
}

caption {
    caption-side: top;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
}

/* Search Box */
#searchBox {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
}

#searchBox:focus {
    outline: 2px solid #ffcc00;
}

/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .main-container {
        flex-direction: column; /* Stack elements vertically */
    }

    #results-box {
        flex: 1 0 100%; /* Full width on mobile */
        height: 40vh; /* Adjust height for mobile */
    }

    #side-pane {
        width: 100%; /* Full width on mobile */
        height: auto;
        position: relative;
        border-left: none;
        border-top: 2px solid #333; /* Add top border instead */
    }

    table {
        font-size: 14px; /* Reduce font size for mobile */
    }

    th, td {
        padding: 8px; /* Reduce padding */
    }

    /* Adjust header text size */
    header h1 {
        font-size: 20px;
    }

    /* Adjust search box on mobile */
    #searchBox {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    nav a {
        font-size: 14px; /* Smaller font for small screens */
        margin: 0 10px;
    }

    table {
        font-size: 12px; /* Smaller font size for very small screens */
    }

    th, td {
        padding: 6px; /* Further reduce padding for very small screens */
    }

    #results-box {
        height: 50vh; /* Adjust height for smaller screens */
    }

    header h1 {
        font-size: 18px; /* Smaller font size for very small screens */
    }
}
