/* Notification Icon Styles */
.notification-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.notification-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

.notification-icon.has-notifications i {
    color: #ffd700;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.notification-pulse {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Notification Modal Styles */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.notification-modal-content {
    background: var(--bg-color);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.notification-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--header-bg);
}

.notification-modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
}

.notification-modal-actions {
    display: flex;
    gap: 10px;
}

.btn-mark-all-read,
.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-mark-all-read:hover,
.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
}

/* Notification Items */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid #ffd700;
}

.notification-item[data-type="announcement"] {
    background: rgba(255, 69, 0, 0.1);
    border-left: 3px solid #ff4500;
}

.notification-item[data-type="announcement"].unread {
    background: rgba(255, 69, 0, 0.15);
    border-left: 3px solid #ff4500;
}

.notification-type .fa-bullhorn {
    color: #ff4500;
}

.notification-item[data-type="system"] {
    background: rgba(255, 69, 0, 0.1);
    border-left: 3px solid #ff4500;
}

.notification-item[data-type="system"].unread {
    background: rgba(255, 69, 0, 0.15);
    border-left: 3px solid #ff4500;
}

.notification-type .fa-tools {
    color: #ff4500;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    background: var(--primary-color);
}

.notification-item .notification-icon i {
    color: white;
    font-size: 16px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.notification-message {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.notification-meta {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.8;
}

.notification-actions {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.btn-mark-read {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.btn-mark-read:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* No Notifications State */
.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-notifications i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-notifications p {
    margin: 0;
    font-size: 16px;
}

/* Loading State */
.notification-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.notification-loading i {
    font-size: 24px;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .notification-modal-header {
        padding: 15px;
    }
    
    .notification-item {
        padding: 12px 15px;
    }
    
    .notification-item .notification-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .notification-modal-content {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .notification-modal-header {
        background: #333;
        border-color: #444;
    }
    
    .notification-item {
        border-color: #444;
    }
    
    .notification-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

@media screen and (max-width: 480px) {

    .notification-icon {
        font-size: 10px;
        width: 30px;
        height: 30px;
    }
}

