body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

nav {
    background-color: #1e1e1e;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e0e0e0;
}

.nav-links a, .brand a, a {
    color: #b0b0b0;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffffff;
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-section, .submit-section {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

#search-input, #submit-input, .stat-card {
    flex-grow: 1;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #333;
    color: #000000;
    border-radius: 4px;
    font-size: 1rem;
}

#search-button, #submit-button {
    padding: 12px 24px;
    background-color: #90EE90;
    color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#search-button:hover, #submit-button:hover {
    background-color: #76c776;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: #252525;
    font-weight: 600;
}

tr:hover {
    background-color: #2a2a2a;
}


section {
    margin-top: 0;
    padding-top: 1rem;
}

section h2:first-child {
    margin-top: 0;
}

.contact-container {
    margin-top: 1rem;
}

.contact-link {
    color: #90EE90;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.theme-btn {
background-color: #007bff;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.theme-btn:hover {
background-color: #0056b3;
}
.theme-btn:disabled {
background-color: #cccccc;
cursor: not-allowed;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.site-logo {
  display: block;
  margin: 0 auto 10px auto; /* Centers the image horizontally and adds bottom spacing */
  width: 50%;               /* Sets the width to 50% of the content area */
}

.nav-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.logo-link {
    margin-left: 0;
    display: block;
}

@media screen and (max-width: 768px) {
    nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
        border-top: 1px solid #333;
        padding-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        position: relative;
        z-index: 10;
    }

    .nav-links a {
        margin-left: 0;
    }

    main {
        margin: 1rem auto;
    }

    .search-section, .submit-section {
        flex-direction: column;
    }

    table {
        display: table;
        width: 100%;
    }

    th, td {
        white-space: normal;
        padding: 8px 5px;
        font-size: 14px;
    }

    td {
        word-break: break-word;
    }

    #submit-table td:first-child {
        word-break: break-all;
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.results-title {
    margin: 0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

.sort-icon {
    margin-left: 5px;
    opacity: 0.5;
}

th.sortable.active .sort-icon {
    opacity: 1;
    color: #90EE90;
}