body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

h1 {
    text-align: center;
    margin-top: 20px;
    font-weight: 400;
    color: #ffffff;
}

.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.search-container input {
    max-width: 33%;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    width: 300px;
    background-color: #1e1e1e;
    color: #ffffff;
}

.search-container input:focus {
    outline: 2px solid #6200ea;
}

.search-container button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #6200ea;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-container button:hover {
    background-color: #7c4dff;
}

.tabs {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tab-buttons button {
    background-color: #1e1e1e;
    border: none;
    padding: 0px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #bbbbbb;
    font-weight: bolder;
    padding-left: 0.5em;
    font-size: 1em;
    transition: background-color 0.2s, color 0.2s;
}

.tab-buttons button.active {
    background-color: #2a2a2a;
    color: #ffffff;
}

.tab-buttons button:hover {
    background-color: #2a2a2a;
}

.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 100%;
    background-color: #ff5252;
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    /* bigger X */
    border-radius: 0 4px 4px 0;
    /* rounded right side */
    cursor: pointer;
    transition: background 0.2s;
}

.close-btn:hover {
    background-color: #ff1744;
}

.tab-content {
    display: none;
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 0 6px 6px 6px;
    border: 1px solid #333;
    margin-top: -1px;
}

.tab-content.active {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: left;
}

th {
    background-color: #2a2a2a;
}

tr:hover {
    background-color: #2a2a2a;
}

.fav-cell {
    cursor: pointer;
    user-select: none;
    text-align: center;
    width: 1.5em;
}

.fav-cell .star {
    font-size: 1.5em;
    color: #888;
}

.fav-cell.favorited .star {
    color: #FFD700;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff50;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.table-nav button:hover {
    background-color: #333;
}

#tabButtons button.active-tab {
    background-color: #333;
    /* darker for active tab */
    color: #fff;
    border-bottom: 2px solid #FFD700;
}

.table-nav {
    margin-top: 8px;
    display: flex;
    gap: 4px;
}

.table-nav button {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
}

.table-nav button.active-page {
    background-color: #444;
    color: #FFD700;
    font-weight: bold;
}

table th:last-child,
table td:last-child {
    text-align: right;
    word-break: break-word;
}

.version-info {
    position: relative;
    display: inline-block;
    cursor: help;
    font-size: 0.85em;
    color: #666;
}

.version-tooltip {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;

    background-color: #2b2b2b;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    line-height: 1.4;
    z-index: 100;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Show ONLY on hover */
.version-info:hover .version-tooltip {
    opacity: 1;
    visibility: visible;
}

#versionSelect {
    appearance: none;
    /* remove native arrow */
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 10px 16px 10px 12px;
    font-size: 1em;
    border-radius: 8px;
    border: none;

    background-color: #1e1e1e;
    color: #ffffff;

    cursor: pointer;
    min-width: 6em;

    background-image:
        linear-gradient(45deg, transparent 50%, #bbbbbb 50%),
        linear-gradient(135deg, #bbbbbb 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;

    transition: outline 0.2s, background-color 0.2s;
}

#versionSelect:hover {
    background-color: #242424;
}

#versionSelect:focus {
    outline: 2px solid #6200ea;
}

/* Dropdown options */
#versionSelect option {
    background-color: #1e1e1e;
    color: #ffffff;
}
#searchInput {
    margin-left: 1em;
}

#propertyInput {
    margin-right: 1em;
}