/* Notification System */
.notification-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: 100%;
}

.notification {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

/* Notification Types */
.notification.success {
    border-left-color: #22c55e;
}

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

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

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

/* Notification Icon */
.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notification.success .notification-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.notification.error .notification-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.notification.warning .notification-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.notification.info .notification-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-message {
    color: #333;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
}

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

.notification-action {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.notification-action.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notification-action.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.notification-action.secondary {
    background: #f1f5f9;
    color: #64748b;
}

.notification-action.secondary:hover {
    background: #e2e8f0;
}

/* Close Button */
.notification-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #64748b;
}

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

.notification-progress-bar {
    height: 100%;
    width: 100%;
    transform: translateX(-100%);
    transition: transform linear;
}

.notification.success .notification-progress-bar {
    background: #22c55e;
}

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

.notification.warning .notification-progress-bar {
    background: #f59e0b;
}

.notification.info .notification-progress-bar {
    background: #3b82f6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 80px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .notification {
        padding: 0.875rem 1rem;
    }

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

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

/* Loading Spinner for notifications */
.notification-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Notification with loading state */
.notification.loading .notification-icon {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.notification.loading .notification-progress-bar {
    background: #667eea;
}