/* Safety Tips UI Styles */
.safety-trigger {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  font-size: 14px;
}

.safety-trigger.sidebar-trigger {
  position: sticky;
  top: 20px;
  margin-bottom: 20px;
  max-width: none;
}

.sidebar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
}

.sidebar-section {
  position: relative;
}

.safety-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.safety-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.safety-modal.active {
  opacity: 1;
  visibility: visible;
}

.safety-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.safety-modal.active .safety-modal-content {
  transform: scale(1);
}

.safety-header {
  padding: 24px 24px 0;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.safety-header i {
  font-size: 48px;
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 12px;
}

.safety-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.safety-header p {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
}

.safety-list {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.safety-tip {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f8f9fa;
}

.safety-tip:last-child {
  border-bottom: none;
}

.tip-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.safety-tip h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.safety-tip p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.safety-footer {
  padding: 0 24px 24px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.safety-footer p {
  margin: 0;
  font-size: 14px;
}

.safety-footer a {
  color: #10b981;
  text-decoration: none;
  font-weight: 600;
}

.safety-footer a:hover {
  text-decoration: underline;
}

.safety-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #9ca3af;
}

.safety-close:hover {
  color: #374151;
}

@media (max-width: 768px) {
  .safety-trigger {
    bottom: 20px;
    top: auto;
    right: 20px;
    left: 20px;
    right: auto;
    max-width: none;
  }
  
  .safety-modal-content {
    max-width: 95vw;
    margin: 0 auto;
  }
  
  .safety-list {
    padding: 16px;
  }
}
