/* =====================
   Inventory Styles
   ===================== */

.filters-card {
    background: #1f2937;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid #2d3748;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #e5e7eb;
    background-color: #111827;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.inventory-card {
    background: #1f2937;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.item-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #3b82f620 0%, #3b82f610 100%);
    color: #3b82f6;
}

.item-icon.threads {
    background: linear-gradient(135deg, #3b82f620 0%, #3b82f610 100%);
    color: #3b82f6;
}

.item-icon.fabrics {
    background: linear-gradient(135deg, #0ea5e920 0%, #0ea5e910 100%);
    color: #0ea5e9;
}

.item-icon.tools {
    background: linear-gradient(135deg, #06b6d420 0%, #06b6d410 100%);
    color: #06b6d4;
}

.item-status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #d1fae5;
    color: #065f46;
}

.item-status-badge.low {
    background: #fef3c7;
    color: #92400e;
}

.item-status-badge.danger {
    background: #f8d7da;
    color: #721c24;
}

.inventory-content {
    margin-bottom: 1rem;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.3rem;
}

.item-code {
    font-size: 0.85rem;
    color: #999;
    font-family: "Courier New", monospace;
    margin-bottom: 0.3rem;
}

.item-category {
    font-size: 0.8rem;
    color: #a26812;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.item-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.stock-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #a26812, #a26812);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.stock-fill.low {
    background: linear-gradient(90deg, #ffc107, #ff9800);
}

.stock-fill.danger {
    background: linear-gradient(90deg, #f5576c, #f093fb);
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.item-actions .btn {
    flex: 1;
}

/* =====================
   Responsive Design
   ===================== */

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
    }

    .search-input,
    .filter-select {
        min-width: auto;
    }

    .item-details {
        grid-template-columns: 1fr;
    }

    .item-actions {
        flex-direction: column;
    }
}
