/**
 * SCPC Admin - Toast Notification Styles
 */

.toast-container {
   position: fixed;
   top: 20px;
   right: 20px;
   z-index: 11000;
   display: flex;
   flex-direction: column;
   gap: 12px;
   max-width: 400px;
   pointer-events: none;
}

.toast {
   display: flex;
   align-items: flex-start;
   gap: 12px;
   padding: 16px;
   background: #fff;
   border-radius: 12px;
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
   transform: translateX(120%);
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   pointer-events: auto;
   border-left: 4px solid;
}

.toast--visible {
   transform: translateX(0);
}

.toast--hiding {
   opacity: 0;
   transform: translateX(120%);
}

/* Toast Types */
.toast--success {
   border-left-color: #059669;
}

.toast--success .toast__icon {
   color: #059669;
}

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

.toast--error .toast__icon {
   color: #dc2626;
}

.toast--warning {
   border-left-color: #d97706;
}

.toast--warning .toast__icon {
   color: #d97706;
}

.toast--info {
   border-left-color: #024173;
}

.toast--info .toast__icon {
   color: #024173;
}

/* Toast Elements */
.toast__icon {
   flex-shrink: 0;
   width: 24px;
   height: 24px;
}

.toast__icon svg {
   width: 100%;
   height: 100%;
}

.toast__content {
   flex: 1;
   min-width: 0;
}

.toast__title {
   font-weight: 600;
   font-size: 0.9375rem;
   color: #0f172a;
   margin-bottom: 4px;
}

.toast__message {
   font-size: 0.875rem;
   color: #475569;
   line-height: 1.5;
}

.toast__close {
   flex-shrink: 0;
   width: 24px;
   height: 24px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: transparent;
   border: none;
   color: #94a3b8;
   cursor: pointer;
   font-size: 1.25rem;
   line-height: 1;
   border-radius: 4px;
   transition: all 0.2s ease;
}

.toast__close:hover {
   background: #f1f5f9;
   color: #475569;
}

/* Responsive */
@media (max-width: 480px) {
   .toast-container {
      left: 12px;
      right: 12px;
      max-width: none;
   }
}