/* Update the color scheme and improve UI */
:root {
  --primary-color: #2563eb; /* Blue-600 */
  --secondary-color: #10b981; /* Emerald-500 */
  --accent-color: #ef4444; /* Red-500 */
  --background-color: #111827; /* Gray-900 */
  --card-background: rgba(17, 24, 39, 0.85);
  --text-color: #f9fafb; /* Gray-50 */
  --text-secondary: rgba(249, 250, 251, 0.7);
  --border-color: rgba(75, 85, 99, 0.3); /* Gray-500 at 30% */
  --input-background: rgba(31, 41, 55, 0.5); /* Gray-800 at 50% */
  --hover-background: rgba(55, 65, 81, 0.2); /* Gray-600 at 20% */
  --font-family: "Inter", "Poppins", sans-serif;
  --border-radius: 8px;
  --transition: all 0.2s ease-in-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Improve menu container styling - removed box-shadow */
.menu-container {
  width: 400px;
  background-color: var(--card-background);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: fadeIn 0.3s forwards;
  border: 1px solid var(--border-color);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.menu-container.hidden {
  display: none;
}

/* Menu Header - Redesigned */
.menu-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(31, 41, 55, 0.3);
}

.job-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Improve job icon styling */
.job-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.job-icon i {
  width: 20px;
  height: 20px;
}

.job-details h2 {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.job-details p {
  color: var(--text-secondary);
  font-size: 12px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition);
}

.close-btn:hover {
  background-color: var(--hover-background);
  color: var(--text-color);
}

.close-btn i {
  width: 16px;
  height: 16px;
}

/* Menu Content - Redesigned */
.menu-content {
  padding: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h3 {
  color: var(--text-color);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Search Container - Redesigned */
.search-container {
  margin-bottom: 12px;
}

.search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input i {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
  width: 14px;
  height: 14px;
}

.search-input input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background-color: var(--input-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: 13px;
  transition: var(--transition);
}

.search-input input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
}

/* Players List - Redesigned */
.players-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Improve player item styling */
.player-item {
  padding: 12px;
  background-color: rgba(31, 41, 55, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.player-item:hover {
  background-color: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

.player-name {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
}

.player-id {
  color: var(--text-secondary);
  font-size: 11px;
  margin-top: 2px;
}

.select-icon {
  color: var(--text-secondary);
  transition: var(--transition);
}

.player-item:hover .select-icon {
  color: var(--primary-color);
  transform: translateX(3px);
}

/* Form Styles - Redesigned */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: var(--text-color);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

.input-with-icon {
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Improve form input styling */
input,
textarea {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--input-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: 13px;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.1);
}

input[type="number"] {
  padding-left: 26px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Button Styles - Redesigned */
.btn {
  padding: 10px 16px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn i {
  width: 14px;
  height: 14px;
}

/* Improve button styling */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8; /* Blue-700 */
}

.btn-cancel {
  background-color: rgba(75, 85, 99, 0.2);
  color: var(--text-color);
}

.btn-cancel:hover {
  background-color: rgba(75, 85, 99, 0.3);
}

.btn-reject {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--accent-color);
  width: 100%;
  margin-top: 12px;
  padding: 12px;
}

.btn-reject:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.form-actions button {
  flex: 1;
}

/* Improve bill details styling */
.bill-details {
  background-color: rgba(31, 41, 55, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.bill-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.bill-info {
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
}

.bill-info p {
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
}

.bill-info strong {
  color: var(--text-color);
  margin-bottom: 2px;
  font-size: 12px;
}

/* Payment Options - Redesigned */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.payment-option {
  background-color: rgba(31, 41, 55, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
}

.payment-option:hover {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.payment-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius);
  background-color: var(--secondary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  flex-shrink: 0;
}

.payment-icon i {
  width: 18px;
  height: 18px;
}

.payment-text {
  display: flex;
  flex-direction: column;
}

.payment-title {
  font-weight: 600;
  font-size: 14px;
}

.payment-desc {
  color: var(--text-secondary);
  font-size: 11px;
  margin-top: 2px;
}

/* Remove notification styles since we're not using them */
#notifications-container {
  display: none;
}

.notification {
  display: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.4);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(75, 85, 99, 0.6);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu-container {
    width: 90%;
    max-width: 400px;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Dark/Light Mode Toggle */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(248, 250, 252, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
}

.theme-toggle:hover {
  background: rgba(248, 250, 252, 0.2);
}

/* Glass Morphism Effect */
.glass {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.2);
}
