#pwf-wheel-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

#pwf-user-form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

#pwf-user-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

#pwf-user-form p {
  margin-bottom: 15px;
  text-align: left;
}

#pwf-user-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

#pwf-user-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

#pwf-user-form button {
  background: #007cba;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#pwf-user-form button:hover {
  background: #005a87;
}

#pwf-wheel {
  position: relative;
  display: inline-block;
}

#pwf-wheel-canvas {
  border: 3px solid #333;
  border-radius: 50%;
}

#pwf-spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

#pwf-spin-button:hover {
  background: #ff5252;
  transform: translate(-50%, -50%) scale(1.1);
}

#pwf-result {
  background: #e8f5e8;
  padding: 30px;
  border-radius: 8px;
  border: 2px solid #4caf50;
}

#pwf-result h3 {
  color: #2e7d32;
  margin-top: 0;
}

#pwf-result-content {
  font-size: 18px;
  margin: 20px 0;
  color: #333;
}

#pwf-spin-again {
  background: #4caf50;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#pwf-spin-again:hover {
  background: #45a049;
}

/* Agent Login Styles */
#pwf-agent-login {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
}

#pwf-agent-login h3 {
  text-align: center;
  margin-top: 0;
  color: #333;
}

#pwf-agent-login p {
  margin-bottom: 15px;
}

#pwf-agent-login label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

#pwf-agent-login input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

#pwf-agent-login button {
  width: 100%;
  background: #007cba;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#pwf-agent-login button:hover {
  background: #005a87;
}

#pwf-login-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}

#pwf-login-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#pwf-login-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Agent Dashboard Styles */
#pwf-agent-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

#pwf-search-container {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#pwf-search {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

#pwf-search-button {
  background: #007cba;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#pwf-search-button:hover {
  background: #005a87;
}

/* Mobile-first responsive table */
#pwf-spins-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* View button styles for both desktop and mobile */
.pwf-view-button {
  background: #007cba;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  margin: 2px;
}

.pwf-view-button:hover {
  background: #005a87;
}

/* Desktop view */
@media (min-width: 768px) {
  #pwf-spins-table th,
  #pwf-spins-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }

  #pwf-spins-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
  }

  #pwf-spins-table tr:hover {
    background: #f5f5f5;
  }

  .pwf-mobile-only {
    display: none !important;
  }

  .pwf-desktop-only {
    display: table-cell !important;
  }

  /* Desktop view button styling */
  .pwf-view-button {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Show all action buttons on desktop */
  .pwf-desktop-action {
    display: inline-block !important;
  }

  .pwf-mobile-action {
    display: inline-block !important;
  }
}

/* Mobile view */
@media (max-width: 767px) {
  #pwf-spins-table {
    font-size: 14px;
  }

  #pwf-spins-table th,
  #pwf-spins-table td {
    padding: 8px 4px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
  }

  #pwf-spins-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
  }

  /* Force hide desktop columns in both th and td */
  #pwf-spins-table th.pwf-desktop-only,
  #pwf-spins-table td.pwf-desktop-only {
    display: none !important;
  }

  /* Force show mobile columns */
  #pwf-spins-table .pwf-mobile-only {
    display: table-cell !important;
  }

  /* Mobile view button styling */
  .pwf-view-button {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Hide confirm/reject buttons on mobile, show only view button */
  .pwf-desktop-action {
    display: none !important;
  }

  .pwf-mobile-action {
    display: inline-block !important;
  }
}

.pwf-status-pending {
  color: #856404;
  background: #fff3cd;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.pwf-status-started {
  color: #856404;
  background: #fff3cd;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.pwf-status-confirmed {
  color: #155724;
  background: #d4edda;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.pwf-status-rejected {
  color: #721c24;
  background: #f8d7da;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.pwf-action-button {
  padding: 8px 12px;
  margin: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
}

.pwf-confirm-button {
  background: #28a745;
  color: white;
}

.pwf-confirm-button:hover {
  background: #218838;
}

.pwf-reject-button {
  background: #dc3545;
  color: white;
}

.pwf-reject-button:hover {
  background: #c82333;
}

/* Pagination Styles */
.pwf-pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pwf-page-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #007cba;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
}

.pwf-page-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.pwf-page-btn.pwf-page-active {
  background: #007cba;
  color: white;
  border-color: #007cba;
}

.pwf-page-btn:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #dee2e6;
}

.pwf-pagination-dots {
  padding: 8px 4px;
  color: #6c757d;
}

/* Spin Details Modal */
.pwf-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.pwf-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: none;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.pwf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.pwf-modal-header h3 {
  margin: 0;
  color: #333;
}

.pwf-close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.pwf-close:hover,
.pwf-close:focus {
  color: #000;
}

.pwf-modal-body {
  margin-bottom: 20px;
}

.pwf-detail-row {
  display: flex;
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
}

.pwf-detail-label {
  font-weight: bold;
  min-width: 120px;
  color: #555;
}

.pwf-detail-value {
  flex: 1;
  color: #333;
}

.pwf-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.pwf-modal-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.pwf-modal-confirm {
  background: #28a745;
  color: white;
}

.pwf-modal-confirm:hover {
  background: #218838;
}

.pwf-modal-reject {
  background: #dc3545;
  color: white;
}

.pwf-modal-reject:hover {
  background: #c82333;
}

.pwf-modal-close-btn {
  background: #6c757d;
  color: white;
}

.pwf-modal-close-btn:hover {
  background: #545b62;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  #pwf-agent-dashboard {
    padding: 10px;
  }

  #pwf-search-container {
    flex-direction: column;
  }

  #pwf-search {
    min-width: auto;
  }

  .pwf-modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 15px;
  }

  .pwf-detail-row {
    flex-direction: column;
  }

  .pwf-detail-label {
    min-width: auto;
    margin-bottom: 5px;
  }

  .pwf-modal-actions {
    flex-direction: column;
  }

  .pwf-modal-actions button {
    width: 100%;
    margin-bottom: 5px;
  }
}
