/* Inventory View */
.inventory-container {
    height: 100%;
    background: #0a0a0a;
    color: #f3f4f6;
    display: flex;
    flex-direction: column;
}

.inventory-header {
    padding: 20px;
    background: #141414;
    border-bottom: 1px solid #262626;
    flex-shrink: 0;
}

.inventory-title-section h2 {
    margin: 0;
    font-size: 24px;
    color: #f97316;
}

.inventory-title-section p {
    margin: 8px 0 16px 0;
    color: #a3a3a3;
    font-size: 14px;
}

.inventory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #f97316;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #a3a3a3;
}

.inventory-controls {
    padding: 16px 20px;
    background: #0f0f0f;
    border-bottom: 1px solid #262626;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    overflow-x: auto;
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
}

.category-tab {
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 20px;
    padding: 8px 16px;
    color: #a3a3a3;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

.category-tab:hover {
    background: #262626;
    color: #e5e5e5;
}

.category-tab.active {
    background: #f97316;
    border-color: #f97316;
    color: white;
}

.add-item-btn {
    background: #f97316;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

.add-item-btn:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.inventory-grid {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.inventory-item-card {
    background: #141414;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.inventory-item-card:hover {
    border-color: #404040;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.inventory-item-card.expiring-soon {
    border-color: #f59e0b;
}

.inventory-item-card.expired {
    border-color: #ef4444;
    opacity: 0.8;
}

.inventory-item-card.low-stock {
    border-color: #3b82f6;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.item-icon {
    font-size: 32px;
}

.item-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #e5e5e5;
}

.item-quantity {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.quantity-value {
    font-size: 24px;
    font-weight: bold;
    color: #f97316;
}

.quantity-unit {
    font-size: 14px;
    color: #a3a3a3;
}

.item-expiration {
    font-size: 13px;
    color: #a3a3a3;
    margin-bottom: 8px;
}

.item-expiration.warning .expiration-date {
    color: #f59e0b;
    font-weight: 600;
}

.item-expiration.expired .expiration-date {
    color: #ef4444;
    font-weight: 600;
}

.expiration-label {
    margin-right: 4px;
}

.item-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.location-icon {
    font-size: 12px;
}

.item-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #262626;
}

.action-btn {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 6px;
    padding: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.action-btn:hover {
    background: #262626;
    border-color: #404040;
}

@media (max-width: 768px) {
    .inventory-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .inventory-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .inventory-controls {
        padding: 12px 16px;
    }
}
