/* Push notification styles */

/* Push notification settings */
.push-notification-settings {
  padding: 15px;
  margin-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.push-notification-settings h4 {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.toggle-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-right: 10px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #2196F3;
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.settings-description {
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

/* Notification container shown when push notifications are received */
.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 300px;
}

.notification {
  background-color: white;
  color: #333;
  border-radius: 4px;
  padding: 12px 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  border-left: 4px solid #f44336;
}

.notification.success {
  border-left: 4px solid #4CAF50;
}

.notification.info {
  border-left: 4px solid #2196F3;
}

/* Permission prompt */
.push-permission-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 300px;
  z-index: 1000;
  animation: slide-up 0.3s ease;
}

.prompt-content {
  padding: 15px;
}

.prompt-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.prompt-text h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.prompt-text p {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #666;
}

.prompt-actions {
  display: flex;
  justify-content: flex-end;
}

.prompt-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
}

.btn-allow {
  background-color: #2196F3;
  color: white;
}

.btn-later {
  background-color: #f5f5f5;
  color: #333;
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}