/* Native App-like Notification Styles */

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
  max-width: 400px;
  margin: 0 auto;
}

/* Enhanced Toast Notifications */
.toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(100px) scale(0.8);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  overflow: hidden;
  position: relative;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

/* Toast Progress Bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  width: 100%;
  transform-origin: left;
}

/* Toast Types */
.toast-success {
  border-left: 4px solid #28a745;
}

.toast-success .toast-progress {
  background: linear-gradient(90deg, #28a745, #1e7e34);
}

.toast-error {
  border-left: 4px solid #dc3545;
}

.toast-error .toast-progress {
  background: linear-gradient(90deg, #dc3545, #c82333);
}

.toast-warning {
  border-left: 4px solid #ffc107;
}

.toast-warning .toast-progress {
  background: linear-gradient(90deg, #ffc107, #e0a800);
}

.toast-info {
  border-left: 4px solid #17a2b8;
}

.toast-info .toast-progress {
  background: linear-gradient(90deg, #17a2b8, #138496);
}

.toast-upload {
  border-left: 4px solid #007bff;
}

.toast-upload .toast-progress {
  background: linear-gradient(90deg, #007bff, #0056b3);
}

.toast-download {
  border-left: 4px solid #6f42c1;
}

.toast-download .toast-progress {
  background: linear-gradient(90deg, #6f42c1, #5a2d91);
}

.toast-delete {
  border-left: 4px solid #dc3545;
}

.toast-delete .toast-progress {
  background: linear-gradient(90deg, #dc3545, #c82333);
}

.toast-share {
  border-left: 4px solid #28a745;
}

.toast-share .toast-progress {
  background: linear-gradient(90deg, #28a745, #1e7e34);
}

.toast-edit {
  border-left: 4px solid #fd7e14;
}

.toast-edit .toast-progress {
  background: linear-gradient(90deg, #fd7e14, #e55a00);
}

.toast-lock {
  border-left: 4px solid #6c757d;
}

.toast-lock .toast-progress {
  background: linear-gradient(90deg, #6c757d, #545b62);
}

.toast-unlock {
  border-left: 4px solid #28a745;
}

.toast-unlock .toast-progress {
  background: linear-gradient(90deg, #28a745, #1e7e34);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .toast {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .toast-message {
    color: #ffffff;
  }
  
  .toast-close {
    color: #adb5bd;
  }
  
  .toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .toast-container {
    bottom: 80px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .toast {
    border-radius: 12px;
    margin-bottom: 8px;
  }
  
  .toast-content {
    padding: 14px 16px;
    gap: 10px;
  }
  
  .toast-icon {
    font-size: 18px;
    width: 20px;
  }
  
  .toast-message {
    font-size: 13px;
  }
  
  .toast-close {
    font-size: 16px;
    width: 24px;
    height: 24px;
  }
}

/* Animation Keyframes */
@keyframes toastSlideIn {
  from {
    transform: translateY(100px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(-50px) scale(0.8);
    opacity: 0;
  }
}

@keyframes toastBounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(-2px);
  }
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Notification Settings Panel */
.notification-settings {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  max-width: 400px;
  width: 90%;
}

.notification-settings h3 {
  margin: 0 0 20px 0;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 600;
}

.notification-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.notification-setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
}

.setting-toggle {
  position: relative;
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.setting-toggle.active {
  background: #007bff;
}

.setting-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.setting-toggle.active::after {
  transform: translateX(26px);
}

/* Desktop Notification Styles */
.desktop-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  max-width: 350px;
  z-index: 10002;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.desktop-notification.show {
  transform: translateX(0);
}

.desktop-notification-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.desktop-notification-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.desktop-notification-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
}

.desktop-notification-message {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 480px) {
  .notification-settings {
    width: 95%;
    padding: 20px;
  }
  
  .desktop-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
} 