/* Warehouses Page Styles */

.warehouses-container {
    padding: 30px;
}

.warehouse-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Inventory Controls */
.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--secondary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.inventory-actions {
    display: flex;
    gap: 10px;
}

.select-input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

/* Inventory Table */
.inventory-table-wrapper {
    overflow-x: auto;
}

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

.inventory-table thead th {
    background: var(--secondary-color);
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.inventory-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.inventory-table tbody tr:hover {
    background: var(--secondary-color);
}

.inventory-table tbody td {
    padding: 15px;
    font-size: 14px;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.item-code {
    font-size: 12px;
    color: var(--text-secondary);
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.category-badge.linens {
    background: #e3f2fd;
    color: #1976d2;
}

.category-badge.toiletries {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-badge.cleaning {
    background: #e8f5e9;
    color: #388e3c;
}

.category-badge.maintenance {
    background: #fff3e0;
    color: #f57c00;
}

.stock-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stock-quantity {
    font-weight: 600;
    font-size: 16px;
}

.stock-bar {
    width: 80px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 3px;
    overflow: hidden;
}

.stock-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.stock-bar-fill.low {
    background: var(--danger-color);
}

.stock-bar-fill.medium {
    background: var(--warning-color);
}

.stock-bar-fill.high {
    background: var(--success-color);
}

.stock-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.stock-status.low {
    background: #f8d7da;
    color: #721c24;
}

.stock-status.medium {
    background: #fff3cd;
    color: #856404;
}

.stock-status.high {
    background: #d4edda;
    color: #155724;
}

.warehouse-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.warehouse-location i {
    color: var(--primary-color);
}

.last-updated {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Action buttons in table */
.table-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--secondary-color);
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.action-btn.primary:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .warehouses-container {
        padding: 20px;
    }
    
    .warehouse-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inventory-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .inventory-actions {
        flex-direction: column;
    }
    
    .select-input {
        width: 100%;
    }
    
    .inventory-table {
        font-size: 12px;
    }
    
    .inventory-table thead th,
    .inventory-table tbody td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .warehouse-stats {
        grid-template-columns: 1fr;
    }
}
