li {list-style:none;}
.hidden
{
display:none;
}
#language-block {
    display: none;
}
.navbar-brand {
  padding-left: 20px; /* Regola questo valore */
}

/* nascondere campo descrizione */
.desc-section {
  display: none;
}
  :root {
    --primary-color: #6366f1;
    --primary-light: #a5b4fc;
    --primary-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
    --accent-color: #10b981;
    --accent-light: #d1fae5;
    --danger-color: #f43f5e;
    --danger-light: #fee2e2;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-700: #334155;
}
.btn.btn-sm.btn-add {
	background: white;
}
.product-card {
    border-radius: 0.75rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.product-card .card-header {
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    padding: 1rem;
    font-weight: 600;
}

.btn-add {
    border-radius: 0.5rem;
    font-weight: 500;
    background-color: white;
    color: var(--primary-color);
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.btn-add:hover {
    background-color: var(--neutral-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table-header {
    background-color: var(--neutral-50);
}

.product-table {
    border-collapse: separate;
    border-spacing: 0;
}

.product-table th {
    font-weight: 600;
    color: var(--neutral-700);
    border-top: none;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.product-table th a {
    color: var(--neutral-700);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-table th a i {
    opacity: 0.5;
    font-size: 0.75rem;
}

.product-table tr {
    transition: background-color 0.2s ease;
}

.product-table tr:nth-child(even) {
    background-color: var(--neutral-50);
}

.product-table tr:hover {
    background-color: rgba(165, 180, 252, 0.2);
}

.product-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--neutral-200);
}

.product-name {
    font-weight: 600;
    color: var(--primary-color);
}

.price-tag {
    font-weight: 600;
    color: var(--accent-color);
    background-color: var(--accent-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
}

.status-badge::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.375rem;
    background-color: white;
}

.action-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    margin-right: 0.375rem;
    transition: all 0.2s;
    border: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-count {
    background-color: var(--neutral-100);
    border-top: 1px solid var(--neutral-200);
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    background-color: var(--neutral-50);
}

.empty-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .product-table td, 
    .product-table th {
        padding: 0.625rem;
    }
    
    .action-btn {
        width: 2rem;
        height: 2rem;
        margin-right: 0.25rem;
    }
     .status-badge {
        padding: 0.15rem 0.3rem;
        font-size: 0.85rem;
    }
     .price-tag {
        padding: 0.15rem 0.3rem;
        font-size: 0.9rem;
        white-space:nowrap;
    }
}

/* Stile base per lo switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    display: none;
}

.toggle-switch label {
    display: block;
    width: 100%;
    height: 100%;
    background-color: red;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    position: relative;
}

/* Il "pallino" dello switch */
.toggle-switch label:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

/* Stato attivo */
.toggle-switch input:checked + label {
    background-color: var(--accent-color); /* oppure un colore a tua scelta */
}

.toggle-switch input:checked + label:after {
    transform: translateX(22px);
}

/* Riduzione di dimensioni per smartphone se necessario */
@media (max-width: 768px) {
    .toggle-switch {
        width: 40px;
        height: 20px;
    }
    
    .toggle-switch label:after {
        width: 16px;
        height: 16px;
        top: 2px;
        left: 2px;
    }
    
    .toggle-switch input:checked + label:after {
        transform: translateX(20px);
    }
}
/* FILTRO STYLES */
.filter-container {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-header {
    background: var(--primary-color);
    color: white;
    padding: 0.50rem;
    font-weight: 600;
}

.filter-content {
    background: var(--neutral-50);
}

.filter-input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-prepend {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-radius: 0.375rem 0 0 0.375rem;
}

.filter-select,
.filter-control {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--neutral-200);
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    transition: all 0.2s ease;
}

.filter-select:focus,
.filter-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-actions {
    height: 100%;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.filter-btn-danger {
    background: var(--danger-color);
    color: white;
}

.filter-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .filter-content .col-md-4,
    .filter-content .col-md-5,
    .filter-content .col-md-3 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .filter-actions {
        margin-top: 1rem;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .filter-input-group {
        flex-wrap: wrap;
    }

    .filter-prepend {
        width: 100%;
        border-radius: 0.375rem 0.375rem 0 0;
        justify-content: center;
    }

    .filter-select,
    .filter-control {
        border-left: 1px solid var(--neutral-200);
        border-radius: 0 0 0.375rem 0.375rem;
    }

    .filter-btn {
        width: 100%;
        padding: 0.75rem;
    }
}