/* Notification Panel 样式 */

.tl-mt-notification-panel {
    position: fixed;
    top: 64px;
    right: 24px;
    width: 400px;
    max-height: calc(100vh - 88px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

body.dark .tl-mt-notification-panel {
    background: #1e293b;
    border-color: #334155;
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .tl-mt-notification-panel {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

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

body.dark .tl-mt-notification-header {
    border-bottom-color: #334155;
}

.tl-mt-notification-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

body.dark .tl-mt-notification-title {
    color: #f1f5f9;
}

.tl-mt-notification-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}

body.dark .tl-mt-notification-close {
    color: #94a3b8;
}

.tl-mt-notification-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

body.dark .tl-mt-notification-close:hover {
    background: #334155;
    color: #f1f5f9;
}

.tl-mt-notification-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
}

body.dark .tl-mt-notification-tabs {
    border-bottom-color: #334155;
}

.tl-mt-notification-tab {
    position: relative;
    padding: 8px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.dark .tl-mt-notification-tab {
    color: #94a3b8;
}

.tl-mt-notification-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

body.dark .tl-mt-notification-tab:hover {
    background: #334155;
    color: #f1f5f9;
}

.tl-mt-notification-tab.active {
    background: #0ea5e9;
    color: #ffffff;
}

.tl-mt-notification-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
}

.tl-mt-notification-tab.active .tl-mt-notification-tab-badge {
    background: #ffffff;
    color: #0ea5e9;
}

.tl-mt-notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.tl-mt-notification-list::-webkit-scrollbar {
    width: 6px;
}

.tl-mt-notification-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

body.dark .tl-mt-notification-list::-webkit-scrollbar-thumb {
    background: #475569;
}

.tl-mt-notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.tl-mt-notification-empty .material-symbols-outlined {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

body.dark .tl-mt-notification-empty .material-symbols-outlined {
    color: #475569;
}

.tl-mt-notification-empty p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

body.dark .tl-mt-notification-empty p {
    color: #94a3b8;
}

.tl-mt-notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.tl-mt-notification-item.unread {
    background: rgba(14, 165, 233, 0.05);
}

.tl-mt-notification-item:hover {
    background: #f8fafc;
}

body.dark .tl-mt-notification-item:hover {
    background: #334155;
}

.tl-mt-notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #0ea5e9;
    border-radius: 0 2px 2px 0;
}

.tl-mt-notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-mt-notification-icon.alert {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tl-mt-notification-icon.system {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.tl-mt-notification-icon.notice {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

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

.tl-mt-notification-content-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark .tl-mt-notification-content-title {
    color: #f1f5f9;
}

.tl-mt-notification-content-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark .tl-mt-notification-content-desc {
    color: #94a3b8;
}

.tl-mt-notification-content-time {
    font-size: 12px;
    color: #94a3b8;
}

body.dark .tl-mt-notification-content-time {
    color: #64748b;
}

.tl-mt-notification-mark-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.tl-mt-notification-mark-btn:hover {
    background: #e2e8f0;
    color: #0ea5e9;
}

body.dark .tl-mt-notification-mark-btn:hover {
    background: #475569;
}

.tl-mt-notification-footer {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
}

body.dark .tl-mt-notification-footer {
    border-top-color: #334155;
}

.tl-mt-notification-footer-btn {
    flex: 1;
    padding: 8px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

body.dark .tl-mt-notification-footer-btn {
    background: #334155;
    color: #cbd5e1;
}

.tl-mt-notification-footer-btn:hover {
    background: #e2e8f0;
}

body.dark .tl-mt-notification-footer-btn:hover {
    background: #475569;
}
