/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif; /* Changed from 'Orbitron' */
    background: #0d1b2a;
    color: #e0e1dd;
    line-height: 1.6;
    padding: 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: #00b4d8;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 1.8em;
}

h3 {
    font-size: 1.4em;
}

p {
    margin-bottom: 15px;
}

/* Header */
header {
    text-align: center;
    padding: 20px;
    background: #1b263b;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
    margin-bottom: 20px;
}

/* Navigation */
nav {
    background: #415a77;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: #e0e1dd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #00b4d8;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
}

section {
    background: #1b263b;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.endpoint {
    margin-bottom: 30px;
}

code, pre {
    background: #0d1b2a;
    padding: 5px 10px;
    border-radius: 5px;
    color: #90e0ef;
    font-family: 'Share Tech Mono', monospace;
}

pre {
    padding: 15px;
    overflow-x: auto;
    white-space: pre-wrap;
    border-left: 4px solid #00b4d8;
}

/* Links */
a {
    color: #90e0ef;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Button */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00b4d8;
    color: #0d1b2a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.button:hover {
    background: #90e0ef;
    text-decoration: none; /* Override general a:hover */
}

/* Lists */
ul {
    margin-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background: #415a77;
    border-radius: 5px;
    margin-top: 20px;
}

/* Sci-Fi Accents */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://cdn.robertsspaceindustries.com/static/images/noisebg.gif') repeat;
    opacity: 0.05;
    z-index: -1;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #1b263b;
    border: 1px solid #415a77;
    border-radius: 5px;
    overflow: hidden; /* Ensures rounded corners clip content */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #415a77;
}

th {
    background: #00b4d8;
    color: #0d1b2a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    color: #e0e1dd;
}

tr:nth-child(even) {
    background: rgba(65, 90, 119, 0.2); /* Subtle alternating row color */
}

tr:hover {
    background: rgba(0, 180, 216, 0.1); /* Hover effect */
    transition: background 0.2s ease;
}

td img {
    width: 32px;
    height: 32px;
    border-radius: 50%; /* Circular avatars */
    vertical-align: middle;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        padding: 8px 10px;
    }
}

/* Search Form */
.page-search, #search-form {
    padding: 10px;
    background: #1b263b;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#search-query {
    padding: 8px;
    background: #0d1b2a;
    border: 1px solid #415a77;
    color: #e0e1dd;
    border-radius: 5px;
    width: 300px;
    font-family: sans-serif; /* Changed from 'Orbitron' */
    font-size: 1em;
}

#search-query:focus {
    outline: none;
    border-color: #00b4d8;
    box-shadow: 0 0 5px rgba(0, 180, 216, 0.5);
}

button[type="submit"] {
    padding: 8px 15px;
    background: #00b4d8;
    border: none;
    color: #0d1b2a;
    border-radius: 5px;
    font-family: sans-serif; /* Changed from 'Orbitron' */
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #90e0ef;
}

/* Responsive Adjustments for Search Form */
@media (max-width: 600px) {
    .page-search, #search-form {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }
    #search-query {
        width: 100%;
        margin-bottom: 10px;
    }
}
