/* Notification Bell Styles */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.notification-bell:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

.notification-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Notification Dropdown Styles */
.notification-dropdown-container {
    position: absolute;
    top: 60px;
    right: 10px;
    width: min(350px, calc(100vw - 20px));
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification-dropdown-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mark-all-read {
    background: none;
    border: none;
    color: #667eea;
    font-size: 12px;
    cursor: pointer;
}

.notification-list {
    padding: 0;
}

.notification-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-item.unread {
    background-color: rgba(102, 126, 234, 0.05);
}

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

.notification-icon i {
    color: #888;
}

.notification-icon.high-priority {
    background-color: #ffecec;
}

.notification-icon.high-priority i {
    color: #ff4757;
}

.notification-icon.system {
    background-color: #e6f7ff;
}

.notification-icon.system i {
    color: #1890ff;
}

.notification-icon.admin {
    background-color: #fff7e6;
}

.notification-icon.admin i {
    color: #fa8c16;
}

.notification-icon.login {
    background-color: #f6ffed;
}

.notification-icon.login i {
    color: #52c41a;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.notification-message {
    color: #777;
    font-size: 13px;
    margin-bottom: 5px;
}

.notification-time {
    color: #aaa;
    font-size: 11px;
}

.notification-footer {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.no-notifications {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Full page notification list styles */
.notification-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.notification-list-full {
    border-top: 1px solid #eee;
}

.notification-list-full .notification-item {
    padding: 20px;
}

.notification-list-full .notification-icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
}

.notification-list-full .notification-icon i {
    font-size: 20px;
}

.notification-list-full .notification-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.notification-list-full .notification-message {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

.notification-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #aaa;
}

.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.notification-type {
    background-color: #e6f7ff;
    color: #1890ff;
}

.notification-priority {
    background-color: #fff7e6;
    color: #fa8c16;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    color: #667eea;
    padding: 5px 10px;
    text-decoration: none;
}

.pagination .current {
    padding: 5px 10px;
    font-weight: bold;
}

.no-notifications-message {
    padding: 40px 0;
    text-align: center;
    color: #999;
}

.no-notifications-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

@media (max-width: 520px) {
    .notification-list-full .notification-item {
        padding: 14px 10px;
    }

    .notification-list-full .notification-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
}