/* Tablet-optimized styles for Shift Leader Interface */

/* Global tablet optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-size: 16px;
  overflow-x: hidden;
}

/* Large touch-friendly buttons */
.button {
  min-height: 48px;
  min-width: 48px;
  font-size: 1.1rem;
}

.button.is-large {
  min-height: 64px;
  font-size: 1.3rem;
}

/* Status indicators */
.status-running {
  background-color: #48c774 !important;
  color: white !important;
}

.status-downtime {
  background-color: #f14668 !important;
  color: white !important;
}

.status-not-in-plan {
  background-color: #363636 !important;
  color: white !important;
}

.status-no-activity {
  background-color: #ff9800 !important;
  color: white !important;
}

.status-released {
  background-color: #ffdd57 !important;
  color: #363636 !important;
}

.status-partially-reported {
  background-color: #3298dc !important;
  color: white !important;
}
.status-not-in-plan {
  background-color: #363636 !important;
  color: white !important;
}

/* Machine cards */
.machine-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.machine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.machine-card:active {
  transform: translateY(-2px);
}

.machine-card .card-header {
  background-color: #363636;
  color: white;
}

.machine-card .card-header-title {
  color: white;
  font-size: 1.3rem;
}

.machine-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
}

.machine-info {
  padding: 1rem;
}

.machine-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dbdbdb;
}

.machine-info-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.machine-info-label {
  font-weight: 600;
  color: #4a4a4a;
}

.machine-info-value {
  color: #363636;
  text-align: right;
}

/* Grid responsive layout */
@media screen and (min-width: 769px) {
  .machines-grid .column {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

@media screen and (min-width: 1024px) {
  .machines-grid .column {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Loading spinner */
.loader-wrapper {
  padding: 4rem;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3273dc;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Empty state */
.empty-state-icon {
  padding: 3rem;
}

/* Floating Action Button */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
}

.fab-button {
  border-radius: 50%;
  width: 70px;
  height: 70px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.fab-button:hover {
  transform: scale(1.1);
}

.fab-button:active {
  transform: scale(1.05);
}

/* Modal improvements */
.modal-card {
  max-width: 90vw;
  max-height: 90vh;
}

.modal-card-body {
  padding: 2rem;
}

/* Form inputs - larger for touch */
input.input,
select.select,
textarea.textarea {
  min-height: 48px;
  font-size: 1.1rem;
}

textarea.textarea {
  min-height: 120px;
}

/* Navbar adjustments */
.navbar-item {
  font-size: 1.1rem;
}

.select select {
  min-height: 48px;
  font-size: 1.1rem;
}

/* Machine detail screen specific styles */
.detail-section {
  margin-bottom: 2rem;
}

.detail-section .title {
  border-bottom: 2px solid #3273dc;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.action-buttons .button {
  height: 80px;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.action-buttons .button .icon {
  font-size: 1.5rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .machines-grid .column {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .fab-container {
    bottom: 20px;
    right: 20px;
  }

  .navbar-menu {
    background-color: #363636;
  }
}

@media screen and (max-width: 480px) {
  .machines-grid .column {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Print styles */
@media print {
  .fab-container,
  .navbar,
  .action-buttons {
    display: none;
  }
}

/* Accessibility improvements */
.button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #3273dc;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition: background-color 0.15s ease, color 0.15s ease;
}

button,
a,
.card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
