/**
 * WATS Ticket Notifications Styles
 * Styles to integrate with Woffice theme and BuddyPress notifications
 */

/* BuddyPress Notification Items */
.buddypress .notification-wats_tickets {
    position: relative;
}

.buddypress .notification-wats_tickets .notification-avatar {
    background-color: #2196F3;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 10px;
}

.buddypress .notification-wats_tickets .notification-avatar:before {
    content: "\f0e0"; /* Font Awesome ticket icon */
    font-family: FontAwesome;
}

/* Notification list styling */
#buddypress .notifications .notification-item.notification-wats_tickets {
    border-left: 3px solid #2196F3;
}

#buddypress .notifications .notification-item.notification-wats_tickets:hover {
    background-color: #f0f8ff;
}

/* Woffice theme notification dropdown */
.woffice-notifications-list .notification-wats_tickets {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.woffice-notifications-list .notification-wats_tickets:hover {
    background-color: #f5f5f5;
}

.woffice-notifications-list .notification-wats_tickets .ticket-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #2196F3;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 12px;
    float: left;
}

.woffice-notifications-list .notification-wats_tickets .ticket-content {
    overflow: hidden;
}

.woffice-notifications-list .notification-wats_tickets .ticket-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.woffice-notifications-list .notification-wats_tickets .ticket-meta {
    font-size: 12px;
    color: #666;
}

/* Notification settings table */
#tickets-notification-settings td {
    vertical-align: middle;
}

#tickets-notification-settings .icon:before {
    content: "\f0e0";
    font-family: FontAwesome;
    font-size: 20px;
    color: #2196F3;
}

/* Live notification popup styling */
.woffice-live-notification.ticket-notification {
    border-left: 4px solid #2196F3;
}

.woffice-live-notification.ticket-notification .notification-icon {
    background-color: #2196F3;
}

.woffice-live-notification.ticket-notification .notification-icon:before {
    content: "\f0e0";
    font-family: FontAwesome;
    color: white;
    font-size: 20px;
}

/* Badge styling for ticket count */
.woffice-notifications-badge.has-tickets {
    background-color: #e74c3c;
}

/* Responsive styles */
@media (max-width: 768px) {
    .woffice-notifications-list .notification-wats_tickets .ticket-icon {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }
    
    .woffice-notifications-list .notification-wats_tickets .ticket-title {
        font-size: 14px;
    }
    
    .woffice-notifications-list .notification-wats_tickets .ticket-meta {
        font-size: 11px;
    }
}

/* Dark mode support */
body.dark-mode .notification-wats_tickets {
    color: #e0e0e0;
}

body.dark-mode .woffice-notifications-list .notification-wats_tickets:hover {
    background-color: #2a2a2a;
}

body.dark-mode .woffice-notifications-list .notification-wats_tickets .ticket-title {
    color: #fff;
}

body.dark-mode .woffice-notifications-list .notification-wats_tickets .ticket-meta {
    color: #aaa;
}
