/* ====================== */
/* ==== GLOBAL STYLES ==== */
/* ====================== */

body {
    font-family: 'Poppins', sans-serif;
    color: #1A1A1A; /* Teks sangat gelap */
    padding: 30px 20px;
    padding-top: 80px;
    background-color: #F8F9FA; /* Latar belakang sangat terang, bersih */
}

body.no-scroll {
    overflow: hidden;
}

/* ====================== */
/* ==== NAVBAR ==== */
/* ====================== */

.navbar {
    background-color: white;
    padding: 12px 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #EAEAEA; /* Garis bawah halus */
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: none;
}

.navbar-brand {
    color: #1A1A1A;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-weight: 600;
    font-size: 1.3rem;
}

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

#versionHeader {
    background-color: #000000 !important;
    font-weight: 500;
}

/* ====================== */
/* ==== HEADER & LINKS ==== */
/* ====================== */

#dynamicImage {
    margin-bottom: 25px !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

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

#name {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: #1A1A1A;
    margin-right: 10px;
}

#version {
    background-color: #333;
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 100px;
    white-space: nowrap;
}

#description {
    font-size: 17px;
    color: #6A6A6A;
    margin-bottom: 30px !important;
    line-height: 1.5;
}

#apiLinks a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    margin-bottom: 5px !important;
    display: block;
}

#apiLinks a:hover {
    color: #000000;
    text-decoration: underline;
}

/* ====================== */
/* ==== SEARCH BAR ==== */
/* ====================== */

.search-bar {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 16px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.search-bar::placeholder {
    color: #999;
}

.search-bar:focus {
    background: #FFF;
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15); /* Ring fokus hitam elegan */
}

.container .search-bar {
    margin-top: 10px;
    margin-bottom: 25px;
}

/* ====================== */
/* ==== API LIST ITEMS ==== */
/* ====================== */

.category-header {
    font-size: 26px;
    font-weight: 700;
    color: #1A1A1A;
    margin-top: 35px;
    margin-bottom: 20px !important;
}

.hero-section {
    padding: 18px 25px;
    background-color: #FFFFFF;
    border-radius: 10px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #E0E0E0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.hero-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #333; /* Border menjadi gelap saat hover */
}

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

.hero-section h5 {
    font-size: 17px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.hero-section .text-muted {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.btn-dark {
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-dark:hover {
    background-color: #333333;
}

.btn-dark:active {
    transform: scale(0.98);
}

/* ====================== */
/* ==== MODAL STYLES ==== */
/* ====================== */

.modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 15px;
}

.modal-header {
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-desc {
    color: #888 !important;
}

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

#apiQueryInputContainer input {
    border-radius: 8px;
    border: 1px solid #31C5E3;
    padding: 10px 15px;
}

#apiQueryInputContainer input:focus, .form-control:focus {
    outline: 3px solid #000 !important;
    border-color: #000;
    box-shadow: none;
}

#apiEndpoint, #apiResponseContent {
    background-color: #0A0A0A; 
    color: #000000;
    padding: 15px;
    border-radius: 8px;
    border: none;
    overflow-x: auto; 
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Loading Spinner */
.spinner-border.custom-spinner {
    color: #000;
}

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

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