/* Mobile Menu Management Styles */

.mobile-menu-container {
  padding: 10px;
  max-width: 100%;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: var(--border-radius);
}

.menu-header-content {
  flex: 1;
}

.mobile-menu-header h2 {
  margin: 0 0 5px 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-week-info {
  font-size: 13px;
  opacity: 0.9;
}

.btn-send-email {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-send-email:active {
  transform: scale(0.95);
}

.mobile-company-selector {
  background: white;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-company-selector label {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 14px;
}

.mobile-company-selector label i {
  margin-right: 5px;
}

.mobile-company-selector select {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: var(--primary-color);
  cursor: pointer;
}

.mobile-days-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-day-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.mobile-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  cursor: pointer;
}

.day-info {
  flex: 1;
}

.day-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.day-date {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.day-count {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dish-count-badge {
  padding: 4px 12px;
  border-radius: 12px;
  background-color: var(--accent-color);
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.btn-expand-day {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 18px;
  padding: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile-day-dishes {
  padding: 15px;
}

.day-actions-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.btn-select-all,
.btn-deselect-all {
  flex: 1;
  padding: 8px 12px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-deselect-all {
  background-color: #6c757d;
}

.btn-select-all:active {
  background-color: #2980b9;
  transform: scale(0.98);
}

.btn-deselect-all:active {
  background-color: #5a6268;
  transform: scale(0.98);
}

.bulk-actions-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

.bulk-actions-info {
  font-weight: 600;
  color: #856404;
}

.selected-count {
  color: #e67e22;
  font-size: 18px;
}

.btn-bulk-delete {
  padding: 8px 16px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-bulk-delete:active {
  background-color: #c0392b;
  transform: scale(0.98);
}

.day-dishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.day-dish-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
  gap: 10px;
}

.dish-select-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.dish-item-content {
  flex: 1;
}

.dish-item-name {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
}

.dish-item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.dish-tipo-mini {
  padding: 2px 8px;
  border-radius: 8px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.dish-fornitore-mini {
  font-size: 11px;
  color: var(--text-light);
}

.dish-fornitore-mini i {
  font-size: 10px;
}

.btn-remove-dish {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-remove-dish:active {
  background-color: #c0392b;
  transform: scale(0.95);
}

.btn-add-dish-to-day {
  width: 100%;
  padding: 12px;
  background-color: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-add-dish-to-day:active {
  background-color: #27ae60;
  transform: scale(0.98);
}

.no-dishes {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-style: italic;
}

/* Dialog Styles */
.dish-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dish-dialog {
  background: white;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dish-dialog h3 {
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.dish-selection-info {
  padding: 15px;
  background: #e3f2fd;
  color: #1976d2;
  font-size: 14px;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

.dish-selection-list {
  flex: 1;
  overflow-y: auto;
}

.dish-type-group {
  margin-bottom: 20px;
}

.dish-type-header {
  padding: 10px 15px;
  background: var(--primary-color);
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

.dish-checkbox-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: background-color 0.2s ease;
  gap: 10px;
}

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

.dish-checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.dish-checkbox-name {
  font-weight: 600;
  color: var(--text-color);
  flex: 1;
}

.dish-checkbox-details {
  font-size: 11px;
  color: var(--text-light);
  font-style: italic;
  max-width: 40%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
