/**
 * 集成通知中心样式
 * 支持下拉和弹窗形式，集成到统一导航栏
 */

.integrated-notification-center {
    position: fixed;
    z-index: 1001;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: none;
}

.integrated-notification-center.show {
    display: block;
}

/* 下拉模式 */
.integrated-notification-center.dropdown {
    top: 70px;
    right: 20px;
    width: 400px;
    max-height: 600px;
    animation: slideInDown 0.3s ease-out;
}

.integrated-notification-center.dropdown.left {
    right: auto;
    left: 20px;
}

/* 弹窗模式 */
.integrated-notification-center.modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-height: 80vh;
    animation: fadeInScale 0.3s ease-out;
}

/* 通知面板 */
.notification-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e1e5e9;
    overflow: hidden;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 弹窗模式下的遮罩 */
.integrated-notification-center.modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* 头部 */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.notification-icon {
    font-size: 20px;
}

.notification-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.notification-header .notification-actions {
    display: flex !important;
    gap: 8px;
    opacity: 1 !important;
    visibility: visible !important;
}

.notification-header .notification-actions button {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    color: white !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.notification-header .notification-actions button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* 过滤器 */
.notification-filters {
    padding: 12px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    display: flex;
    gap: 8px;
}

.notification-filters select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.notification-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 通知列表 */
.notification-list {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 通知统计信息 */
.notification-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.notification-stats .unread-count {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.notification-stats .read-count {
    color: #999;
    font-weight: 500;
}

.notification-stats .total-count {
    color: #666;
    font-size: 11px;
}

/* 查看更多按钮 */
.notification-load-more {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.btn-load-more {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-load-more:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* 通知项目容器 */
.notification-items {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    max-height: 320px; /* 限制最大高度 */
    background: transparent;
}

/* 通知项目 */
.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 40px;
    max-height: 40px;
    overflow: visible;
}

/* 展开状态的通知 */
.notification-item.expanded {
    max-height: none;
    overflow: visible;
    padding: 12px 16px;
}

.notification-item:hover {
    background: #f8f9fa;
    transform: translateX(2px);
    border-bottom: 1px solid #f0f0f0;
}

/* 展开/收起按钮 */
.notification-expand-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(102, 126, 234, 0.1);
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    color: #667eea;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.notification-item:hover .notification-expand-btn {
    opacity: 1;
}

.notification-expand-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* 通知图标 - 增强未读状态 */
.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 32px;
}

.notification-item.unread .notification-icon {
    background: linear-gradient(135deg, #e6f3ff 0%, #d9edff 100%);
    color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.notification-item.read .notification-icon {
    background: #f0f0f0;
    color: #999;
    opacity: 0.7;
}

/* 通知内容 - 单行显示 */
.notification-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

/* 通知标题和消息合并显示 */
.notification-main-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.3;
    color: #333;
}

.notification-item.unread .notification-main-text {
    font-weight: 600;
    color: #2c3e50;
}

.notification-item.read .notification-main-text {
    font-weight: 400;
    color: #666;
}

/* 通知时间 */
.notification-time {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.notification-item.unread .notification-time {
    color: #667eea;
    font-weight: 600;
}

.notification-item.read .notification-time {
    color: #bbb;
}

/* 通知类型标签 */
.notification-type {
    font-size: 9px;
    color: #999;
    background: #f0f0f0;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.notification-item.unread .notification-type {
    background: #e6f3ff;
    color: #667eea;
    font-weight: 600;
}

.notification-item.read .notification-type {
    background: #f0f0f0;
    color: #999;
}

/* 通知操作按钮 */
.notification-item .notification-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

.notification-item .notification-actions button {
    background: none;
    border: none;
    padding: 3px 5px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    color: #666;
    transition: all 0.2s ease;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-item .notification-actions button:hover {
    background: #f0f0f0;
    color: #333;
}

.btn-mark-read:hover {
    color: #4caf50;
}

.btn-delete:hover {
    color: #f44336;
}

/* 通知详情弹窗 */
.notification-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notification-detail-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.notification-detail-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e5e9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notification-detail-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.notification-detail-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    padding: 8px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.notification-detail-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-detail-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.notification-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.notification-detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 20px;
}

.notification-detail-info {
    flex: 1;
}

.notification-detail-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.notification-detail-type {
    font-size: 11px;
    color: #667eea;
    background: #e6f3ff;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.notification-detail-message {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
    word-wrap: break-word;
}

.notification-detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.notification-detail-actions button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-copy {
    background: #667eea;
    color: white;
}

.btn-copy:hover {
    background: #5a6fd8;
}

.btn-mark-read-detail {
    background: #4caf50;
    color: white;
}

.btn-mark-read-detail:hover {
    background: #45a049;
}

.btn-delete-detail {
    background: #f44336;
    color: white;
}

.btn-delete-detail:hover {
    background: #d32f2f;
}

/* 复制成功提示 */
.copy-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1003;
    animation: slideInRight 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 未读通知组样式 */
.notification-item.unread {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
    border-left: 4px solid #667eea;
    border-right: 1px solid #e1e5e9;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    position: relative;
    margin-bottom: 2px;
}

/* 未读通知组之间的分隔 */
.notification-item.unread + .notification-item.unread {
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

/* 未读到已读的过渡分隔 */
.notification-item.unread + .notification-item.read {
    border-top: 2px solid #e1e5e9;
    margin-top: 8px;
    position: relative;
}

.notification-item.unread + .notification-item.read::before {
    content: 'Read Notifications';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #f8f9fa;
    color: #999;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
}

/* 已读通知组样式 */
.notification-item.read {
    background: #fafafa;
    opacity: 0.85;
    border-left: 4px solid #e0e0e0;
    position: relative;
    margin-bottom: 1px;
}

/* 已读通知组之间的分隔 */
.notification-item.read + .notification-item.read {
    border-top: 1px solid #f0f0f0;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.notification-item.unread:hover {
    background: linear-gradient(135deg, #e6f3ff 0%, #d9edff 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateX(3px);
    border-bottom: 1px solid #f0f0f0;
}

/* 未读指示器 */
.notification-item.unread::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.notification-item.read::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    color: #4caf50;
    font-size: 12px;
    font-weight: bold;
    opacity: 0.6;
}

.notification-item.read:hover {
    background: #f5f5f5;
    opacity: 0.95;
    transform: translateX(1px);
    border-bottom: 1px solid #f0f0f0;
}

/* 操作按钮 - 增强未读状态 */
.notification-item.unread .notification-actions button {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.notification-item.unread .notification-actions button:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #4a5fd8;
}

.notification-item.read .notification-actions button {
    color: #999;
    background: transparent;
}

.notification-item.read .notification-actions button:hover {
    background: #f0f0f0;
    color: #666;
}

/* 长文本优化 */
.notification-item .notification-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.notification-item.expanded .notification-title {
    -webkit-line-clamp: unset;
    display: block;
}

.notification-item .notification-message {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.notification-item.expanded .notification-message {
    -webkit-line-clamp: unset;
    display: block;
}

/* 超长文本的备用方案 */
@media (max-width: 768px) {
    .notification-items {
        max-height: 280px;
    }
    
    .notification-item {
        padding: 10px 16px;
        gap: 8px;
    }
    
    .notification-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        min-width: 28px;
    }
    
    .notification-main-text {
        font-size: 12px;
    }
    
    .notification-time {
        font-size: 10px;
    }
    
    .notification-type {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .notification-detail-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .notification-detail-header {
        padding: 16px 20px;
    }
    
    .notification-detail-body {
        padding: 20px;
    }
}

/* 确保内容不会溢出容器 */
.notification-content {
    overflow: hidden;
}

.notification-meta {
    overflow: hidden;
}

/* 修复可能的布局问题 */
.notification-item {
    box-sizing: border-box;
}

.notification-content * {
    box-sizing: border-box;
}

/* 分页 */
.notification-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.notification-pagination button {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.notification-pagination button:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.notification-pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    font-size: 12px;
    color: #666;
}

/* 动画 */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .integrated-notification-center.dropdown {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    .integrated-notification-center.modal {
        width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }
    
    .notification-filters {
        flex-direction: column;
    }
    
    .notification-item {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .notification-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        min-width: 32px;
    }
    
    .notification-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .notification-message {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .notification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .notification-time {
        margin-left: 0;
        font-size: 11px;
    }
    
    .notification-meta {
        gap: 4px;
    }
    
    .notification-type,
    .priority-badge {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    .notification-panel {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .notification-header {
        background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
    }
    
    .notification-filters {
        background: #1a202c;
    }
    
    .notification-filters select {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .notification-item {
        border-bottom-color: #4a5568;
    }
    
    .notification-item:hover {
    background: #1a202c;
    border-bottom: 1px solid #4a5568;
}
    
    .notification-item.unread {
        background: #1a365d;
        border-left-color: #4c51bf;
    }
    
    .notification-item.unread:hover {
    background: #2a4365;
    border-bottom: 1px solid #4a5568;
}
    
    .notification-title {
        color: #e2e8f0;
    }
    
    .notification-message {
        color: #a0aec0;
    }
    
    .notification-type {
        background: #4a5568;
        color: #a0aec0;
    }
    
    .notification-pagination {
        background: #1a202c;
        border-top-color: #4a5568;
    }
    
    .page-info {
        color: #a0aec0;
    }
}

/* 图标 */
.icon {
    font-style: normal;
}

.icon-check-all::before { content: "✓✓"; }
.icon-refresh::before { content: "↻"; }
.icon-close::before { content: "×"; }
.icon-check::before { content: "✓"; }
.icon-trash::before { content: "🗑"; }
.icon-bell-off::before { content: "🔕"; }

/* Toast 通知 */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}

.notification-toast.error {
    background: #d32f2f;
}

.notification-toast.success {
    background: #388e3c;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 滚动条优化 */
.notification-items::-webkit-scrollbar {
    width: 6px;
}

.notification-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notification-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notification-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 无通知状态 */
.no-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
    text-align: center;
}

.no-notifications i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-notifications p {
    margin: 0;
    font-size: 16px;
    color: #999;
}

/* 管理后台通知列表样式优化 */
.admin-notification-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.admin-notification-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    min-height: 60px;
}

.admin-notification-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-notification-item:last-child {
    border-bottom: none;
}

.admin-notification-checkbox {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.admin-notification-content {
    flex: 1;
    min-width: 0;
    margin-right: 1rem;
}

.admin-notification-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.admin-notification-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.admin-notification-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
}

.admin-notification-preview {
    font-size: 0.75rem;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.admin-notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-notification-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-notification-btn:hover {
    transform: translateY(-1px);
}

/* 优先级和类型徽章样式 */
.admin-notification-badge.priority-high {
    background-color: #dc3545;
    color: white;
}

.admin-notification-badge.priority-medium {
    background-color: #ffc107;
    color: #856404;
}

.admin-notification-badge.priority-low {
    background-color: #6c757d;
    color: white;
}

.admin-notification-badge.type-game_update {
    background-color: #17a2b8;
    color: white;
}

.admin-notification-badge.type-reward_earned {
    background-color: #28a745;
    color: white;
}

.admin-notification-badge.type-achievement {
    background-color: #fd7e14;
    color: white;
}

.admin-notification-badge.type-system_message {
    background-color: #6f42c1;
    color: white;
}

.admin-notification-badge.type-promotion {
    background-color: #e83e8c;
    color: white;
}

/* 按钮样式 */
.admin-notification-btn.btn-view {
    background-color: #17a2b8;
    color: white;
    border: 1px solid #17a2b8;
}

.admin-notification-btn.btn-view:hover {
    background-color: #138496;
    border-color: #138496;
}

.admin-notification-btn.btn-edit {
    background-color: #ffc107;
    color: #856404;
    border: 1px solid #ffc107;
}

.admin-notification-btn.btn-edit:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.admin-notification-btn.btn-delete {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.admin-notification-btn.btn-delete:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.admin-notification-btn.btn-toggle {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.admin-notification-btn.btn-toggle:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* 信息区域样式 */
.admin-notification-info {
    margin-right: 1rem;
    flex-shrink: 0;
    min-width: 200px;
}

.admin-notification-info .recipient-info,
.admin-notification-info .time-info {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.admin-notification-info .recipient-info i,
.admin-notification-info .time-info i {
    margin-right: 0.25rem;
}

/* 完整消息样式 */
.full-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    width: 100%;
}

.full-message p {
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    word-break: break-word;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .admin-notification-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem;
        min-height: auto;
    }
    
    .admin-notification-content {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .admin-notification-title {
        max-width: 100%;
    }
    
    .admin-notification-preview {
        max-width: 100%;
    }
    
    .admin-notification-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
