/* Frontend Notification Widget Styles */
.ans-widget {
    /*position: fixed;*/
    /*top: 50px;*/
    /*right: 20px;*/
    /*z-index: 9999;*/
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;*/
}

.ans-trigger {
    /*background: #4d8413;*/
    /*color: white;*/
    /*border-radius: 50%;*/
    /*width: 50px;*/
    padding-top: 8px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
    transition: all 0.3s ease;
    position: relative;
}

.ans-trigger:hover {
    /*background: #005a87;*/
    transform: scale(1.05);
}

.ans-bell-icon {
    font-size: 20px;
    /*line-height: 1;*/
    cursor: pointer;
}

.ans-bell-icon i {
    font-size: 18px;
    color: #fff;
}

.ans-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3232;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid white;
    padding: 0px 6px;
}

.ans-count.hidden {
    display: none;
}

.ans-dropdown {
    position: absolute;
    top: 40px;
    right: -20px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #4d8413;
    display: none;
    max-height: 500px;
    overflow: hidden;
}

.ans-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.ans-header {
    background: #4d8413;
    padding: 10px 15px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ans-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.ans-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    line-height: 1;
    padding: 0;
    padding-bottom: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.ans-close:hover {
    /*background: #e1e1e1;*/
    color: #fff;
}

.ans-content {
    max-height: 400px;
    overflow-y: auto;
}

.ans-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.ans-no-notifications {
    padding: 20px;
    text-align: center;
    color: #666;
}

.ans-notification {
    padding: 5px 10px;
    border: 1px solid #4d8413;
    border-radius: 10px;
    margin: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    position: relative;
}

/*.ans-notification:last-child {*/
/*    border-bottom: none;*/
/*}*/

.ans-notification:hover {
    background: #f8f9fa;
}

.ans-notification.unread {
    background: #F3FAF6;
    border-left: 4px solid #4d8413;
}

/*.ans-notification.unread::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    right: 15px;*/
/*    width: 8px;*/
/*    height: 8px;*/
/*    background: #4d8413;*/
/*    border-radius: 50%;*/
/*    transform: translateY(-50%);*/
/*}*/

.ans-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.user-notifications {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.ans-notification-title {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    margin-right: 10px;
    /*margin-bottom: 5px !important;*/
}

.ans-notification-type {
    padding: 0px 5px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

.ans-notification-type.info {
    background: #e3f2fd;
    color: #1976d2;
}

.ans-notification-type.success {
    background: #e8f5e8;
    color: #2e7d32;
}

.ans-notification-type.warning {
    background: #fff8e1;
    color: #f57c00;
}

.ans-notification-type.error {
    background: #ffebee;
    color: #d32f2f;
}

.ans-notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 8px 0;
    margin-bottom: 0px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ans-notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}

.ans-notification-time {
    font-style: italic;
    font-size: 11px;
    color: #717171;
}

.ans-priority-badge {
    display: none;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.ans-priority-badge.high {
    background: #ffcdd2;
    color: #c62828;
}

.ans-priority-badge.normal {
    background: #e0e0e0;
    color: #424242;
}

.ans-priority-badge.low {
    background: #c8e6c9;
    color: #2e7d32;
}

/* Admin Bar Styles */
.ans-admin-bar-item .ans-admin-count {
    background: #dc3232;
    color: white;
    border-radius: 9px;
    padding: 1px 6px;
    font-size: 11px;
    margin-left: 3px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ans-widget {
        right: 10px;
        top: 40px;
    }
    
    .ans-dropdown {
        width: 300px;
    }
    
    .ans-trigger {
        width: 45px;
        height: 45px;
    }
    
    .ans-bell-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ans-dropdown {
        width: calc(100vw - 20px);
        right: -150px;
    }
    
    .ans-notification {
        padding: 12px 15px;
    }
    
    .ans-notification-title {
        font-size: 13px;
    }
    
    .ans-notification-message {
        font-size: 12px;
    }
}

/* Animation for notification updates */
.ans-notification.new {
    animation: notificationPulse 0.6s ease;
}

@keyframes notificationPulse {
    0% {
        background: #e3f2fd;
        transform: scale(1);
    }
    50% {
        background: #bbdefb;
        transform: scale(1.02);
    }
    100% {
        background: #F3FAF6;
        transform: scale(1);
    }
}

/* Scrollbar styling for webkit browsers */
.ans-content::-webkit-scrollbar {
    width: 6px;
}

.ans-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ans-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.ans-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}