/* analysis.css - Theme-aware styles for Inventory and Analysis Panels */

.inventory-panel {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 260px;
    max-height: 320px;
    z-index: 1000;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto !important;
}

.inventory-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-color);
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 10px;
    letter-spacing: -0.02em;
}

.inventory-header i {
    color: var(--accent-color);
    font-size: 14px;
}

.inventory-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for Inventory */
.inventory-list::-webkit-scrollbar {
    width: 4px;
}
.inventory-list::-webkit-scrollbar-track {
    background: transparent;
}
.inventory-list::-webkit-scrollbar-thumb {
    background: var(--panel-border);
    border-radius: 4px;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--item-bg);
    padding: 8px 14px 8px 18px;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    transition: all 0.2s ease;
}

.inventory-item:hover {
    background: var(--item-hover-bg);
    transform: translateX(-2px);
}

.inventory-item .lbl {
    font-weight: 600;
    color: var(--sub-text);
    font-size: 11px;
    text-transform: capitalize;
}

.inventory-item .val {
    font-weight: 800;
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
}

.inventory-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--panel-border);
}

.btn-export-bom {
    width: 100%;
    padding: 10px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-export-bom:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-export-bom i {
    font-size: 12px;
}
