/**
 * WATS Live Notifications CSS
 * Styles for real-time notification display
 */

/* Notification Container */
.wats-notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 9999;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: none;
}

.wats-notifications-container.show {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

/* Notification Header */
.wats-notifications-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wats-notifications-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.wats-notifications-clear-all {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wats-notifications-clear-all:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Notifications List */
.wats-notifications-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.wats-notifications-list::-webkit-scrollbar {
    width: 6px;
}

.wats-notifications-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.wats-notifications-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.wats-notifications-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Individual Notification Item */
.wats-notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.wats-notification-item:last-child {
    border-bottom: none;
}

.wats-notification-item:hover {
    background: #f8f9fa;
    transform: translateX(-2px);
}

.wats-notification-item:active {
    transform: translateX(0);
}

/* Notification Icon */
.wats-notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: white;
    font-size: 16px;
}

.wats-notification-item.wats-notification-ticket_reply .wats-notification-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.wats-notification-item.wats-notification-ticket_assigned .wats-notification-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.wats-notification-item.wats-notification-ticket_status .wats-notification-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.wats-notification-item.wats-notification-ticket_priority .wats-notification-icon {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

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

.wats-notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
}

.wats-notification-message {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
    margin-bottom: 6px;
    word-wrap: break-word;
}

.wats-notification-time {
    font-size: 11px;
    color: #bdc3c7;
    font-weight: 500;
}

/* Notification Actions */
.wats-notification-actions {
    flex-shrink: 0;
    margin-left: 12px;
}

.wats-notification-dismiss {
    background: none;
    border: none;
    color: #bdc3c7;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
}

.wats-notification-dismiss:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Notification Badge */
.wats-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Empty State */
.wats-notifications-empty {
    padding: 40px 20px;
    text-align: center;
    color: #bdc3c7;
}

.wats-notifications-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.wats-notifications-empty p {
    margin: 0;
    font-size: 14px;
}

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

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

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

/* Notification Item Animations */
.wats-notification-item {
    animation: fadeIn 0.3s ease-out;
}

.wats-notification-item.removing {
    animation: fadeOut 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wats-notifications-container {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    
    .wats-notifications-header {
        padding: 20px;
    }
    
    .wats-notification-item {
        padding: 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wats-notifications-container {
        background: #2c3e50;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .wats-notification-item {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .wats-notification-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .wats-notification-title {
        color: #ecf0f1;
    }
    
    .wats-notification-message {
        color: #bdc3c7;
    }
    
    .wats-notification-time {
        color: #95a5a6;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .wats-notifications-container {
        border: 2px solid #000;
    }
    
    .wats-notification-item {
        border-bottom: 2px solid #000;
    }
    
    .wats-notification-dismiss {
        border: 1px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .wats-notifications-container,
    .wats-notification-item {
        animation: none;
        transition: none;
    }
    
    .wats-notification-item:hover {
        transform: none;
    }
}
