#notification-container {
    position: fixed;
    bottom: 20px;
    right: 80px;
    z-index: 9999;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s;
}

#notification-container.collapsed {
    width: 200px;
}

.notification-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-badge {
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #dc3545;
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
}

.notification-toggle-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #6b7280;
    padding: 0;
}

.notification-toggle-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.notification-toggle-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

#notification-container.collapsed .notification-toggle-btn svg {
    transform: rotate(180deg);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    transition: max-height 0.3s;
}

#notification-container.collapsed .notification-list {
    max-height: 0;
    overflow: hidden;
}

.notification-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.notification-type-success .notification-dot { background: #28a745; }
.notification-type-error .notification-dot { background: #dc3545; }
.notification-type-warning .notification-dot { background: #ffc107; }
.notification-type-info .notification-dot { background: #17a2b8; }

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

.notification-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.4;
    color: #1f2937;
}

.notification-item.read strong {
    font-weight: 400;
}

.notification-item small {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

.notification-time {
    margin-top: 4px;
}

.notification-item-actions {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    margin-top: 1px;
}

.notification-mark-read {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.notification-mark-read:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.notification-mark-read:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 768px) {
    #notification-container {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
}
