/* Thurtea-Ai - Notifications CSS */
/* Enhanced notification system styles */

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

/* Base Notification Styles */
.notification {
    background: rgba(45, 55, 72, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
    word-wrap: break-word;
}

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

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

/* Notification Types */
.notification.success {
    border-left: 4px solid var(--success-color);
    background: rgba(72, 187, 120, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.notification.error {
    border-left: 4px solid var(--error-color);
    background: rgba(245, 101, 101, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
    background: rgba(237, 137, 54, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.notification.info {
    border-left: 4px solid var(--info-color);
    background: rgba(66, 153, 225, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    margin-top: 2px;
}

.notification.success .notification-icon {
    color: var(--success-color);
}

.notification.error .notification-icon {
    color: var(--error-color);
}

.notification.warning .notification-icon {
    color: var(--warning-color);
}

.notification.info .notification-icon {
    color: var(--info-color);
}

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

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

.notification-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Close Button */
.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

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

/* Progress Bar for Timed Notifications */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: width linear;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.notification.success .notification-progress {
    background: var(--success-color);
}

.notification.error .notification-progress {
    background: var(--error-color);
}

.notification.warning .notification-progress {
    background: var(--warning-color);
}

.notification.info .notification-progress {
    background: var(--info-color);
}

/* Error Notification Styles (Legacy compatibility) */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(245, 101, 101, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(245, 101, 101, 0.3);
    z-index: 10000;
    max-width: 400px;
    animation: slideInError 0.3s ease-out;
}

.error-notification .error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-notification .close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0 5px;
    transition: color 0.2s ease;
}

.error-notification .close-btn:hover {
    color: white;
}

/* Success/Warning/Info Notifications (Legacy) */
.success-notification {
    background: rgba(72, 187, 120, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.warning-notification {
    background: rgba(237, 137, 54, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.info-notification {
    background: rgba(66, 153, 225, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(66, 153, 225, 0.3);
}

/* Field Error Styles */
.field-error {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 2px rgba(245, 101, 101, 0.2);
}

.field-success {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 2px rgba(72, 187, 120, 0.2);
}

.field-error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-success-message {
    color: var(--success-color);
    font-size: 0.8rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Animations */
@keyframes slideInError {
    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%);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 8px;
        padding: 12px;
    }
    
    .error-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Dark/Light Theme Support */
[data-theme="light"] .notification {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .notification.success {
    background: rgba(72, 187, 120, 0.2);
}

[data-theme="light"] .notification.error {
    background: rgba(245, 101, 101, 0.2);
}

[data-theme="light"] .notification.warning {
    background: rgba(237, 137, 54, 0.2);
}

[data-theme="light"] .notification.info {
    background: rgba(66, 153, 225, 0.2);
}
