/* 铃铛通知组件样式 */
#notificationBell {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: move;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

#notificationBell:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

#notificationBell:active {
    transform: scale(0.95);
}

.bell-icon {
    color: white;
    font-size: 28px;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

.bell-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 20px;
    height: 20px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bell-badge.hidden {
    display: none;
}

/* 待办列表弹窗样式 */
#pendingModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

#pendingModal.show {
    display: block;
}

.pending-modal-content {
    background: white;
    border-radius: 12px;
    width: 900px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    animation: pendingModalFadeIn 0.25s ease;
}

@keyframes pendingModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

.pending-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.pending-modal-header:active {
    cursor: grabbing;
}

.pending-drag-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 8px;
    font-weight: normal;
    pointer-events: none;
}

/* 筛选状态栏 */
.pending-filter-bar {
    padding: 10px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 24px;
    align-items: center;
    background: #f9fafb;
}

.pending-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    font-weight: normal;
    margin: 0;
}

.pending-filter-item input[type="radio"] {
    cursor: pointer;
    accent-color: #667eea;
}

.pending-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.pending-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pending-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.pending-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.pending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pending-item {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.pending-item.unread {
    background: #fef3c7;
    border-color: #fbbf24;
}

.pending-item.read {
    background: white;
}

.pending-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pending-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.pending-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
    margin-right: 12px;
}

.pending-item-type {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.pending-item.unread .pending-item-type {
    background: #fbbf24;
    color: white;
}

.pending-item.read .pending-item-type {
    background: #e5e7eb;
    color: #6b7280;
}

.pending-item-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.pending-item-status {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.pending-item.unread .pending-item-status {
    color: #f59e0b;
}

.pending-item.read .pending-item-status {
    color: #10b981;
}

.pending-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.pending-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.pending-pagination {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pending-pagination-info {
    color: #6b7280;
    font-size: 14px;
}

.pending-pagination-buttons {
    display: flex;
    gap: 8px;
}

.pending-pagination-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.pending-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pending-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 详情对话框样式 */
#pendingDetailModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
}

#pendingDetailModal.show {
    display: block;
}

.pending-detail-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10003;
    animation: pendingModalFadeIn 0.25s ease;
}

.pending-detail-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    cursor: grab;
    user-select: none;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.pending-detail-header:active {
    cursor: grabbing;
}

.pending-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.pending-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
}

.pending-detail-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.pending-detail-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.pending-detail-text {
    color: #1f2937;
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.pending-detail-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.pending-detail-confirm {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pending-detail-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pending-detail-confirm:active {
    transform: translateY(0);
}
