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, .theme-btn {
    padding: 12px 24px;
    background-color: #90EE90;
    color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#search-button:hover, #submit-button:hover, .theme-btn: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;
    word-break: break-word;
}

th {
    background-color: #252525;
    font-weight: 600;
}

tr:hover {
    background-color: #2a2a2a;
}

#submit-table {
    table-layout: fixed;
}

#submit-table th:nth-child(1) { width: 60%; }
#submit-table th:nth-child(2) { width: 25%; }
#submit-table th:nth-child(3) { width: 15%; }

#submit-table td:first-child {
    word-break: break-all;
}

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: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;
    }
}

.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;
}

/* API Page Styles */
.api-endpoint {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.api-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.method {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method.get { background-color: rgba(144, 238, 144, 0.15); color: #90EE90; border: 1px solid #90EE90; }
.method.post { background-color: rgba(238, 212, 144, 0.15); color: #eed490; border: 1px solid #eed490; }

.endpoint-url {
    font-family: monospace;
    font-size: 1.1rem;
    color: #e0e0e0;
    word-break: break-all;
}

.api-section-title {
    margin-top: 0;
    color: #fff;
    font-size: 1.2rem;
}

.param-list {
    list-style: none;
    padding: 0;
}

.param-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    border-left: 2px solid #90EE90;
}

.param-name {
    font-weight: bold;
    color: #90EE90;
    font-family: monospace;
}