/* Stili personalizzati per il menù online */

:root {
    --primary-color: #DC3545;
    --secondary-color: #343A40;
    --success-color: #28A745;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card categorie */
.categoria-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.categoria-card .card-body {
    padding: 2rem;
    text-align: center;
}

.categoria-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Card prodotti */
.prodotto-card {
    transition: transform 0.2s ease;
    cursor: pointer;
    height: 100%;
}

.prodotto-card:hover {
    transform: scale(1.02);
}

.prodotto-card .card-body {
    padding: 1.5rem;
}

/*
.prodotto-card .prodotto-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
*/
.prodotto-card .prodotto-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: white;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.prodotto-card .card-title {
    font-size: 1.15rem;
}

.ingredients {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.4;
}

.prodotto-card .prezzo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Allergeni */
.allergene-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    margin: 0.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.allergene-badge i {
    font-size: 0.9rem;
}

/* Modal */
.modal-lg {
    max-width: 800px;
}

.modal-body .prezzo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Carrello */
.carrello-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
}

.carrello-item .nome-prodotto {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carrello-item .dettagli {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .categoria-card .bi {
        font-size: 2.5rem;
    }
    
    .categoria-card .card-body {
        padding: 1.5rem;
    }
    
    .prodotto-card .prezzo {
        font-size: 1.3rem;
    }
    
    .modal-lg {
        max-width: 95%;
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .categoria-card .bi {
        font-size: 2rem;
    }
    
    .categoria-card .card-body {
        padding: 1rem;
    }
    
    .prodotto-card .prezzo {
        font-size: 1.2rem;
    }
    
    .modal-body .prezzo {
        font-size: 1.5rem;
    }
}

/* Admin styles */
.admin-table th {
    background-color: var(--secondary-color);
    color: white;
}

.admin-card {
    border-left: 4px solid var(--primary-color);
}

.admin-icon-cell i {
    font-size: 1.2rem;
    line-height: 1;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

/* Floating actions */
.floating-actions {
    position: fixed !important;
    bottom: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-actions.right { right: 20px; }
.floating-actions.left { left: 20px; }

.floating-actions .fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Quick actions modal bottom & small */
.modal-bottom .modal-dialog {
    position: fixed;
    bottom: 80px;
    width: 320px;
    margin: 0;
}
.modal-bottom.right .modal-dialog { right: 20px; left: auto; }
.modal-bottom.left .modal-dialog { left: 20px; right: auto; }

/* Print styles */
@media print {
    .navbar, footer, .btn, .modal {
        display: none !important;
    }
    
    .carrello-item {
        break-inside: avoid;
    }
}
