body {
    background: #0a0a0a;
    color: #ddd;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    overflow: hidden;
}

header {
    background: #151515;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    height: 60px;
}

.main-layout {
    display: flex;
    height: calc(100vh - 82px);
}

/* Left Grid Section */
.grid-section {
    flex: 2;
    overflow-y: auto;
    padding: 20px;
    border-right: 2px solid #333;
}

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #222;
    border: 1px solid #444;
    color: #aaa;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

    .filter-btn:hover {
        background: #333;
        color: #fff;
    }

    .filter-btn.active {
        background: #00ffcc;
        color: #000;
        font-weight: bold;
        border-color: #00ffcc;
    }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.item-card {
    background: #161616;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #222;
    cursor: pointer;
    transition: 0.2s;
}

    .item-card:hover {
        border-color: #00ffcc;
        transform: translateY(-2px);
    }

    .item-card img {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
    }

    .item-card h3 {
        margin: 0;
        font-size: 0.9rem;
        color: #fff;
    }

/* Right Inspector Section */
.inspector {
    flex: 1;
    background: #111;
    padding: 30px;
    overflow-y: auto;
    border-left: 1px solid #333;
}

.placeholder-msg {
    text-align: center;
    color: #555;
    margin-top: 50px;
}

.inspector-header {
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

    .inspector-header img {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .inspector-header h2 {
        color: #fff;
        margin: 0;
    }

.desc-text {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 10px;
}

.section-title {
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 25px 0 10px;
    font-weight: bold;
}

.link-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

    .link-btn:hover {
        background: #222;
        border-color: #00ffcc;
        color: #00ffcc;
    }

.qty-tag {
    color: #f39c12;
    font-weight: bold;
}

/* Search UI */
.search-box-container {
    position: relative;
    width: 300px;
}

#searchInput {
    width: 100%;
    padding: 8px 35px 8px 12px;
    background: #000;
    border: 1px solid #444;
    color: #00ffcc;
    border-radius: 6px;
    outline: none;
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    display: none;
}
