/* ExistingPassBubble.css */
.existing-pass-bubble {
  position: fixed;
  z-index: 1000;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #e0e0e0;
  max-width: 380px;
  width: 90%;
  animation: slideIn 0.3s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.existing-pass-bubble.top-right {
  top: 20px;
  right: 20px;
}

.existing-pass-bubble.top-left {
  top: 20px;
  left: 20px;
}

.existing-pass-bubble.bottom-right {
  bottom: 20px;
  right: 20px;
}

.existing-pass-bubble.bottom-left {
  bottom: 20px;
  left: 20px;
}

.bubble-header {
  display: flex;
  align-items: flex-start;
  padding: 20px 20px 0;
  gap: 12px;
}

.bubble-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00b894, #00a085);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bubble-title {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bubble-title h4 {
  margin: 0;
  color: #2d3436;
  font-size: 1.1rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: #636e72;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.close-btn:hover {
  background: #f8f9fa;
  color: #2d3436;
}

.bubble-content {
  padding: 16px 20px;
}

.customer-greeting {
  margin: 0 0 12px 0;
  color: #636e72;
  font-size: 0.95rem;
}

.bubble-content p {
  margin: 0 0 16px 0;
  color: #2d3436;
  line-height: 1.5;
}

.pass-details {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-item:first-child {
  padding-top: 0;
}

.detail-label {
  color: #636e72;
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-value {
  color: #2d3436;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-active .detail-value {
  color: #00b894;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-active .detail-value i {
  font-size: 0.8rem;
}

.bubble-actions {
  display: flex;
  gap: 12px;
  padding: 0 20px 20px;
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #00b894, #00a085);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.btn-secondary {
  background: #f8f9fa;
  color: #636e72;
  border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
  background: #e9ecef;
  color: #2d3436;
}

.bubble-arrow {
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border: 1px solid #e0e0e0;
}

.existing-pass-bubble.bottom-right .bubble-arrow,
.existing-pass-bubble.bottom-left .bubble-arrow {
  bottom: -8px;
  border-top: none;
  border-left: none;
}

.existing-pass-bubble.top-right .bubble-arrow,
.existing-pass-bubble.top-left .bubble-arrow {
  top: -8px;
  border-bottom: none;
  border-right: none;
}

.existing-pass-bubble.bottom-right .bubble-arrow,
.existing-pass-bubble.top-right .bubble-arrow {
  right: 30px;
}

.existing-pass-bubble.bottom-left .bubble-arrow,
.existing-pass-bubble.top-left .bubble-arrow {
  left: 30px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .existing-pass-bubble {
    max-width: calc(100vw - 40px);
    width: auto;
    margin: 0 20px;
  }
  
  .bubble-actions {
    flex-direction: column;
  }
  
  .bubble-header {
    padding: 16px 16px 0;
  }
  
  .bubble-content {
    padding: 12px 16px;
  }
  
  .bubble-actions {
    padding: 0 16px 16px;
  }
}
