/* RistoManager Pro - Stile principale */

/* Stili generali */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Stili per la mappa tavoli */
.tavoli-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 600px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.tavolo-cell {
    background-color: #28a745;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px;
    text-align: center;
}

.tavolo-cell.prenotato {
    background-color: #dc3545;
}

.tavolo-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tavolo-numero {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.tavolo-posti {
    font-size: 0.8rem;
}

/* Stili per le prenotazioni */
.prenotazioni-list {
    max-height: 500px;
    overflow-y: auto;
}

.list-group-item {
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Stili per i modali */
.modal-header {
    background-color: #007bff;
    color: white;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

/* Stili per i bottoni */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Stili per i form */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Stili per la data e ora */
.date-selector {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Stili responsive */
@media (max-width: 768px) {
    .tavoli-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(12, 1fr);
    }
    
    .tavolo-numero {
        font-size: 1.2rem;
    }
    
    .tavolo-posti {
        font-size: 0.7rem;
    }
}


/* Stili per il menu principale */
.navbar {
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(0,0,0,0.05);
}

.navbar-nav .nav-item.active .nav-link {
  font-weight: bold;
  color: #007bff;
}

/* Stili per dropdown menu */
.dropdown-menu {
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  border: none;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #007bff;
}


/* Aggiungi questo CSS alla fine del file style.css */

/* Stili per la pagina Menu */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.menu-title {
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

.controls {
    display: flex;
    gap: 10px;
}

.menu-container {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.categoria-box {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.categoria-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.categoria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.categoria-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}

.categoria-actions, .piatto-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-icon:hover {
    background-color: rgba(108, 117, 125, 0.1);
    color: #343a40;
}

.edit-categoria:hover, .edit-piatto:hover {
    color: #007bff;
}

.delete-categoria:hover, .delete-piatto:hover {
    color: #dc3545;
}

.piatti-list {
    padding: 15px;
}

.piatto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.piatto-item:last-child {
    border-bottom: none;
}

.piatto-item:hover {
    background-color: #f8f9fa;
}

.piatto-info {
    flex: 1;
}

.piatto-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #343a40;
}

.piatto-descrizione {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.piatto-prezzo {
    margin: 0;
    font-weight: 600;
    color: #28a745;
}

.no-items {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

/* Stili per i modali */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .controls {
        width: 100%;
    }
    
    .controls button {
        flex: 1;
    }
    
    .menu-container {
        grid-template-columns: 1fr;
    }
}

/* Add these styles to your existing style.css file */

/* Ordini page styles */
.ordini-container {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.tavoli-sidebar {
    width: 300px;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tavoli-list {
    margin-top: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.tavolo-item {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.tavolo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tavolo-libero {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.tavolo-occupato {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.tavolo-prenotato {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.tavolo-conto {
    background-color: #cce5ff;
    border: 1px solid #b8daff;
}

.tavolo-numero {
    font-weight: bold;
    font-size: 1.1em;
}

.tavolo-posti, .tavolo-stato {
    font-size: 0.9em;
    margin-top: 5px;
}

.ordine-content {
    flex: 1;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tavolo-info {
    text-align: center;
    padding: 50px 0;
    color: #6c757d;
}

.ordine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

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

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

.ordine-table th, .ordine-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.ordine-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.text-right {
    text-align: right;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 80%;
    max-width: 800px;
    position: relative;
}

.modal-lg {
    width: 90%;
    max-width: 1000px;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #dc3545;
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Tabs styles */
.categorie-tabs {
    margin-top: 20px;
}

.tabs-header {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 10px 15px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn.active {
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.piatti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.piatto-card {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.piatto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.piatto-card h3 {
    margin-top: 0;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.piatto-prezzo {
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.piatto-quantity {
    display: flex;
    align-items: center;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #ced4da;
    border-left: none;
    border-right: none;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group select, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.conto-details {
    margin-top: 20px;
}

.conto-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.conto-table th, .conto-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.conto-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.no-items {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}