/* Station Dashboard Styles */
.station-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.station-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
}

.station-header h1 {
  margin: 0;
  font-size: 2rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.station-tabs {
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 15px 20px;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
  background: #667eea;
  color: white;
}

.station-content {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-content {
  display: none;
  padding: 30px;
}

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

/* Scanner Styles */
.scanner-section h2 {
  margin-bottom: 20px;
  color: #333;
}

.scanner-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.primary-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.primary-btn:hover:not(:disabled) {
  background: #218838;
}

.primary-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.secondary-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.secondary-btn:hover:not(:disabled) {
  background: #545b62;
}

.secondary-btn:disabled {
  background: #adb5bd;
  cursor: not-allowed;
}

.warning-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.warning-btn:hover:not(:disabled) {
  background: #c82333;
}

.info-btn {
  background: #17a2b8;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.info-btn:hover:not(:disabled) {
  background: #138496;
}

#scanner-video-container {
  position: relative;
  max-width: 500px;
  margin: 20px 0;
}

#scanner-video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.scan-result {
  margin-top: 20px;
  padding: 15px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  color: #155724;
}

.scan-result.hidden {
  display: none;
}

/* Sales Styles */
.sales-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.sales-controls select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.sales-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.sales-summary h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.sales-summary p {
  margin: 5px 0;
  font-size: 16px;
}

.month-sales {
  margin-bottom: 30px;
}

.month-sales h4 {
  background: #667eea;
  color: white;
  padding: 15px;
  margin: 0 0 10px 0;
  border-radius: 5px;
}

.orders-list {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr 1fr 100px 120px;
  gap: 15px;
  padding: 10px;
  border-bottom: 1px solid #dee2e6;
}

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

/* Attendance Styles */
.attendance-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.attendance-list {
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
}

.attendance-item {
  display: grid;
  grid-template-columns: 1fr 120px 120px 100px;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #dee2e6;
  align-items: center;
}

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

.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.status.checked_in {
  background: #d4edda;
  color: #155724;
}

.status.checked_out {
  background: #cce5ff;
  color: #004085;
}

.status.incomplete {
  background: #f8d7da;
  color: #721c24;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin: 0 0 20px 0;
  color: #333;
}

.order-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.order-info h4 {
  margin: 0 0 10px 0;
  color: #667eea;
}

.order-items ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.handover-images {
  margin: 20px 0;
}

.handover-images input {
  margin: 10px 0;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
}

.code-display {
  background: #667eea;
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin: 15px 0;
}

.code-display span {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 3px;
}

.code-validation {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.code-validation input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 2px;
}

/* Profile Styles */
.profile-section {
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.form-group input:disabled {
  background: #f8f9fa;
  color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .station-container {
    padding: 10px;
  }

  .station-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .station-tabs {
    flex-direction: column;
  }

  .tab-content {
    padding: 20px;
  }

  .order-item,
  .attendance-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sales-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .code-validation {
    flex-direction: column;
  }
}