/* Notifications Bell Button */
.btn-notifications {
    position: relative;
    background: #2c3137;
    border: 2px solid #404752;
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-notifications:hover {
    background: #667eea;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-notifications i {
    font-size: 18px;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 600px;
    background: #1a1d24;
    border: 1px solid #2a2e38;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.notifications-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notifications Header */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2e38;
    background: #141824;
}

.notifications-header h6 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Header Actions (Mark All / Delete All buttons) */
.notification-header-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.notifications-header .mark-all-read,
.notifications-header .delete-all-notifications {
    color: #667eea;
    font-size: 14px;
    padding: 6px 10px;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.notifications-header .delete-all-notifications {
    color: #dc3545;
}

.notifications-header .mark-all-read:hover {
    color: #7c8fef;
    text-decoration: none;
    background: rgba(102, 126, 234, 0.15);
}

.notifications-header .delete-all-notifications:hover {
    color: #ff4757;
    background: rgba(220, 53, 69, 0.15);
}

.notifications-header .mark-all-read i,
.notifications-header .delete-all-notifications i {
    font-size: 14px;
}

/* Notifications Body */
.notifications-body {
    max-height: 450px;
    overflow-y: auto;
    background: #1a1d24;
}

.notifications-body::-webkit-scrollbar {
    width: 6px;
}

.notifications-body::-webkit-scrollbar-track {
    background: #141824;
}

.notifications-body::-webkit-scrollbar-thumb {
    background: #2a2e38;
    border-radius: 3px;
}

.notifications-body::-webkit-scrollbar-thumb:hover {
    background: #404752;
}

/* Notification Item */
.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2e38;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background: #141824;
}

.notification-item.unread {
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid #667eea;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    color: white;
}

.notification-icon.purchase {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.notification-icon.like {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.notification-icon.comment {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.notification-icon.report {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.notification-icon.server_approved {
    background: linear-gradient(135deg, #30cfd0, #330867);
}

.notification-icon.server_rejected {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.notification-icon.service_expiring {
    background: linear-gradient(135deg, #f6d365, #fda085);
}

.notification-icon.favorite {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.notification-icon.system {
    background: linear-gradient(135deg, #4834d4, #686de0);
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    color: #5a5d65;
    font-size: 12px;
}

/* Notification Item Actions (individual notification buttons) */
.notification-item .notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

.notification-item .notification-actions button {
    background: #2a2e38;
    border: none;
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.notification-item .notification-actions button i {
    font-size: 11px;
}

.notification-item .notification-actions button:hover {
    background: #404752;
    color: #fff;
    transform: translateY(-1px);
}

/* Notifications Footer */
.notifications-footer {
    padding: 12px 20px;
    border-top: 1px solid #2a2e38;
    background: #141824;
    text-align: center;
}

.notifications-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.notifications-footer a:hover {
    color: #7c8fef;
}

/* Empty State */
.notifications-empty {
    text-align: center;
    padding: 40px 20px;
    color: #5a5d65;
}

.notifications-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #404752;
}

.notifications-empty p {
    font-size: 14px;
    margin: 0;
}

/* Loading State */
.notifications-loading {
    text-align: center;
    padding: 30px 20px;
    color: #5a5d65;
}

.notifications-loading i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notifications-dropdown {
        width: calc(100vw - 20px);
        right: -10px;
        max-height: 500px;
    }
    
    .notification-item {
        padding: 12px 15px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-right: 12px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
}
