/* Touch Screen Optimizations for Manufacturing Environment */

/* Virtual Keyboard Integration Styles */
.manufacturing-touch-input {
  min-height: 50px;
  font-size: 18px;
  padding: 15px;
  border: 2px solid #4a5568;
  border-radius: 8px;
  background: #2d3748;
  color: #ffffff;
  transition: border-color 0.2s, background 0.2s;
}

.manufacturing-touch-input:focus {
  border-color: #3182ce;
  background: rgba(49, 130, 206, 0.1);
  outline: none;
}

/* Enhanced button sizes for touch */
.touch-btn {
  min-height: 60px;
  min-width: 120px;
  font-size: 18px;
  padding: 15px 25px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-weight: 600;
}

.touch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.touch-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Touch-friendly form elements */
.touch-form input,
.touch-form textarea,
.touch-form select {
  min-height: 50px;
  font-size: 18px;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #4a5568;
  background: #2d3748;
  color: #ffffff;
}

.touch-form input:focus,
.touch-form textarea:focus,
.touch-form select:focus {
  border-color: #3182ce;
  background: rgba(49, 130, 206, 0.1);
  outline: none;
}

/* Virtual keyboard overlay adjustments */
body.virtual-keyboard-active {
  padding-bottom: 320px; /* Space for keyboard */
  transition: padding-bottom 0.3s ease-in-out;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 768px) {
  .manufacturing-touch-input {
    min-height: 45px;
    font-size: 16px;
  }
  
  .touch-btn {
    min-height: 50px;
    font-size: 16px;
    padding: 12px 20px;
  }
}

@media (min-width: 1200px) {
  .manufacturing-touch-input {
    min-height: 60px;
    font-size: 20px;
  }
  
  .touch-btn {
    min-height: 70px;
    font-size: 20px;
    padding: 18px 30px;
  }
}

/* Accessibility improvements */
.touch-accessible:focus {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}