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

body {
    font-family: sans-serif;
    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: 1400px;
    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;
}

.button-green {
    background: #2a9d8f;
}

.button-green:hover {
    background: #48c9b0;
}

.button-blue {
    background: #00b4d8;
}

.button-blue:hover {
    background: #90e0ef;
}

.button-red {
    background: #e63946;
}

.button-red:hover {
    background: #f76c6c;
}

/* 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;
}

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);
}

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

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

/* Form Styles */
.config-form {
    background: #1b263b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #e0e1dd;
    margin-bottom: 5px;
    font-weight: 500;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    color: #e0e1dd;
    font-weight: 500;
}

.checkbox-label input {
    margin-right: 8px;
}

/* Alert Styles */
.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.alert-success {
    background: #2a9d8f;
    border: 1px solid #48c9b0;
    color: #e0e1dd;
}

.alert-warning {
    background: #e63946;
    border: 1px solid #f76c6c;
    color: #e0e1dd;
}

/* Dropdown Styles */
select {
    background: #0d1b2a;
    border: 1px solid #415a77;
    color: #e0e1dd;
    border-radius: 5px;
    padding: 8px;
    width: 100%;
    font-family: sans-serif;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

select option {
    background: #1b263b;
    color: #e0e1dd;
}

/* Input Styles */
input[type="text"], input[type="email"], input[type="password"] {
    background: #0d1b2a;
    border: 1px solid #415a77;
    color: #e0e1dd;
    border-radius: 5px;
    padding: 8px;
    width: 100%;
    font-family: sans-serif;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #00b4d8;
    box-shadow: 0 0 5px rgba(0, 180, 216, 0.5);
}

/* Checkbox Styles */
input[type="checkbox"] {
    background: #0d1b2a;
    border: 1px solid #415a77;
    color: #e0e1dd;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background: #00b4d8;
    border-color: #00b4d8;
}

/* Button Styles */
button {
    padding: 8px 15px;
    background: #00b4d8;
    border: none;
    color: #0d1b2a;
    border-radius: 5px;
    font-family: sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #90e0ef;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        padding: 8px 10px;
        min-width: 120px;
    }
    select, input[type="text"], input[type="email"], input[type="password"] {
        font-size: 0.9em;
        padding: 6px;
    }
    button {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}

/* 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;
    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;
    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;
    }
}