/* Printer Status */
.printer-status {
  display: none;
}

.printer-status.show {
  display: block;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--card-foreground);
  margin-bottom: 0.75rem;
}

.refresh-button {
  font-size: 0.75rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

.refresh-button:hover {
  color: hsla(214, 100%, 47%, 0.8);
}

.refresh-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--muted);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.status-item .icon {
    width: 20px;
    height: 20px;
}

.error-message .icon {
    width: 20px;
    height: 20px;
}

.status-content {
  background-color: hsla(220, 13%, 91%, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-online { color: var(--accent); }
.status-offline { color: var(--destructive); }
.status-busy { color: var(--warning); }
.status-error { color: var(--destructive); }
.status-maintenance { color: var(--muted-foreground); }

.status-time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.error-message {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: hsla(0, 84%, 60%, 0.1);
  border: 1px solid hsla(0, 84%, 60%, 0.2);
  border-radius: 0.375rem;
}

.error-text {
  font-size: 0.875rem;
  color: var(--destructive);
}

.status-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-value {
  font-size: 0.875rem;
}

.status-value-number {
  font-weight: 500;
}

.status-value-label {
  color: var(--muted-foreground);
}


/* Responsive adjustments for printer status */
@media (min-width: 768px) {
  .status-details {
    grid-template-columns: repeat(3, 1fr);
  }
}