/**
 * PalmServers - Notification System Styles
 * @version 1.0.0
 */

/* Container Positionen */
.palm-notification-container {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    max-width: 400px;
}

.palm-notification-container.top-right {
    top: 0;
    right: 0;
}

.palm-notification-container.top-left {
    top: 0;
    left: 0;
}

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

.palm-notification-container.bottom-right {
    bottom: 0;
    right: 0;
    flex-direction: column-reverse;
}

.palm-notification-container.bottom-left {
    bottom: 0;
    left: 0;
    flex-direction: column-reverse;
}

.palm-notification-container.bottom-center {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column-reverse;
}

/* Notification */
.palm-notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    pointer-events: all;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #d1d5db;
    min-width: 300px;
    max-width: 400px;
}

/* Position-spezifische Animationen */
.palm-notification-container.top-left .palm-notification,
.palm-notification-container.bottom-left .palm-notification {
    transform: translateX(-400px);
}

.palm-notification-container.top-center .palm-notification,
.palm-notification-container.bottom-center .palm-notification {
    transform: translateY(-100px);
}

.palm-notification.show {
    transform: translate(0, 0);
    opacity: 1;
}

.palm-notification.hide {
    transform: scale(0.9);
    opacity: 0;
}

/* Icon */
.notification-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

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

.notification-title {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    margin-bottom: 4px;
}

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

/* Actions */
.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.notification-action-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Close Button */
.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

/* Types */
.palm-notification-success {
    border-left-color: #10b981;
}

.palm-notification-success .notification-icon {
    color: #10b981;
}

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

.palm-notification-error .notification-icon {
    color: #ef4444;
}

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

.palm-notification-warning .notification-icon {
    color: #f59e0b;
}

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

.palm-notification-info .notification-icon {
    color: #3b82f6;
}

/* Clickable */
.palm-notification[style*="cursor: pointer"]:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .palm-notification-container {
        padding: 10px;
        max-width: calc(100% - 20px);
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
    }
    
    .palm-notification {
        min-width: auto;
        max-width: 100%;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .palm-notification {
        background: #1f2937;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
    
    .notification-title {
        color: #f9fafb;
    }
    
    .notification-message {
        color: #d1d5db;
    }
    
    .notification-action-btn {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .notification-action-btn:hover {
        background: #4b5563;
        border-color: #6b7280;
    }
    
    .notification-close {
        color: #9ca3af;
    }
    
    .notification-close:hover {
        background: #374151;
        color: #d1d5db;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes slideInTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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