html { background: #0a0a0a; }
body { background: transparent; }

#stars {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    display: block;
    pointer-events: none;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #0f0;
    padding: 50px 30px;
    padding-top: 100px;
}

body.no-scroll {
    overflow: hidden;
}

.navbar {
    background-color: rgba(10,10,10,0.85);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,255,0,0.25);
    padding: 15px 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 14px rgba(0, 255, 0, 0.15);
}

.navbar-brand {
    color: #0f0;
    text-shadow: 0 0 8px rgba(0,255,0,0.5);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar-brand.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-close:focus {
    outline: none;
    box-shadow: none;
}

.spinner-border.custom-spinner {
    color: #0f0;
}

.modal-content {
    padding: 10px;
    background: #0d0d0d;
    color: #0f0;
    border: 1px solid rgba(0,255,0,0.35);
    box-shadow: 0 0 25px rgba(0,255,0,0.2);
}

.modal-dialog {
    margin: 20px;
    max-width: 100%;
    max-height: 80vh;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

#apiQueryInputContainer input, #searchInput {
    transition: outline 0.3s ease;
}

#apiQueryInputContainer input:focus, #searchInput:focus {
    outline: 2px solid #0f0 !important;
    border: none;
    box-shadow: none;
}

#apiResponseContent, #apiEndpoint {
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#apiResponseContent::-webkit-scrollbar {
    display: none;
}

#apiLinks a {
    display: block;
    text-decoration: underline;
    margin-bottom: 0.3rem;
}

#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    color: #0f0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

#nameContainer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

#name {
    color: #0f0;
    text-shadow: 0 0 10px rgba(0,255,0,0.5);
    font-size: 32px;
    line-height: 1;
    z-index: 2;
}

#version {
    background-color: #0f0;
    color: #000;
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 100px;
    white-space: nowrap;
}

.spinner-wrapper {
    text-align: center;
}

.hero-section {
    padding: 20px 25px;
    background-color: rgba(15,15,15,0.8);
    color: #0f0;
    border: 1px solid rgba(0,255,0,0.3);
    box-shadow: 0 0 12px rgba(0,255,0,0.12);
    border-radius: 10px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-section > div {
    width: 70%;
}

.hero-section .text-muted {
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.2;
}

.lead {
    font-size: 15px;
    color: #0c0;
}

.btn-dark {
    background-color: #0f0;
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0,255,0,0.4);
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.param-container .form-control:focus {
    border-color: #0f0;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 0, 0.25);
}

@media screen and (min-width: 768px) {
    .modal-dialog {
        padding: 180px;
        max-width: 100%;
        max-height: 60vh;
    }
}

@media screen and (min-width: 1200px) {
    .modal-dialog {
        padding: 180px;
        max-width: 100%;
        max-height: 60vh;
    }
}

/* ---- dark theme extras ---- */
#searchInput, #apiQueryInputContainer input {
    background: #111;
    color: #0f0;
    border: 1px solid rgba(0,255,0,0.35);
}
#searchInput::placeholder, #apiQueryInputContainer input::placeholder { color: #0a0; }
.modal-header, .modal-footer { border-color: rgba(0,255,0,0.2); }
.btn-close { filter: invert(1) sepia(1) saturate(8) hue-rotate(75deg); }
.text-muted { color: #0a0 !important; }
.category-header { color: #0f0; text-shadow: 0 0 8px rgba(0,255,0,0.4); }
