/* frontend/public/css/notifications.css - Modern 2025 Notification Styles */

/* Notification Container */
.notification-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  max-width: 420px;
  width: 100%;
  pointer-events: none;
}

.notification-container.notification-top-left {
  left: 1rem;
  right: auto;
}

.notification-container.notification-top-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.notification-container.notification-bottom-right {
  top: auto;
  bottom: 1rem;
}

.notification-container.notification-bottom-left {
  top: auto;
  bottom: 1rem;
  left: 1rem;
  right: auto;
}

.notification-container.notification-bottom-center {
  top: auto;
  bottom: 1rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* Notification Stack */
.notification-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: auto;
}

/* Individual Notification - Modern Clean Style */
.notification {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.8);
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  max-width: 100%;
  min-width: 320px;
}

.notification.notification-enter {
  transform: translateX(0);
  opacity: 1;
}

.notification.notification-exit {
  transform: translateX(100%);
  opacity: 0;
}

/* Notification Types - Minimal & Modern */
.notification-success {
  border-left: 3px solid #10b981;
}

.notification-error {
  border-left: 3px solid #ef4444;
}

.notification-warning {
  border-left: 3px solid #f59e0b;
}

.notification-info {
  border-left: 3px solid #3b82f6;
}

.notification-loading {
  border-left: 3px solid #6b7280;
}

/* Notification Content */
.notification-content {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  gap: 0.75rem;
}

.notification-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f3f4f6;
}

.notification-success .notification-icon {
  background: #f0fdf4;
  color: #16a34a;
}

.notification-error .notification-icon {
  background: #fef2f2;
  color: #dc2626;
}

.notification-warning .notification-icon {
  background: #fffbeb;
  color: #d97706;
}

.notification-info .notification-icon {
  background: #eff6ff;
  color: #2563eb;
}

.notification-loading .notification-icon {
  background: #f3f4f6;
  color: #6b7280;
  animation: spin 1s linear infinite;
}

.notification-icon-symbol {
  font-size: 1rem;
  line-height: 1;
}

/* Notification Body */
.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
  margin-bottom: 0.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.notification-message {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  word-wrap: break-word;
}

/* Notification Actions */
.notification-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.notification-action {
  background: #f9fafb;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.notification-action:hover {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
  transform: translateY(-1px);
}

.notification-success .notification-action {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.notification-success .notification-action:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.notification-error .notification-action {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.notification-error .notification-action:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.notification-warning .notification-action {
  background: #fffbeb;
  color: #d97706;
  border-color: #fed7aa;
}

.notification-warning .notification-action:hover {
  background: #fef3c7;
  border-color: #fbbf24;
}

.notification-info .notification-action {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.notification-info .notification-action:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Close Button */
.notification-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #374151;
}

/* Progress Bar */
.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.notification-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: currentColor;
  border-radius: 0 0 12px 12px;
  animation: progressBar 4s linear forwards;
}

.notification-success .notification-progress::after {
  background: #10b981;
}

.notification-error .notification-progress::after {
  background: #ef4444;
}

.notification-warning .notification-progress::after {
  background: linear-gradient(90deg, #F59E0B, #D97706);
}

.notification-info .notification-progress::after {
  background: linear-gradient(90deg, #F59E0B, #D97706);
}

.notification-loading .notification-progress::after {
  background: linear-gradient(90deg, #F59E0B, #D97706);
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

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

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

/* Responsive Design */
@media (max-width: 640px) {
  .notification-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }

  .notification {
    min-width: auto;
    max-width: none;
  }

  .notification-content {
    padding: 0.875rem;
  }

  .notification-title {
    font-size: 0.8125rem;
  }

  .notification-message {
    font-size: 0.8125rem;
  }

  .notification-actions {
    margin-top: 0.5rem;
  }

  .notification-action {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .notification {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }

  .notification-title {
    color: #f9fafb;
  }

  .notification-message {
    color: #d1d5db;
  }

  .notification-close {
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
  }

  .notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f9fafb;
  }

  .notification-action {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
  }

  .notification-action:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f9fafb;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .notification {
    border-width: 2px;
  }

  .notification-success {
    border-left-color: #059669;
  }

  .notification-error {
    border-left-color: #dc2626;
  }

  .notification-warning {
    border-left-color: #D97706;
  }

  .notification-info {
    border-left-color: #D97706;
  }

  .notification-loading {
    border-left-color: #D97706;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .notification {
    transition: none;
  }

  .notification-enter {
    transform: none;
    opacity: 1;
  }

  .notification-exit {
    transform: none;
    opacity: 0;
  }

  .notification-loading .notification-icon {
    animation: none;
  }

  .notification-progress::after {
    animation: none;
  }
}

/* Print Styles */
@media print {
  .notification-container {
    display: none !important;
  }
}

/* Focus Styles for Accessibility */
.notification-action:focus {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

.notification-close:focus {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

/* Hover Effects - Subtle */
.notification.notification-enter:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Stack Animation */
.notification-stack .notification:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Remove cartoony animations - keep it professional */

/* ============================================================
   MODERN CONFIRM DIALOG
   ============================================================ */

.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.confirm-overlay.active {
  opacity: 1;
}

.confirm-dialog {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 400px;
  width: 100%;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.confirm-overlay.active .confirm-dialog {
  transform: scale(1);
}

.confirm-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.confirm-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.confirm-icon.danger {
  background: #fef2f2;
  color: #dc2626;
}

.confirm-icon.warning {
  background: #fffbeb;
  color: #d97706;
}

.confirm-icon.info {
  background: #eff6ff;
  color: #2563eb;
}

.confirm-text {
  flex: 1;
  min-width: 0;
}

.confirm-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.confirm-message {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

.confirm-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.confirm-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.confirm-btn-cancel {
  background: #f9fafb;
  color: #374151;
  border-color: #e5e7eb;
}

.confirm-btn-cancel:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.confirm-btn-confirm {
  background: #111827;
  color: white;
}

.confirm-btn-confirm:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.confirm-btn-confirm.danger {
  background: #dc2626;
}

.confirm-btn-confirm.danger:hover {
  background: #b91c1c;
}

@media (max-width: 640px) {
  .confirm-dialog {
    margin: 0 1rem;
  }

  .confirm-footer {
    flex-direction: column-reverse;
  }

  .confirm-btn {
    width: 100%;
  }
}






