/* ========================= NOTIFICATION SYSTEM STYLES ========================= */

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

/* Base Notification Styles */
.notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    min-width: 350px;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

/* Priority-based styling */
.notification-low {
    border-left: 4px solid rgba(148, 163, 184, 0.6);
}

.notification-medium {
    border-left: 4px solid rgba(0, 255, 255, 0.6);
}

.notification-high {
    border-left: 4px solid rgba(255, 107, 0, 0.8);
    background: rgba(255, 107, 0, 0.05);
    border-color: rgba(255, 107, 0, 0.3);
}

/* Category-based styling */
.notification-deposit {
    border-top: 2px solid rgba(34, 197, 94, 0.4);
}

.notification-lightning {
    border-top: 2px solid rgba(255, 235, 59, 0.6);
}

.notification-balance {
    border-top: 2px solid rgba(156, 39, 176, 0.4);
}

/* Notification Icon */
.notification-icon {
    font-size: 1.5rem;
    min-width: 24px;
    text-align: center;
    margin-top: 2px;
}

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

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 6px;
}

.notification-time {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.6);
    font-weight: 500;
}

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

.notification-action {
    background: rgba(0, 255, 255, 0.1);
    color: var(--tanda-cyan);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-action:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--tanda-cyan);
    transform: scale(1.02);
}

/* Close Button */
.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(148, 163, 184, 0.6);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Animations */
@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;
    }
}

/* Progress indicator for processing notifications */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--tanda-cyan);
    animation: progressBar 3s linear infinite;
}

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

/* Receipt Processing Specific Styles */
.notification-receipt {
    border-top: 2px solid rgba(255, 193, 7, 0.6);
}

.notification-receipt .notification-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Success notification special styling */
.notification-success {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.3);
    border-left: 4px solid rgba(34, 197, 94, 0.8);
}

.notification-success .notification-title {
    color: #22c55e;
}

/* Error notification special styling */
.notification-error {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
    border-left: 4px solid rgba(239, 68, 68, 0.8);
}

.notification-error .notification-title {
    color: #ef4444;
}

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

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

    .notification-actions {
        flex-direction: column;
    }

    .notification-action {
        text-align: center;
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .notification {
        background: rgba(15, 23, 42, 0.98);
        border-color: rgba(0, 255, 255, 0.3);
    }

    .notification-high {
        background: rgba(255, 107, 0, 0.08);
    }
}

/* Notification Bell Icon (for future notification center) */
.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-bell .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

/* Compact notification style for notification center */
.notification-compact {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-compact:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.2);
}

.notification-compact.unread {
    border-left: 3px solid var(--tanda-cyan);
    background: rgba(0, 255, 255, 0.08);
}

.notification-compact .notification-title {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.notification-compact .notification-message {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.notification-compact .notification-time {
    font-size: 0.7rem;
}