/**
 * Global Notification System - Dark Theme
 * 
 * Dark tema ve mavi ana renk için bildirim sistemi
 */

/* Notification Container */
.content-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    max-width: 400px;
    pointer-events: none;
}

/* Individual Notification - Dark Theme */
.content-notification {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.2);
    margin-bottom: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    min-width: 280px;
}

.content-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Notification Icon */
.content-notification-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.content-notification.success .content-notification-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.content-notification.error .content-notification-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.content-notification.warning .content-notification-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.content-notification.info .content-notification-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Notification Content */
.content-notification-content {
    flex: 1;
    min-width: 0;
}

.content-notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #f1f5f9;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.content-notification-message {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Notification Close Button */
.content-notification-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: -2px;
    margin-right: -4px;
}

.content-notification-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Progress Bar */
.content-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 0 0 12px 12px;
    transition: width linear;
}

.content-notification.success .content-notification-progress {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.content-notification.error .content-notification-progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.content-notification.warning .content-notification-progress {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.content-notification.info .content-notification-progress {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Button Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Button loading state */
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

button[disabled]:hover {
    transform: none !important;
    scale: 1 !important;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .content-notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .content-notification {
        min-width: auto;
        margin-bottom: 8px;
    }
}

/* Dark theme specific adjustments */
@media (prefers-color-scheme: dark) {
    .content-notification {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        border: 1px solid rgba(59, 130, 246, 0.4);
    }
    
    .content-notification-title {
        color: #f8fafc;
    }
    
    .content-notification-message {
        color: #e2e8f0;
    }
}

/* Hover effects */
.content-notification:hover {
    transform: translateX(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.4);
}

/* Focus states for accessibility */
.content-notification-close:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Notification types with blue accent */
.content-notification.success {
    border-left: 4px solid #3b82f6;
}

.content-notification.error {
    border-left: 4px solid #ef4444;
}

.content-notification.warning {
    border-left: 4px solid #f59e0b;
}

.content-notification.info {
    border-left: 4px solid #3b82f6;
}

/* Glow effect for important notifications */
.content-notification.info {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.3);
}

/* Action buttons in notifications */
.content-notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.content-notification-action {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.content-notification-action:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.content-notification-action.primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.content-notification-action.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}