/* Toast Notifications CSS */
#tnfc-notification-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

#tnfc-notification-container.tnfc-position-top-right {
    top: 20px;
    right: 20px;
}

#tnfc-notification-container.tnfc-position-top-left {
    top: 20px;
    left: 20px;
}

#tnfc-notification-container.tnfc-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

#tnfc-notification-container.tnfc-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.tnfc-notification {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    margin-bottom: 12px;
    max-width: 400px;
    min-width: 320px;
    border-left: 4px solid #00a0d2;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tnfc-notification.tnfc-show {
    transform: translateX(0);
    opacity: 1;
}

.tnfc-notification.tnfc-hide {
    transform: translateX(100%);
    opacity: 0;
}

.tnfc-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00a0d2, #0073aa);
    animation: tnfc-progress var(--duration, 5000ms) linear forwards;
}

@keyframes tnfc-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.tnfc-notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.tnfc-notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tnfc-notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tnfc-notification-meta {
    flex: 1;
}

.tnfc-notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.tnfc-notification-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.2;
}

.tnfc-notification-content {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.tnfc-notification-content strong {
    color: #1e1e1e;
    font-weight: 600;
}

.tnfc-notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.tnfc-notification-time {
    font-size: 11px;
    color: #999;
}

.tnfc-notification-flag {
    font-size: 14px;
}

.tnfc-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.tnfc-notification-close:hover {
    color: #999;
}

/* Animation for notifications coming from the left */
.tnfc-position-top-left .tnfc-notification,
.tnfc-position-bottom-left .tnfc-notification {
    transform: translateX(-100%);
}

.tnfc-position-top-left .tnfc-notification.tnfc-show,
.tnfc-position-bottom-left .tnfc-notification.tnfc-show {
    transform: translateX(0);
}

.tnfc-position-top-left .tnfc-notification.tnfc-hide,
.tnfc-position-bottom-left .tnfc-notification.tnfc-hide {
    transform: translateX(-100%);
}

/* Mobile responsive */
@media (max-width: 480px) {
    #tnfc-notification-container {
        left: 10px !important;
        right: 10px !important;
        top: 10px !important;
    }
    
    .tnfc-notification {
        max-width: none;
        min-width: auto;
        margin-bottom: 8px;
    }
    
    .tnfc-notification-title {
        font-size: 13px;
    }
    
    .tnfc-notification-content {
        font-size: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tnfc-notification {
        background: #2a2a2a;
        color: #ffffff;
        border-left-color: #0073aa;
    }
    
    .tnfc-notification-title {
        color: #ffffff;
    }
    
    .tnfc-notification-content {
        color: #e0e0e0;
    }
    
    .tnfc-notification-content strong {
        color: #ffffff;
    }
    
    .tnfc-notification-subtitle {
        color: #b0b0b0;
    }
    
    .tnfc-notification-footer {
        border-top-color: #404040;
    }
    
    .tnfc-notification-close {
        color: #666;
    }
    
    .tnfc-notification-close:hover {
        color: #999;
    }
}
