/* Appreciation Points modal - opened from Leaderboard iframe via postMessage */
.appreciation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.appreciation-modal-overlay[style*="display: flex"],
.appreciation-modal-overlay.appreciation-modal-open {
  display: flex;
}

.appreciation-modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  min-width: 400px;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.appreciation-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.appreciation-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.appreciation-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appreciation-modal-close:hover {
  color: #374151;
}

.appreciation-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appreciation-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appreciation-form-label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.appreciation-number-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 40px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.appreciation-stepper-btn {
  height: 100%;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.appreciation-stepper-value {
  border: none;
  outline: none;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

.appreciation-custom-select-container {
  position: relative;
}

.appreciation-custom-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.appreciation-custom-select:hover {
  border-color: #f59e0b;
}

.appreciation-selected-option {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.appreciation-user-icon {
  font-size: 20px;
  color: #f59e0b;
}

.appreciation-custom-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
  display: none;
}

.appreciation-dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.appreciation-dropdown-option:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(251, 191, 36, 0.05));
}

.appreciation-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.appreciation-btn-cancel {
  height: 40px;
  padding: 0 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #6b7280;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.appreciation-btn-cancel:hover {
  border-color: #d1d5db;
  color: #374151;
}

.appreciation-btn-add {
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
  transition: all 0.2s;
}

.appreciation-btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
  .appreciation-modal {
    width: 95%;
    max-width: 100%;
    min-width: unset;
  }
}
